Generate OSGI info using maven-plugin-bundle
This commit is contained in:
parent
b3259910a8
commit
3f1f7ca4cf
@ -34,7 +34,7 @@
|
||||
|
||||
Name: %{parent}-%{subname}
|
||||
Version: 2.4
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Plexus Classworlds Classloader Framework
|
||||
License: ASL 2.0 and Plexus
|
||||
Group: Development/Libraries
|
||||
@ -62,6 +62,7 @@ BuildRequires: maven-shared-reporting-impl
|
||||
BuildRequires: maven-dependency-plugin
|
||||
BuildRequires: maven-surefire-maven-plugin
|
||||
BuildRequires: maven-surefire-provider-junit
|
||||
BuildRequires: maven-plugin-bundle
|
||||
BuildRequires: plexus-utils
|
||||
|
||||
%description
|
||||
@ -91,6 +92,20 @@ done
|
||||
# fix ant groupId
|
||||
sed -i 's:<groupId>ant</groupId>:<groupId>org.apache.ant</groupId>:' pom.xml
|
||||
|
||||
# Generate OSGI info
|
||||
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
|
||||
%pom_xpath_inject "pom:build/pom:plugins" "
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Export-Package>*</Export-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>"
|
||||
|
||||
%build
|
||||
mvn-rpmbuild -e install javadoc:javadoc
|
||||
|
||||
@ -118,6 +133,9 @@ cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Aug 06 2012 Gerard Ryan <galileo@fedoraproject.org> - 2.4-6
|
||||
- Generate OSGI info using maven-plugin-bundle
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user