[jnr-x86asm] 01/01: Add OSGi metadata to JAR manifest

Jakub Adam xhaakon-guest at moszumanska.debian.org
Thu Jun 25 11:31:04 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-x86asm.

commit ba120acc7c61c72186541efd21ab71f1008d148d
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date:   Sun Jun 21 00:06:28 2015 +0200

    Add OSGi metadata to JAR manifest
---
 debian/changelog      | 6 ++++++
 debian/control        | 3 ++-
 debian/jnr-x86asm.bnd | 6 ++++++
 debian/rules          | 7 +++++++
 4 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f63c71c..9317ed5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+jnr-x86asm (1.0.2-3) UNRELEASED; urgency=medium
+
+  * Add OSGi metadata to JAR manifest.
+
+ -- Jakub Adam <jakub.adam at ktknet.cz>  Sun, 21 Jun 2015 00:05:55 +0200
+
 jnr-x86asm (1.0.2-2) unstable; urgency=medium
 
   * Upload to unstable.
diff --git a/debian/control b/debian/control
index 32be5a3..6410463 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 9),
  maven-repo-helper,
  maven-debian-helper,
  ant-optional,
- default-jdk
+ default-jdk,
+ bnd (>= 2.1.0-1)
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-java/jnr-x86asm.git
 Vcs-Browser: http://anonscm.debian.org/cgit/?p=pkg-java/jnr-x86asm.git
diff --git a/debian/jnr-x86asm.bnd b/debian/jnr-x86asm.bnd
new file mode 100644
index 0000000..5afd444
--- /dev/null
+++ b/debian/jnr-x86asm.bnd
@@ -0,0 +1,6 @@
+Bundle-Name: x86/x64 JIT-Assembler for C++ language
+Bundle-SymbolicName: jnr.x86asm
+Bundle-Version: 1.0.0
+Bundle-Vendor: Debian.org
+Import-Package: *
+Export-Package: *
diff --git a/debian/rules b/debian/rules
index b76c54a..8c6b49f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,5 +5,12 @@ include /usr/share/cdbs/1/class/maven.mk
 
 JAVA_HOME := /usr/lib/jvm/default-java
 
+VERSION=$(shell dpkg-parsechangelog -S Version | cut -d- -f1)
+JAR=target/jnr-x86asm-$(VERSION).jar
+common-post-build-indep::
+	# Generate OSGi metadata for jffi.jar
+	bnd wrap --properties debian/jnr-x86asm.bnd --output $(JAR).tmp $(JAR)
+	mv $(JAR).tmp $(JAR)
+
 get-orig-source:
 	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jnr-x86asm.git



More information about the pkg-java-commits mailing list