r2130 - in zope2.12/branches/with-revived-tarball/debian (5 files)

pumazi-guest at users.alioth.debian.org pumazi-guest at users.alioth.debian.org
Tue Nov 9 23:59:01 UTC 2010


    Date: Tuesday, November 9, 2010 @ 23:58:56
  Author: pumazi-guest
Revision: 2130

Moving the docs and dirs hooks to ZVER*.in files. Modified the rules file to generate and clean the .in files.

Added:
  zope2.12/branches/with-revived-tarball/debian/zopeZVER.dirs.in
    (from rev 2126, zope2.12/branches/with-revived-tarball/debian/dirs)
  zope2.12/branches/with-revived-tarball/debian/zopeZVER.docs.in
    (from rev 2126, zope2.12/branches/with-revived-tarball/debian/docs)
Modified:
  zope2.12/branches/with-revived-tarball/debian/rules
Deleted:
  zope2.12/branches/with-revived-tarball/debian/dirs
  zope2.12/branches/with-revived-tarball/debian/docs

Deleted: zope2.12/branches/with-revived-tarball/debian/dirs
===================================================================
--- zope2.12/branches/with-revived-tarball/debian/dirs	2010-11-09 21:58:29 UTC (rev 2129)
+++ zope2.12/branches/with-revived-tarball/debian/dirs	2010-11-09 23:58:56 UTC (rev 2130)
@@ -1,3 +0,0 @@
-usr/lib/zope2.12
-usr/lib/zope2.12/bin
-usr/lib/zope2.12/lib/python/site-packages

Deleted: zope2.12/branches/with-revived-tarball/debian/docs
===================================================================
--- zope2.12/branches/with-revived-tarball/debian/docs	2010-11-09 21:58:29 UTC (rev 2129)
+++ zope2.12/branches/with-revived-tarball/debian/docs	2010-11-09 23:58:56 UTC (rev 2130)
@@ -1,2 +0,0 @@
-README
-version.txt

Modified: zope2.12/branches/with-revived-tarball/debian/rules
===================================================================
--- zope2.12/branches/with-revived-tarball/debian/rules	2010-11-09 21:58:29 UTC (rev 2129)
+++ zope2.12/branches/with-revived-tarball/debian/rules	2010-11-09 23:58:56 UTC (rev 2130)
@@ -14,14 +14,33 @@
 %:
 	dh $@ 
 
+override_dh_auto_clean:
+	for f in debian/*.in; do \
+		generated=`echo $$f | sed 's,.in$$,,;s,ZVER,$(ZVER),'`; \
+		rm -f $$generated $$generated.tmp; \
+	done
+	dh_auto_clean --
+
 override_dh_auto_configure:
 	./configure --prefix=/usr/lib/zope${ZVER}
 
 override_dh_auto_build:
 	make PYTHON=python \
-		DIST_EXCLUSIONS=zope.traversing:zope.testbrowser:zope.testing:pytz:Docutils:ZODB3
+	     DIST_EXCLUSIONS=zope.traversing:zope.testbrowser:zope.testing:pytz:Docutils:ZODB3
 
+override_dh_prep:
+	for f in debian/*.in; do \
+		generated=`echo $$f | sed 's,.in$$,,;s,ZVER,$(ZVER),'`; \
+		sed 's, at ZVER@,$(ZVER),g' $$f > $$generated.tmp; \
+		if cmp --quiet "$$generated" "$$generated.tmp"; then \
+			rm -f $$generated.tmp; \
+		else \
+			mv -f  $$generated.tmp $$generated; \
+		fi; \
+	done
+	dh_prep --
+
 override_dh_auto_install:
 	make install PYTHON=python DESTDIR=$(CURDIR)/debian/zope${ZVER}
 
-.PHONY: override_dh_auto_configure override_dh_auto_build override_dh_auto_install
\ No newline at end of file
+.PHONY: override_dh_auto_clean override_dh_auto_configure override_dh_auto_build override_dh_prep override_dh_auto_install
\ No newline at end of file

Copied: zope2.12/branches/with-revived-tarball/debian/zopeZVER.dirs.in (from rev 2126, zope2.12/branches/with-revived-tarball/debian/dirs)
===================================================================
--- zope2.12/branches/with-revived-tarball/debian/zopeZVER.dirs.in	                        (rev 0)
+++ zope2.12/branches/with-revived-tarball/debian/zopeZVER.dirs.in	2010-11-09 23:58:56 UTC (rev 2130)
@@ -0,0 +1,3 @@
+usr/lib/zope2.12
+usr/lib/zope2.12/bin
+usr/lib/zope2.12/lib/python/site-packages

Copied: zope2.12/branches/with-revived-tarball/debian/zopeZVER.docs.in (from rev 2126, zope2.12/branches/with-revived-tarball/debian/docs)
===================================================================
--- zope2.12/branches/with-revived-tarball/debian/zopeZVER.docs.in	                        (rev 0)
+++ zope2.12/branches/with-revived-tarball/debian/zopeZVER.docs.in	2010-11-09 23:58:56 UTC (rev 2130)
@@ -0,0 +1,2 @@
+README
+version.txt




More information about the pkg-zope-developers mailing list