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