[plexus-classworlds] Generate OSGI info using maven-plugin-bundle
Stanislav Ochotnicky
sochotni at fedoraproject.org
Tue Aug 7 07:41:42 UTC 2012
commit 3f1f7ca4cf4c14b08c9dada4cf82d2c37c0e75ac
Author: Gerard Ryan <gerard at ryan.lt>
Date: Tue Aug 7 01:46:36 2012 +0100
Generate OSGI info using maven-plugin-bundle
plexus-classworlds.spec | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/plexus-classworlds.spec b/plexus-classworlds.spec
index 4e4019b..0246aa3 100644
--- a/plexus-classworlds.spec
+++ b/plexus-classworlds.spec
@@ -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 at fedoraproject.org> - 2.4-6
+- Generate OSGI info using maven-plugin-bundle
+
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list