# HG changeset patch # User Julien Cristau # Date 1419329895 -3600 # Node ID ae518e501179d09fdfe898bb9434a8c19964dfa0 # Parent 52adf66fae7d01bf4cc8521c5aa395276f888ee6 [skeleton] simplify debian rules file diff -r 52adf66fae7d -r ae518e501179 skeleton/debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/skeleton/debian/rules Tue Dec 23 11:18:15 2014 +0100 @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +export NO_SETUPTOOLS=1 + +%: + dh $@ --with python2 + +override_dh_auto_install: + dh_auto_install + # remove generated .egg-info file + rm -rf debian/*/usr/lib/python* + +override_dh_python2: + dh_python2 -i /usr/share/cubicweb diff -r 52adf66fae7d -r ae518e501179 skeleton/debian/rules.tmpl --- a/skeleton/debian/rules.tmpl Mon Dec 22 14:39:50 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -#!/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 -build-indep: build-stamp -build-stamp: - dh_testdir - NO_SETUPTOOLS=1 python setup.py -q build - touch build-stamp - -clean: - dh_testdir - rm -f build-stamp configure-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/%(distname)s/usr/ - # remove generated .egg-info file - rm -rf debian/%(distname)s/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 README - dh_installman -i - dh_python2 -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: - -binary: binary-indep -.PHONY: build clean binary-arch binary-indep binary