From dc5d0b6b528bdc8255df66a0f1a6ed7bd96f8f06 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 19 Oct 2010 12:54:42 +0300 Subject: [PATCH] Minimizing rules file. bzr revid: p_christ@hol.gr-20101019095442-ahpmsub05uqsa5f9 --- debian/control | 2 +- debian/rules | 62 +++++++------------------------------------------- 2 files changed, 9 insertions(+), 55 deletions(-) diff --git a/debian/control b/debian/control index 42686e084a6..9e2416f28fe 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: net Priority: optional Maintainer: Debian Open Object Maintainers Uploaders: Daniel Baumann -Build-Depends: debhelper (>= 7), python-dev, quilt +Build-Depends: debhelper (>= 7.0.50~), python-dev, quilt (>= 0.46-7) Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2 Standards-Version: 3.8.3 Homepage: http://www.openerp.com/ diff --git a/debian/rules b/debian/rules index 54f3cfdd503..c533fe28505 100755 --- a/debian/rules +++ b/debian/rules @@ -1,42 +1,14 @@ #!/usr/bin/make -f -SHELL := sh -e +%: + dh ${@} --with quilt -include /usr/share/quilt/quilt.make +override_dh_auto_clean: + dh_auto_clean -update: - # Needs: shell-helper - - cd debian; \ - debconf-create-preseed *.config; \ - - for FILE in debian/*.preseed; \ - do \ - grep -v preseed $$FILE > $$FILE.tmp; \ - mv $$FILE.tmp $$FILE; \ - echo $$FILE >> debian/`basename $$FILE .preseed`.examples; \ - done - -clean: clean-patched unpatch -clean-patched: patch - dh_testdir - dh_testroot - rm -f build-stamp - - python setup.py clean - rm -rf build openerp-server -find $(CURDIR) -type f -name "*.pyc" | xargs rm -f - dh_clean - -build: - -install: patch - dh_testdir - dh_testroot - dh_prep - dh_installdirs - +override_dh_auto_install: python setup.py install --no-compile --prefix=$(CURDIR)/debian/openerp-server/usr # Adjusting program location @@ -50,26 +22,8 @@ install: patch # Removing double files rm -rf debian/openerp-server/usr/share/doc/openerp-server-* -binary: binary-indep - -binary-arch: - -binary-indep: install - dh_testdir - dh_testroot +override_dh_installchangelogs: dh_installchangelogs doc/Changelog - dh_installdocs - dh_installexamples - dh_install - dh_installinit --update-rcd-params='defaults 21' - dh_installdebconf - dh_lintian - dh_link - dh_compress - dh_fixperms - dh_installdeb - dh_gencontrol - dh_md5sums - dh_builddeb -.PHONY: clean build install binary binary-arch binary-indep +override_dh_installinit: + dh_installinit --update-rcd-params='defaults 21'