d/watch: update to v4, move to git mode and delete superfluous rules in d/rules.
Louis-Philippe VĂ©ronneau
3 years ago
2 | 2 |
* Team upload.
|
3 | 3 |
* New upstream release.
|
4 | 4 |
* d/rules: don't build the documentation.
|
|
5 |
* d/watch: update to v4, move to git mode and delete superfluous rules in
|
|
6 |
d/rules.
|
5 | 7 |
|
6 | 8 |
-- Louis-Philippe VĂ©ronneau <pollo@debian.org> Tue, 08 Dec 2020 13:23:16 -0500
|
7 | 9 |
|
6 | 6 |
PRODUCED_JAR=core.cache.jar
|
7 | 7 |
NAMESPACE=org.clojure/core.cache
|
8 | 8 |
MAVEN_META=META-INF/maven/$(NAMESPACE)
|
9 | |
|
10 | |
DEB_PKGNAME := $(shell dpkg-parsechangelog -SSource)
|
11 | |
DEB_VERSION := $(shell dpkg-parsechangelog -SVersion)
|
12 | |
DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
|
13 | |
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
|
14 | |
GIT_TAG := $(shell echo '$(DEB_UPSTREAM_VERSION)' | sed -e 's/~/_/')
|
15 | |
UPSTREAM_GIT = https://github.com/clojure/core.cache
|
16 | 9 |
|
17 | 10 |
%:
|
18 | 11 |
dh $@ --with javahelper,jh_maven_repo_helper
|
|
36 | 29 |
jh_clean
|
37 | 30 |
rm -f $(CURDIR)/$(PRODUCED_JAR)
|
38 | 31 |
rm -rf $(CURDIR)/meta
|
39 | |
|
40 | |
gen-orig-xz:
|
41 | |
git tag -v $(GIT_TAG) || true
|
42 | |
if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \
|
43 | |
git archive --prefix=$(DEB_PKGNAME)-$(DEB_UPSTREAM_VERSION)/ $(GIT_TAG) | xz >../$(DEB_PKGNAME)_$(DEB_UPSTREAM_VERSION).orig.tar.xz ; \
|
44 | |
mkdir -p ../build-area ; \
|
45 | |
cp ../$(DEB_PKGNAME)_$(DEB_UPSTREAM_VERSION).orig.tar.xz ../build-area ; \
|
46 | |
fi
|
47 | |
|
48 | |
fetch-upstream-remote:
|
49 | |
ifeq (,$(findstring https:,$(UPSTREAM_GIT)))
|
50 | |
$(error Using insecure proto in UPSTREAM_GIT: $(UPSTREAM_GIT))
|
51 | |
endif
|
52 | |
git remote add upstream $(UPSTREAM_GIT) || true
|
53 | |
git remote set-url upstream $(UPSTREAM_GIT)
|
54 | |
git fetch upstream
|
0 | |
version=3
|
1 | |
https://github.com/clojure/core.cache/tags .*[-/]{1}(\d[\d\.]+)\.tar\.gz
|
|
0 |
version=4
|
|
1 |
opts="mode=git, uversionmangle=s/core.cache-\.//" \
|
|
2 |
https://github.com/clojure/core.cache.git \
|
|
3 |
refs/tags/(core.cache-)?([\d\.]+)
|