Package list comidi-clojure / fe32149
debian/rules: add code to manage upstream tag. Thomas Goirand 10 months ago
2 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 comidi-clojure (0.3.1-2) unstable; urgency=medium
1
2 * Team upload.
3 * debian/rules: add code to manage upstream tag.
4
5 -- Thomas Goirand <zigo@debian.org> Wed, 04 Nov 2020 12:09:08 +0100
6
07 comidi-clojure (0.3.1-2) unstable; urgency=medium
18
29 * Add prospective upstream patch (issues/36, pull/37) to fix spec
22 include /usr/share/javahelper/java-vars.mk
33
44 MDWN_DOCS = $(patsubst %.md,%.html,$(wildcard $(CURDIR)/*.md))
5
6 DEB_PKGNAME := $(shell dpkg-parsechangelog -SSource)
7 DEB_VERSION := $(shell dpkg-parsechangelog -SVersion)
8 DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
9 DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
10 GIT_TAG := $(shell echo '$(DEB_UPSTREAM_VERSION)' | sed -e 's/~/_/')
11 UPSTREAM_GIT = https://github.com/puppetlabs/comidi
512
613 PRODUCED_JAR=comidi.jar
714 export CLASSPATH=/usr/share/java/clojure.jar:/usr/share/java/clj-time.jar:/usr/share/java/bidi.jar:/usr/share/java/compojure.jar:/usr/share/java/prismatic-schema.jar:/usr/share/java/kitchensink.jar
3138 dh_auto_test
3239 (cd test && find . -name "*.clj" | \
3340 xargs --verbose clojure -cp $(CURDIR)/$(PRODUCED_JAR):$(CLASSPATH))
41
42 gen-orig-xz:
43 git tag -v $(GIT_TAG) || true
44 if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \
45 git archive --prefix=$(DEB_PKGNAME)-$(DEB_UPSTREAM_VERSION)/ $(GIT_TAG) | xz >../$(DEB_PKGNAME)_$(DEB_UPSTREAM_VERSION).orig.tar.xz ; \
46 mkdir -p ../build-area ; \
47 cp ../$(DEB_PKGNAME)_$(DEB_UPSTREAM_VERSION).orig.tar.xz ../build-area ; \
48 fi
49
50 fetch-upstream-remote:
51 ifeq (,$(findstring https:,$(UPSTREAM_GIT)))
52 $(error Using insecure proto in UPSTREAM_GIT: $(UPSTREAM_GIT))
53 endif
54 git remote add upstream $(UPSTREAM_GIT) || true
55 git remote set-url upstream $(UPSTREAM_GIT)
56 git fetch upstream