Package: libhttpcore-java Version: 4.1.4-2 Severity: normal Tags: patch
--- Please enter the report below this line. --- Please add OSGi metadata to the manifest of httpcore.jar, so that the library can be used as Eclipse plugin (Mylyn Hudson integration requires it as a dependency). Attached patch uses maven-bundle-plugin to generate required metadata into MANIFEST.MF. Thanks Jakub --- System information. --- Architecture: amd64 Kernel: Linux 3.2.0-2-amd64 Debian Release: wheezy/sid 500 unstable ftp.cz.debian.org 500 testing security.debian.org 500 testing ftp.debian-multimedia.org 500 testing ftp.cz.debian.org 500 testing emdebian.org 500 stable ftp.cz.debian.org 1 experimental ftp.cz.debian.org --- Package information. --- Package's Depends field is empty. Package's Recommends field is empty. Package's Suggests field is empty.
diff --git a/debian/control b/debian/control index 151c190..f42051e 100644 --- a/debian/control +++ b/debian/control @@ -8,6 +8,7 @@ , libmaven-site-plugin-java , libmaven-assembly-plugin-java (>= 2.2~beta5) , libmaven-antrun-plugin-java + , libmaven-bundle-plugin-java , libsurefire-java , maven-debian-helper , openjdk-6-jdk diff --git a/debian/patches/01-generate_osgi_metadata.patch b/debian/patches/01-generate_osgi_metadata.patch new file mode 100644 index 0000000..d742e83 --- /dev/null +++ b/debian/patches/01-generate_osgi_metadata.patch @@ -0,0 +1,52 @@ +From: Jakub Adam <jakub.a...@ktknet.cz> +Date: Tue, 27 Mar 2012 18:15:01 +0200 +Subject: add-maven-bundle-plugin + +--- + httpcore/pom.xml | 33 +++++++++++++++++++++++++++++++++ + 1 files changed, 33 insertions(+), 0 deletions(-) + +diff --git a/httpcore/pom.xml b/httpcore/pom.xml +index 9d7783a..65db968 100644 +--- a/httpcore/pom.xml ++++ b/httpcore/pom.xml +@@ -93,6 +93,39 @@ + <jvm>${httpcore.surefire.java}</jvm> + </configuration> + </plugin> ++ <plugin> ++ <groupId>org.apache.felix</groupId> ++ <artifactId>maven-bundle-plugin</artifactId> ++ <version>2.3.5</version> ++ <executions> ++ <execution> ++ <id>bundle-manifest</id> ++ <phase>process-classes</phase> ++ <goals> ++ <goal>manifest</goal> ++ </goals> ++ </execution> ++ </executions> ++ <configuration> ++ <instructions> ++ <Bundle-Name>Apache ${project.name}</Bundle-Name> ++ <Bundle-SymbolicName>${project.groupId}.httpcore</Bundle-SymbolicName> ++ <Import-Package>!org.apache.http*,*</Import-Package> ++ <_exportcontents>org.apache.http.*;version=${project.version}</_exportcontents> ++ <Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency> ++ <!-- Stop the JAVA_1_n_HOME variables from being treated as headers by Bnd --> ++ <_removeheaders>JAVA_1_3_HOME,JAVA_1_4_HOME</_removeheaders> ++ </instructions> ++ </configuration> ++ </plugin> ++ <plugin> ++ <artifactId>maven-jar-plugin</artifactId> ++ <configuration> ++ <archive> ++ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> ++ </archive> ++ </configuration> ++ </plugin> + </plugins> + </build> + diff --git a/debian/patches/series b/debian/patches/series index b75ec23..d39b602 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 00-fix_build.patch +01-generate_osgi_metadata.patch