[osgi-compendium] 13/16: Use pkg-info.mk instead of dpkg-parsechangelog
Kai-Chung Yan
seamlik-guest at moszumanska.debian.org
Thu Mar 1 09:45:58 UTC 2018
This is an automated email from the git hooks/post-receive script.
seamlik-guest pushed a commit to branch master
in repository osgi-compendium.
commit 3c1b9f2e412a7d56a7660def94e563655db7b198
Author: 殷啟聰 | Kai-Chung Yan <seamlikok at gmail.com>
Date: Tue Feb 27 22:21:27 2018 +0800
Use pkg-info.mk instead of dpkg-parsechangelog
---
debian/rules | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 27fc922..a6846cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,11 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/pkg-info.mk
+
export JAVA_HOME := /usr/lib/jvm/default-java
export CLASSPATH := /usr/share/java/osgi.core.jar:/usr/share/java/servlet-api-3.1.jar:/usr/share/java/ee.foundation.jar:/usr/share/java/geronimo-jpa_2.0_spec.jar:/usr/share/java/osgi.annotation.jar
MAVEN_REPO := https://repo1.maven.org/maven2/org/osgi/osgi.cmpn
-VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | sed -e 's/-[^-]*$$//')
JAR_NAME := osgi.cmpn
PACKAGE := libosgi-compendium-java
@@ -15,4 +16,4 @@ get-orig-source:
uscan --verbose --repack --compression xz --force-download --download-current-version
get-orig-pom:
- wget --user-agent="" -O debian/pom.xml $(MAVEN_REPO)/$(VERSION)/osgi.cmpn-$(VERSION).pom
+ wget --user-agent="" -O debian/pom.xml $(MAVEN_REPO)/$(DEB_VERSION_UPSTREAM)/osgi.cmpn-$(DEB_VERSION_UPSTREAM).pom
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/osgi-compendium.git
More information about the pkg-java-commits
mailing list