[cdi-api] Generate OSGi metadata
Mikolaj Izdebski
mizdebsk at fedoraproject.org
Tue Jul 23 05:10:08 UTC 2013
commit 49c3e9f9d937662c33dc7eed7f71d51d42deedb4
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date: Tue Jul 23 07:05:12 2013 +0200
Generate OSGi metadata
- Resolves: rhbz#987111
cdi-api.spec | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/cdi-api.spec b/cdi-api.spec
index 6e355f5..25c17ca 100644
--- a/cdi-api.spec
+++ b/cdi-api.spec
@@ -3,7 +3,7 @@
Name: cdi-api
Version: 1.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: CDI API
Group: Development/Libraries
License: ASL 2.0
@@ -40,6 +40,25 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n cdi-%{version}
+# Generate OSGI info
+%pom_xpath_set pom:project/pom:packaging bundle api
+%pom_xpath_inject "pom:project" "
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <_nouses>true</_nouses>
+ <Export-Package>javax.decorator.*;javax.enterprise.context.*;javax.enterprise.event.*;javax.enterprise.inject.*;javax.enterprise.util.*</Export-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>" api
+
%build
cd api
%mvn_build
@@ -54,6 +73,10 @@ cd api
%files javadoc -f api/.mfiles-javadoc
%changelog
+* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk at redhat.com> - 1.1-2
+- Generate OSGi metadata
+- Resolves: rhbz#987111
+
* Thu Jul 04 2013 Marek Goldmann <mgoldman at redhat.com> - 1.1-1
- Upstream release 1.1
- New guidelines
More information about the scm-commits
mailing list