Commit a6daeb59 authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[pkg] Use debhelper 8

parent 6eb1958a6f37
......@@ -3,10 +3,12 @@ Section: web
Priority: optional
Maintainer: Logilab Packaging Team <contact@logilab.fr>
Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>
Build-Depends: debhelper (>= 7), python (>= 2.6), python-support
Build-Depends:
debhelper (>= 8),
python (>= 2.6.5),
Standards-Version: 3.9.3
Homepage: http://www.cubicweb.org/project/cubicweb-person
XS-Python-Version: >= 2.6
X-Python-Version: >= 2.6
Package: cubicweb-person
Architecture: all
......
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-arch build-indep
build-arch:
# Nothing to do
export NO_SETUPTOOLS=1
build-indep: build-stamp
build-stamp:
dh_testdir
NO_SETUPTOOLS=1 python setup.py -q build
>$@
%:
dh $@ --with python2
clean:
dh_testdir
rm -f build-stamp
rm -rf build
find . -name "*.pyc" -delete
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -i
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-person/usr/
override_dh_auto_install:
dh_auto_install
# remove generated .egg-info file
rm -rf debian/cubicweb-person/usr/lib/python*
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_install -i
dh_installchangelogs -i
dh_installexamples -i
dh_installdocs -i
dh_installman -i
dh_pysupport -i /usr/share/cubicweb
dh_link -i
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch:
rm -rf debian/*/usr/lib/python*
binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary
override_dh_python2:
dh_python2 -i /usr/share/cubicweb
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