[pkg-java] r16297 - trunk/libitext-java/debian
Niels Thykier
nthykier at alioth.debian.org
Sat Sep 15 09:01:25 UTC 2012
Author: nthykier
Date: 2012-09-15 09:01:25 +0000 (Sat, 15 Sep 2012)
New Revision: 16297
Modified:
trunk/libitext-java/debian/changelog
trunk/libitext-java/debian/control
trunk/libitext-java/debian/rules
Log:
Add missing class-path and use javahelper to find depends
Modified: trunk/libitext-java/debian/changelog
===================================================================
--- trunk/libitext-java/debian/changelog 2012-09-15 08:41:06 UTC (rev 16296)
+++ trunk/libitext-java/debian/changelog 2012-09-15 09:01:25 UTC (rev 16297)
@@ -1,12 +1,13 @@
libitext-java (2.1.7-4) UNRELEASED; urgency=low
* Team upload.
- * Correct the Class-Path for libitext-java.
+ * Add missing the Class-Path for the java packages.
- Use javahelper to set the classpath.
+ - Use javahelper to compute dependencies.
* Add versioned (Build-)Dependency on libbcprov-java due to
#687694.
- -- Niels Thykier <niels at thykier.net> Sat, 15 Sep 2012 10:34:39 +0200
+ -- Niels Thykier <niels at thykier.net> Sat, 15 Sep 2012 10:47:08 +0200
libitext-java (2.1.7-3) unstable; urgency=low
Modified: trunk/libitext-java/debian/control
===================================================================
--- trunk/libitext-java/debian/control 2012-09-15 08:41:06 UTC (rev 16296)
+++ trunk/libitext-java/debian/control 2012-09-15 09:01:25 UTC (rev 16297)
@@ -13,7 +13,7 @@
Package: libitext-java
Architecture: all
-Depends: ${misc:Depends}, libbcprov-java (>= 1.46)
+Depends: ${misc:Depends}, libbcprov-java (>= 1.46), ${java:Depends}
Suggests: libitext-java-gcj
Description: Java Library to create and manipulate PDF on the fly
iText is a library that allows you to generate PDF files on the fly.
@@ -38,14 +38,14 @@
Package: libitext-rtf-java
Architecture: all
-Depends: libitext-java (= ${binary:Version}), ${misc:Depends}
+Depends: libitext-java (= ${binary:Version}), ${misc:Depends}, ${java:Depends}
Description: Java Library to create and manipulate RTF files on the fly
iText RTF is a library that allows you to generate RTF files on the fly in
a similar fashion to iText itself.
Package: libitext-rups-java
Architecture: all
-Depends: libitext-java (= ${binary:Version}), ${misc:Depends}
+Depends: libitext-java (= ${binary:Version}), ${misc:Depends}, ${java:Depends}
Description: graphical tool for Reading and Updating PDF Syntax (RUPS)
iText RUPS provides a GUI for visualizing PDF files and investigating their
internal structure.
Modified: trunk/libitext-java/debian/rules
===================================================================
--- trunk/libitext-java/debian/rules 2012-09-15 08:41:06 UTC (rev 16296)
+++ trunk/libitext-java/debian/rules 2012-09-15 09:01:25 UTC (rev 16297)
@@ -9,7 +9,9 @@
DEB_ANT_CLEAN_TARGET :=
DEB_ANT_BUILDFILE := src/build.xml
DEB_JARS := bcprov bcmail bctsp dom4j pdfrenderer
-CLASS_PATH := /usr/share/java/bcprov.jar
+CORE_CLASS_PATH := /usr/share/java/bcprov.jar /usr/share/java/bcmail.jar /usr/share/java/bctsp.jar
+RTF_CLASS_PATH := /usr/share/java/itext.jar /usr/share/java/pdfrenderer.jar /usr/share/java/dom4j.jar
+RUPS_CLASS_PATH := /usr/share/java/itext.jar
include /usr/share/gcj/debian_defaults
ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs)))
@@ -26,21 +28,28 @@
install/lib$(LIBRARY_PACKAGE)-java::
dh_installdirs -plib$(LIBRARY_PACKAGE)-java usr/share/java
+ # Add Class-Path
+ jh_manifest -c "$(CORE_CLASS_PATH)" lib/iText.jar
install -m 644 lib/iText.jar debian/lib$(LIBRARY_PACKAGE)-java/usr/share/java/$(LIBRARY_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar
dh_link -plib$(LIBRARY_PACKAGE)-java usr/share/java/$(LIBRARY_PACKAGE)-$(DEB_UPSTREAM_VERSION).jar usr/share/java/$(LIBRARY_PACKAGE).jar
+ jh_depends -plib$(LIBRARY_PACKAGE)-java
install/lib$(LIBRARY_PACKAGE)-rtf-java::
dh_installdirs -plib$(LIBRARY_PACKAGE)-rtf-java usr/share/java
# Add Class-Path
- jh_manifest -c "$(CLASS_PATH)" lib/iText-rtf.jar
+ jh_manifest -c "$(RTF_CLASS_PATH)" lib/iText-rtf.jar
# install
install -m 644 lib/iText-rtf.jar debian/lib$(LIBRARY_PACKAGE)-rtf-java/usr/share/java/$(LIBRARY_PACKAGE)-rtf-$(DEB_UPSTREAM_VERSION).jar
dh_link -plib$(LIBRARY_PACKAGE)-rtf-java usr/share/java/$(LIBRARY_PACKAGE)-rtf-$(DEB_UPSTREAM_VERSION).jar usr/share/java/$(LIBRARY_PACKAGE)-rtf.jar
+ jh_depends -plib$(LIBRARY_PACKAGE)-rtf-java
install/lib$(LIBRARY_PACKAGE)-rups-java::
dh_installdirs -plib$(LIBRARY_PACKAGE)-rups-java usr/share/java
+ # Add Class-Path
+ jh_manifest -c "$(RUPS_CLASS_PATH)" lib/iText-rups.jar
install -m 644 lib/iText-rups.jar debian/lib$(LIBRARY_PACKAGE)-rups-java/usr/share/java/$(LIBRARY_PACKAGE)-rups-$(DEB_UPSTREAM_VERSION).jar
dh_link -plib$(LIBRARY_PACKAGE)-rups-java usr/share/java/$(LIBRARY_PACKAGE)-rups-$(DEB_UPSTREAM_VERSION).jar usr/share/java/$(LIBRARY_PACKAGE)-rups.jar
+ jh_depends -plib$(LIBRARY_PACKAGE)-rups-java
ifeq ($(with_gcj_native),yes)
install/libitext-java-gcj:: install/libitext-java
More information about the pkg-java-commits
mailing list