Commit 6fa12f2c authored by Ole Streicher's avatar Ole Streicher

Push compat to 11

parent 8d4997f8
......@@ -3,8 +3,7 @@ Section: science
Priority: optional
Maintainer: Debian Astronomy Team <debian-astro-maintainers@lists.alioth.debian.org>
Uploaders: Ole Streicher <olebole@debian.org>
Build-Depends: debhelper (>= 9),
dh-autoreconf,
Build-Depends: debhelper (>= 11),
libcpl-dev (>= 5.3.1),
python,
python-astropy,
......
......@@ -2,16 +2,16 @@
# -*- makefile -*-
#export DH_VERBOSE=1
DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/+.*//')
DEBPKGNAME ?= $(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2)
PIPELINE ?= $(shell echo '$(DEBPKGNAME)' | sed -e 's/cpl-plugin-//')
include /usr/share/dpkg/pkg-info.mk
VERSION ?= $(shell echo '$(DEB_VERSION)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/+.*//')
PIPELINE ?= $(shell echo '$(DEB_SOURCE)' | sed -e 's/cpl-plugin-//')
get-orig-source:
sh ./debian/repackage.sh
%:
dh $@ --with autoreconf,sphinxdoc
dh $@ --with sphinxdoc
debian_files:
if [ -d calib/cal ] ; then \
......@@ -23,7 +23,7 @@ debian_files:
for f in $$dfiles ; do \
sed "s/__VERSION__/$(VERSION)/g;s/__PIPELINE__/${PIPELINE}/g" \
< debian/cpl-plugin$$f.in \
> debian/${DEBPKGNAME}$$f ; \
> debian/${DEB_SOURCE}$$f ; \
done
override_dh_install: debian_files
......@@ -47,14 +47,14 @@ override_dh_sphinxdoc:
override_dh_clean:
dh_clean
rm -rf debian/${DEBPKGNAME}.install \
debian/${DEBPKGNAME}-doc.manpages \
debian/${DEBPKGNAME}-doc.docs \
debian/${DEBPKGNAME}-doc.doc-base \
debian/${DEBPKGNAME}-calib.lintian-overrides \
debian/${DEBPKGNAME}-calib.install \
debian/${DEBPKGNAME}-calib.postinst \
debian/${DEBPKGNAME}-calib.prerm \
rm -rf debian/${DEB_SOURCE}.install \
debian/${DEB_SOURCE}-doc.manpages \
debian/${DEB_SOURCE}-doc.docs \
debian/${DEB_SOURCE}-doc.doc-base \
debian/${DEB_SOURCE}-calib.lintian-overrides \
debian/${DEB_SOURCE}-calib.install \
debian/${DEB_SOURCE}-calib.postinst \
debian/${DEB_SOURCE}-calib.prerm \
debian/README.Debian \
man sphinx
......@@ -74,7 +74,7 @@ override_dh_installchangelogs:
override_dh_gencontrol-indep:
dh_gencontrol
if [ ! -d calib/cal ] ; then \
sed "s/Installed-Size:.*/Installed-Size: $(shell cat calib/cal_size)/" -i debian/${DEBPKGNAME}-calib/DEBIAN/control ; \
sed "s/Installed-Size:.*/Installed-Size: $(shell cat calib/cal_size)/" -i debian/${DEB_SOURCE}-calib/DEBIAN/control ; \
fi
override_dh_auto_test:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment