[Python-apps-commits] r7289 - in packages/trac/trunk/debian (changelog control rules)

adejong at users.alioth.debian.org adejong at users.alioth.debian.org
Sun Jul 10 10:41:58 UTC 2011


    Date: Sunday, July 10, 2011 @ 10:41:57
  Author: adejong
Revision: 7289

  * Switch to dh-style debian/rules.

Modified:
  packages/trac/trunk/debian/changelog
  packages/trac/trunk/debian/control
  packages/trac/trunk/debian/rules

Modified: packages/trac/trunk/debian/changelog
===================================================================
--- packages/trac/trunk/debian/changelog	2011-07-10 09:01:46 UTC (rev 7288)
+++ packages/trac/trunk/debian/changelog	2011-07-10 10:41:57 UTC (rev 7289)
@@ -15,8 +15,9 @@
   * Moved packaging from python-central to dh_python2.
   * Dropped conflicts on libapache2-mod-python2.3 because that package was
     removed before the lenny release.
+  * Switch to dh-style debian/rules.
 
- -- Arthur de Jong <adejong at debian.org>  Sun, 10 Jul 2011 11:00:00 +0200
+ -- Arthur de Jong <adejong at debian.org>  Sun, 10 Jul 2011 12:30:00 +0200
 
 trac (0.11.7-4) unstable; urgency=low
 

Modified: packages/trac/trunk/debian/control
===================================================================
--- packages/trac/trunk/debian/control	2011-07-10 09:01:46 UTC (rev 7288)
+++ packages/trac/trunk/debian/control	2011-07-10 10:41:57 UTC (rev 7289)
@@ -1,7 +1,7 @@
 Source: trac
 Section: web
 Priority: optional
-Build-Depends: python-genshi (>= 0.6), debhelper (>= 7)
+Build-Depends: python-genshi (>= 0.6), debhelper (>= 7.0.50~)
 Build-Depends-Indep: python (>= 2.6.6-3~), python-setuptools (>= 0.6)
 Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
 Uploaders: Otavio Salvador <otavio at debian.org>, W. Martin Borgert <debacle at debian.org>

Modified: packages/trac/trunk/debian/rules
===================================================================
--- packages/trac/trunk/debian/rules	2011-07-10 09:01:46 UTC (rev 7288)
+++ packages/trac/trunk/debian/rules	2011-07-10 10:41:57 UTC (rev 7289)
@@ -1,54 +1,14 @@
 #!/usr/bin/make -f
 
-PYVER=$(shell python -c 'import sys; print sys.version[:3]')
-include /usr/share/python/python.mk
+export DH_VERBOSE=1
 
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
-	rm -rf dist build
-	-find . -name *\.py[co] -exec rm {} \;
-	dh_clean
+%:
+	dh $@ --with python2 --buildsystem=python_distutils
 
-build: build-stamp
-
-build-stamp:
-	dh_testdir
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-	python setup.py install \
-		--root=$(CURDIR)/debian/trac \
-		--single-version-externally-managed \
-		$(py_setup_install_args)
-	chmod +x $(CURDIR)/debian/trac/$(py_libdir_sh)/trac/admin/templates/deploy_trac.wsgi
-	chmod +x $(CURDIR)/debian/trac/$(py_libdir_sh)/trac/admin/templates/deploy_trac.fcgi
-	chmod +x $(CURDIR)/debian/trac/$(py_libdir_sh)/trac/admin/templates/deploy_trac.cgi
-	chmod +x $(CURDIR)/debian/trac/$(py_libdir_sh)/trac/web/*_frontend.py
-
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs
-	dh_installdocs
-	dh_install -Xtrac-post-commit-hook.cmd
-	dh_installman
-	dh_link
-	dh_lintian
-	dh_python2
+override_dh_compress:
 	dh_compress -X.py -X-hook
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
 
-binary-arch: build install
-
-binary: binary-indep binary-arch
-
-.PHONY: build clean binary-indep binary-arch binary install configure
+override_dh_fixperms:
+	dh_fixperms
+	chmod +x debian/trac/usr/share/pyshared/trac/admin/templates/deploy_trac.*
+	chmod +x debian/trac/usr/share/pyshared/trac/web/*_frontend.py




More information about the Python-apps-commits mailing list