[hibernate-jpa-2.0-api/f17] Add OSGI info to MANIFEST.MF
Marek Goldmann
goldmann at fedoraproject.org
Tue Jun 19 13:53:12 UTC 2012
commit ad1667adff05b0f27fcc2383a05fee50227c96ae
Author: Gerard Ryan <gerard at ryan.lt>
Date: Tue Jun 19 14:14:04 2012 +0100
Add OSGI info to MANIFEST.MF
Eclipse plugins, such as eclipse-wtp-jpa, need it to be exported in the
MANIFEST.MF. This change adds some of this information to that file, by
adding the relevant lines to the pom.xml file, where the manifest is
generated from.
Currently being exported are javax.persistence and javax.persistence.spi.
I don't know if javax.persistence.metamodel or javax.persistence.criteria
should be exported also, but they don't seem to be needed by anything so
I've left them out. javax.persistence.spi isn't necessarily needed either,
but geronimo-jpa exports it, so I just went by that.
...ate-jpa-2.0-api-1.0.1.Final-osgi-manifest.patch | 13 +++++++++++++
hibernate-jpa-2.0-api.spec | 7 ++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/hibernate-jpa-2.0-api-1.0.1.Final-osgi-manifest.patch b/hibernate-jpa-2.0-api-1.0.1.Final-osgi-manifest.patch
new file mode 100644
index 0000000..440d928
--- /dev/null
+++ b/hibernate-jpa-2.0-api-1.0.1.Final-osgi-manifest.patch
@@ -0,0 +1,13 @@
+--- hibernate-jpa-2.0-api-1.0.1.Final/pom.xml.orig 2011-06-15 03:35:58.602491000 +0100
++++ hibernate-jpa-2.0-api-1.0.1.Final/pom.xml 2012-06-19 13:50:00.920020067 +0100
+@@ -127,6 +127,10 @@
+ <Implementation-Version>${pom.version}</Implementation-Version>
+ <Implementation-Vendor>hibernate.org</Implementation-Vendor>
+ <Implementation-Title>JPA API</Implementation-Title>
++ <Bundle-Name>hibernate-jpa-2.0-api</Bundle-Name>
++ <Bundle-SymbolicName>org.hibernate.javax.persistence</Bundle-SymbolicName>
++ <Export-Package>javax.persistence, javax.persistence.spi</Export-Package>
++ <Bundle-Version>${pom.version}</Bundle-Version>
+ </manifestEntries>
+ </archive>
+ </configuration>
diff --git a/hibernate-jpa-2.0-api.spec b/hibernate-jpa-2.0-api.spec
index 4a839f1..3858e7f 100644
--- a/hibernate-jpa-2.0-api.spec
+++ b/hibernate-jpa-2.0-api.spec
@@ -3,7 +3,7 @@
Name: hibernate-jpa-2.0-api
Version: 1.0.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Java Persistence 2.0 (JSR 317) API
Group: Development/Libraries
@@ -14,6 +14,7 @@ URL: http://www.hibernate.org/
# tar -zcvf hibernate-jpa-2.0-api-1.0.1.Final.tar.gz hibernate-jpa-2.0-api-1.0.1.Final
Source0: %{name}-%{namedversion}.tar.gz
Patch0: %{name}-%{namedversion}-encoding.patch
+Patch1: %{name}-%{namedversion}-osgi-manifest.patch
BuildArch: noarch
@@ -47,6 +48,7 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1
+%patch1 -p1
%build
mvn-rpmbuild install javadoc:aggregate
@@ -77,6 +79,9 @@ install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
%doc license.txt
%changelog
+* Tue Jun 19 2012 Gerard Ryan <galileo at fedoraproject.org> 1.0.1-6
+- Add OSGI info to MANIFEST.MF
+
* Fri Mar 16 2012 Marek Goldmann <mgoldman at redhat.com> 1.0.1-5
- Relocated jars to _javadir
- Added javax.persistence:persistence-api POM mapping
More information about the scm-commits
mailing list