Add patch for OSGi Manifest.

This commit is contained in:
Krzysztof Daniel 2013-01-03 14:32:00 +01:00 committed by Alexander Kurtakov
parent b6546c79fa
commit cd63efa72e
2 changed files with 18 additions and 1 deletions

12
xz-java-osgi.patch Normal file
View File

@ -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>

View File

@ -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@redhat.com> 1.1-2
- Add patch for OSGi Manifest.
* Fri Aug 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1-1
- Update to upstream version 1.1