1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/usr/bin/make -f
# debian/rules for libcommons-httpclient-java (uses CDBS)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
PACKAGE := $(DEB_SOURCE_PACKAGE)
VERSION := $(DEB_UPSTREAM_VERSION)
JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := junit commons-logging commons-codec
DEB_ANT_BUILD_TARGET := dist
DEB_INSTALL_CHANGELOGS_ALL = RELEASE_NOTES.txt
binary-post-install/lib$(PACKAGE)-java::
mh_installpoms -plib$(PACKAGE)-java
mh_installjar -plib$(PACKAGE)-java -l debian/pom.xml dist/$(PACKAGE)-$(VERSION).jar
clean::
mh_clean
get-orig-pom:
wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/commons-httpclient/commons-httpclient/$(DEB_UPSTREAM_VERSION)/commons-httpclient-$(DEB_UPSTREAM_VERSION).pom
get-orig-source:
-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
|