Package: libconstantine-java Version: 0.7-3 Severity: wishlist Tags: patch
--- Please enter the report below this line. --- Hi, we need to use libconstantine-java as a package dependency of the PyDev plugin for Eclipse IDE. To make constantine.jar usable with Eclipse platform, there have to be additional 'OSGi metadata' attributes present in its MANIFEST.MF. With this patch all required metadata will be automatically generated when libconstantine-java is built, please consider applying it to the next package release. Thanks for your help, Jakub
>From bb8891aafa12bec58b58cf6fa1080eb1b686272c Mon Sep 17 00:00:00 2001 From: Jakub Adam <jakub.a...@ktknet.cz> Date: Fri, 18 Jan 2013 17:00:12 +0100 Subject: [PATCH] Generate OSGi metadata for constantine.jar --- debian/constantine.bnd | 5 +++++ debian/control | 2 +- debian/rules | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 debian/constantine.bnd diff --git a/debian/constantine.bnd b/debian/constantine.bnd new file mode 100644 index 0000000..0569048 --- /dev/null +++ b/debian/constantine.bnd @@ -0,0 +1,5 @@ +Bundle-Name: platform constants for Java +Bundle-SymbolicName: com.kenai.constantine +Bundle-Version: 1.0.0 +Bundle-Vendor: Debian.org +Import-Package: * diff --git a/debian/control b/debian/control index f87468f..032f27c 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: java Priority: optional Maintainer: Nicolas Duboc <ndu...@debian.org> Build-Depends: debhelper (>> 7.0.0), ant -Build-Depends-Indep: default-jdk, junit4, ant-optional, maven-repo-helper +Build-Depends-Indep: default-jdk, junit4, ant-optional, maven-repo-helper, bnd Standards-Version: 3.9.1 Homepage: http://github.com/wmeissner/jnr-constants/ diff --git a/debian/rules b/debian/rules index a4e268e..5fe4469 100644 --- a/debian/rules +++ b/debian/rules @@ -16,6 +16,10 @@ build-stamp: dh_testdir ant -Dlibs.junit_4.classpath=/usr/share/java/junit4.jar + + # Generate OSGi metadata for constantine.jar + bnd wrap -properties debian/constantine.bnd -output dist/constantine.jar dist/constantine.jar + touch build-stamp clean: -- 1.7.10.4