| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
|
| 5 |
VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/+dfsg//') |
| 6 |
|
| 7 |
#export CLASSPATH=/usr/share/java/xmlbeans.jar |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with maven-repo-helper --with javahelper |
| 11 |
|
| 12 |
override_dh_auto_build: |
| 13 |
dh_auto_build -- -Dversion.id=$(VERSION) -DDSTAMP=$(shell date --utc --date=@$(SOURCE_DATE_EPOCH) +%Y%m%d) jar maven-poms javadocs |
| 14 |
|
| 15 |
|
| 16 |
override_dh_auto_test: |
| 17 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 18 |
dh_auto_build -- test |
| 19 |
endif |
| 20 |
|
| 21 |
override_dh_auto_install: |
| 22 |
mh_installpom -plibapache-poi-java build/dist/maven/poi/poi-$(VERSION).pom |
| 23 |
mh_installpom -plibapache-poi-java build/dist/maven/poi-scratchpad/poi-scratchpad-$(VERSION).pom |
| 24 |
mh_installpom -plibapache-poi-java build/dist/maven/poi-ooxml/poi-ooxml-$(VERSION).pom |
| 25 |
mh_installpom -plibapache-poi-java build/dist/maven/poi-ooxml-schemas/poi-ooxml-schemas-$(VERSION).pom |
| 26 |
mh_installpom -plibapache-poi-java build/dist/maven/poi-excelant/poi-excelant-$(VERSION).pom |
| 27 |
mh_installjar -plibapache-poi-java -l build/dist/maven/poi/poi-$(VERSION).pom build/dist/maven/poi/poi-$(VERSION).jar |
| 28 |
mh_installjar -plibapache-poi-java -l build/dist/maven/poi-scratchpad/poi-scratchpad-$(VERSION).pom build/dist/maven/poi-scratchpad/poi-scratchpad-$(VERSION).jar |
| 29 |
mh_installjar -plibapache-poi-java -l build/dist/maven/poi-ooxml/poi-ooxml-$(VERSION).pom build/dist/maven/poi-ooxml/poi-ooxml-$(VERSION).jar |
| 30 |
mh_installjar -plibapache-poi-java -l build/dist/maven/poi-ooxml-schemas/poi-ooxml-schemas-$(VERSION).pom build/dist/maven/poi-ooxml-schemas/poi-ooxml-schemas-$(VERSION).jar |
| 31 |
mh_installjar -plibapache-poi-java -l build/dist/maven/poi-excelant/poi-excelant-$(VERSION).pom build/dist/maven/poi-excelant/poi-excelant-$(VERSION).jar |