debian/rules: add code to manage upstream tag.
Thomas Goirand
2 years ago
|
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 |
|
0 | 7 |
comidi-clojure (0.3.1-2) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Add prospective upstream patch (issues/36, pull/37) to fix spec
|
2 | 2 |
include /usr/share/javahelper/java-vars.mk
|
3 | 3 |
|
4 | 4 |
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
|
5 | 12 |
|
6 | 13 |
PRODUCED_JAR=comidi.jar
|
7 | 14 |
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
|
|
31 | 38 |
dh_auto_test
|
32 | 39 |
(cd test && find . -name "*.clj" | \
|
33 | 40 |
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
|