Add OSGi metadata

This commit is contained in:
Mat Booth 2018-03-21 03:03:04 +00:00
parent ba1559d445
commit 4aabfebcf1

View File

@ -1,6 +1,6 @@
Name: jzlib
Version: 1.1.3
Release: 7%{?dist}
Release: 8%{?dist}
Epoch: 0
Summary: Re-implementation of zlib in pure Java
License: BSD
@ -12,6 +12,7 @@ Source0: https://github.com/ymnk/jzlib/archive/%{version}.tar.gz
Patch0: jzlib-javadoc-fixes.patch
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
%description
The zlib is designed to be a free, general-purpose, legally unencumbered
@ -37,6 +38,10 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
%setup -q
%patch0
# Make into OSGi bundle
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "<extensions>true</extensions>"
%mvn_file : %{name}
%build
@ -59,6 +64,9 @@ cp -pr example/* %{buildroot}%{_datadir}/%{name}
%doc %{_datadir}/%{name}
%changelog
* Wed Mar 21 2018 Mat Booth <mat.booth@redhat.com> - 0:1.1.3-8
- Add OSGi metadata
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.1.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild