[jnr-ffi] 01/01: Add OSGi metadata to JAR manifest
Jakub Adam
xhaakon-guest at moszumanska.debian.org
Thu Jun 25 11:11:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
xhaakon-guest pushed a commit to branch master
in repository jnr-ffi.
commit 2e4967c42e39b24cf388dee508e34e7f94e2f322
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date: Sat Jun 20 23:38:01 2015 +0200
Add OSGi metadata to JAR manifest
---
debian/changelog | 6 ++++++
debian/control | 3 ++-
debian/jnr-ffi.bnd | 6 ++++++
debian/rules | 8 ++++++++
4 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index ecbf9a3..cff317b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+jnr-ffi (1.0.10-3) UNRELEASED; urgency=medium
+
+ * Add OSGi metadata to JAR manifest.
+
+ -- Jakub Adam <jakub.adam at ktknet.cz> Sat, 20 Jun 2015 23:37:30 +0200
+
jnr-ffi (1.0.10-2) unstable; urgency=medium
* Team upload.
diff --git a/debian/control b/debian/control
index e90c818..9936307 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,8 @@ Build-Depends: debhelper (>= 9),
libmaven-antrun-plugin-java,
libmaven-javadoc-plugin-java,
libmaven-source-plugin-java,
- maven-debian-helper
+ maven-debian-helper,
+ bnd (>= 2.1.0-1)
Standards-Version: 3.9.6
Homepage: https://github.com/jnr/jnr-ffi
Vcs-Git: git://anonscm.debian.org/pkg-java/jnr-ffi.git
diff --git a/debian/jnr-ffi.bnd b/debian/jnr-ffi.bnd
new file mode 100644
index 0000000..066fd31
--- /dev/null
+++ b/debian/jnr-ffi.bnd
@@ -0,0 +1,6 @@
+Bundle-Name: Java Native Runtime Foreign Function Interface
+Bundle-SymbolicName: jnr.ffi
+Bundle-Version: 1.0.0
+Bundle-Vendor: Debian.org
+Import-Package: *
+Export-Package: *
diff --git a/debian/rules b/debian/rules
index 027d7eb..9fd6932 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,3 +5,11 @@ export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
%:
dh $@ --buildsystem=maven --with javahelper
+
+JAR=debian/libjnr-ffi-java/usr/share/java/jnr-ffi.jar
+override_jh_manifest:
+ jh_manifest
+
+ # generate OSGi metadata
+ bnd wrap --properties debian/jnr-ffi.bnd --output $(JAR).tmp $(JAR)
+ mv $(JAR).tmp $(JAR)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jnr-ffi.git
More information about the pkg-java-commits
mailing list