[xz-java] Add patch for OSGi Manifest.

Alexander Kurtakov akurtakov at fedoraproject.org
Thu Jan 3 14:16:53 UTC 2013


commit cd63efa72e4150b6303f995e829b31465bfcd6e9
Author: Krzysztof Daniel <kdaniel at redhat.com>
Date:   Thu Jan 3 14:32:00 2013 +0100

    Add patch for OSGi Manifest.

 xz-java-osgi.patch |   12 ++++++++++++
 xz-java.spec       |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/xz-java-osgi.patch b/xz-java-osgi.patch
new file mode 100644
index 0000000..f396f74
--- /dev/null
+++ b/xz-java-osgi.patch
@@ -0,0 +1,12 @@
+--- build.xml.bak	2012-07-05 08:21:30.000000000 +0200
++++ build.xml	2013-01-03 14:23:51.411506995 +0100
+@@ -64,6 +64,9 @@
+                 <attribute name="Implementation-Version" value="${version}"/>
+                 <attribute name="Implementation-URL" value="${homepage}"/>
+                 <attribute name="Sealed" value="true"/>
++                <attribute name="Bundle-SymbolicName" value="org.tukaani.xz"/>
++                <attribute name="Bundle-Version" value="1.1"/>
++                <attribute name="Export-Package" value="org.tukaani.xz"/>
+             </manifest>
+         </jar>
+ 
diff --git a/xz-java.spec b/xz-java.spec
index 55f0d58..2093668 100644
--- a/xz-java.spec
+++ b/xz-java.spec
@@ -1,6 +1,6 @@
 Name:           xz-java
 Version:        1.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Java implementation of XZ data compression
 Group:          Development/Libraries
 BuildArch:      noarch
@@ -8,6 +8,7 @@ BuildArch:      noarch
 License:        Public Domain
 URL:            http://tukaani.org/xz/java.html
 Source0:        http://tukaani.org/xz/xz-java-%{version}.zip
+Patch0:			xz-java-osgi.patch
 
 BuildRequires:  jpackage-utils
 BuildRequires:  java-devel
@@ -33,6 +34,7 @@ This package contains the API documentation for %{name}.
 
 %prep
 %setup -q -c %{name}-%{version}
+%patch0
 
 %build
 # During documentation generation the upstream build.xml tries to download
@@ -66,6 +68,9 @@ install -pm 644 build/maven/xz-%{version}.pom %{buildroot}/%{_mavenpomdir}/JPP-%
 %{_javadocdir}/%{name}
 
 %changelog
+* Thu Jan 3 2013 Krzysztof Daniel <kdaniel at redhat.com> 1.1-2
+- Add patch for OSGi Manifest.
+
 * Fri Aug 17 2012 Mikolaj Izdebski <mizdebsk at redhat.com> - 1.1-1
 - Update to upstream version 1.1
 


More information about the scm-commits mailing list