From 4aabfebcf13f08db8c16c58516113d5ab106a473 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Wed, 21 Mar 2018 03:03:04 +0000 Subject: [PATCH] Add OSGi metadata --- jzlib.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jzlib.spec b/jzlib.spec index f8f3687..39336c6 100644 --- a/jzlib.spec +++ b/jzlib.spec @@ -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" "bundle" +%pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "true" + %mvn_file : %{name} %build @@ -59,6 +64,9 @@ cp -pr example/* %{buildroot}%{_datadir}/%{name} %doc %{_datadir}/%{name} %changelog +* Wed Mar 21 2018 Mat Booth - 0:1.1.3-8 +- Add OSGi metadata + * Wed Feb 07 2018 Fedora Release Engineering - 0:1.1.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild