diff options
author | Matthias Klose <doko@ubuntu.com> | 2016-02-25 15:11:17 +0100 |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2016-02-25 15:11:17 +0100 |
commit | 0c5191b81812224efe14392c8081fc8341bd9d8f (patch) | |
tree | ea3678bf05102ef9f85e5496939895f940288cae | |
parent | 48ea8ec831eb4dfcec91bb0a21e1d3e69753da5c (diff) | |
download | java-common-0c5191b81812224efe14392c8081fc8341bd9d8f.tar.gz |
* Build a default-jdk-headless package.
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/control | 12 | ||||
-rwxr-xr-x | debian/rules | 12 |
3 files changed, 26 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index fc31eef..712d18b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +java-common (0.57) UNRELEASED; urgency=medium + + * Build a default-jdk-headless package. + + -- Matthias Klose <doko@debian.org> Thu, 25 Feb 2016 02:45:18 +0100 + java-common (0.56) unstable; urgency=medium * Team upload. diff --git a/debian/control b/debian/control index b32f156..f5e65cd 100644 --- a/debian/control +++ b/debian/control @@ -46,7 +46,7 @@ Description: Standard Java or Java compatible Runtime (headless) Package: default-jdk Architecture: any -Depends: default-jre (= ${binary:Version}), ${jdk}, +Depends: default-jre (= ${binary:Version}), default-jdk-headless (= ${binary:Version}), ${jdk}, ${misc:Depends} Provides: ${jdk:provides} Description: Standard Java or Java compatible Development Kit @@ -54,6 +54,16 @@ Description: Standard Java or Java compatible Development Kit development kit recommended for this architecture, which is ${jdk} for ${jre:arch}. +Package: default-jdk-headless +Architecture: any +Depends: default-jre-headless (= ${binary:Version}), ${jdkhl}, + ${misc:Depends} +Provides: ${jdkhl:provides} +Description: Standard Java or Java compatible Development Kit (headless) + This dependency package points to the Java runtime, or Java compatible + development kit recommended for this architecture, which is + ${jdk} for ${jre:arch}. + Package: default-jdk-doc Architecture: any Section: doc diff --git a/debian/rules b/debian/rules index a77b2a3..8fc3b8e 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,7 @@ include debian/java_defaults.mk p_jre = openjdk-$(java_default_version)-jre p_jhl = openjdk-$(java_default_version)-jre-headless p_jdk = openjdk-$(java_default_version)-jdk +p_jdkhl = openjdk-$(java_default_version)-jdk-headless p_doc = openjdk-$(java_default_version)-doc p_plugin = icedtea-$(java_default_version)-plugin dversion = 2:1.$(java_default_version)-$(release) @@ -21,6 +22,7 @@ ifeq (5, $(java_default_version)) p_jre = gcj-jre p_jhl = gcj-jre-headless p_jdk = gcj-jdk + p_jdkhl = gcj-jdk # no gcj-jdk-headless package p_doc = openjdk-8-doc p_plugin = jvmdir = java-gcj @@ -34,6 +36,7 @@ endif jre_provides = java-runtime, java2-runtime, $(shell seq --format java%.f-runtime --separator ', ' 5 $(java_default_version)) jhl_provides = java-runtime-headless, java2-runtime-headless, $(shell seq --format java%.f-runtime-headless --separator ', ' 5 $(java_default_version)) jdk_provides = java-sdk, java2-sdk, $(shell seq --format java%.f-sdk --separator ', ' 5 $(java_default_version)) +jdkhl_provides = java-sdk-headless, java2-sdk-headless, $(shell seq --format java%.f-sdk-headless --separator ', ' 5 $(java_default_version)) %: @@ -54,9 +57,10 @@ override_dh_installdocs: # Install the changelog and copyright once in default-jre-headless and use links for the other packages dh_installdocs -pdefault-jre-headless - dh_link -pdefault-jre /usr/share/doc/default-jre-headless /usr/share/doc/default-jre - dh_link -pdefault-jdk /usr/share/doc/default-jre /usr/share/doc/default-jdk - dh_link -pdefault-java-plugin /usr/share/doc/default-jre /usr/share/doc/default-java-plugin + dh_link -pdefault-jre /usr/share/doc/default-jre-headless /usr/share/doc/default-jre + dh_link -pdefault-jdk-headless /usr/share/doc/default-jre-headless /usr/share/doc/default-jdk-headless + dh_link -pdefault-jdk /usr/share/doc/default-jre /usr/share/doc/default-jdk + dh_link -pdefault-java-plugin /usr/share/doc/default-jre /usr/share/doc/default-java-plugin dh_installdocs -pdefault-jdk-doc dh_installdocs -pgcj-native-helper @@ -69,10 +73,12 @@ ifneq (,$(p_jre)) '-Vjre=$(p_jre)' \ '-Vjhl=$(p_jhl)' \ '-Vjdk=$(p_jdk)' \ + '-Vjdkhl=$(p_jdkhl)' \ '-Vdoc=$(p_doc)' \ '-Vjre:arch=$(DEB_HOST_ARCH)' \ '-Vjre:provides=$(jre_provides)' \ '-Vjhl:provides=$(jhl_provides)' \ + '-Vjdkhl:provides=$(jdkhl_provides)' \ '-Vjdk:provides=$(jdk_provides)' endif ifneq (,$(p_plugin)) |