r2398 - in zope2.12/tags (3 files)
mejo at users.alioth.debian.org
mejo at users.alioth.debian.org
Tue Oct 11 13:51:23 UTC 2011
Date: Tuesday, October 11, 2011 @ 13:51:22
Author: mejo
Revision: 2398
[svn-buildpackage] Tagging zope2.12 2.12.20-1
Added:
zope2.12/tags/2.12.20-1/
zope2.12/tags/2.12.20-1/debian/rules
(from rev 2397, zope2.12/trunk/debian/rules)
Deleted:
zope2.12/tags/2.12.20-1/debian/rules
Deleted: zope2.12/tags/2.12.20-1/debian/rules
===================================================================
--- zope2.12/trunk/debian/rules 2011-10-11 09:16:51 UTC (rev 2395)
+++ zope2.12/tags/2.12.20-1/debian/rules 2011-10-11 13:51:22 UTC (rev 2398)
@@ -1,122 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-##export DH_VERBOSE=1
-
-ZVER:=2.12
-ZOPE:=zope$(ZVER)
-PYVER:=2.6
-PYTHON:=python$(PYVER)
-DEBIAN:=$(CURDIR)/debian
-DEB_SATISFIED:=ClientForm:Docutils:distribute:mechanize:pip:pytz:initgroups
-distribution:=$(shell lsb_release -is)
-
-# get-orig-source variables
-ZOPE_INDEX:=http://download.zope.org/Zope2/index/
-SRC_VERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
-SRC_DIR:=$(ZOPE)-$(SRC_VERSION)
-TARBALL:=$(ZOPE)_$(SRC_VERSION).orig.tar.gz
-
-get-orig-source:
- rm -rf $(CURDIR)/$(SRC_DIR)
- mkdir $(CURDIR)/$(SRC_DIR)
- cd $(CURDIR)/$(SRC_DIR); \
- $(PYTHON) $(DEBIAN)/build-scripts/fetch.py \
- --versions-cfg-url=${ZOPE_INDEX}$(SRC_VERSION)/versions.cfg \
- --index=${ZOPE_INDEX}$(SRC_VERSION) \
- --exclude-singles=$(DEB_SATISFIED) \
- Zope2==$(SRC_VERSION)
- tar czf $(CURDIR)/../$(TARBALL) $(SRC_DIR)
- rm -rf $(CURDIR)/$(SRC_DIR)
-
-%:
- dh --with python2 $@
-
-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 --
- # quilt has issues applying permissions to non-existent files, so we'll need to apply executable permissions here
- chmod a+x configure
-
-override_dh_auto_configure:
- ./configure --prefix=/usr/lib/${ZOPE}
-
-override_dh_auto_build:
- make PYTHON=$(PYTHON) \
- DIST_EXCLUSIONS=$(DEB_SATISFIED)
-
-override_dh_prep:
- for f in debian/*.in; do \
- generated=`echo $$f | sed 's,.in$$,,;s,ZVER,$(ZVER),'`; \
- sed -e 's, at ZVER@,$(ZVER),g' -e 's, at PYVER@,$(PYVER),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 --
- dh_installzopeinstance -pzope$(ZVER)-sandbox sandbox
-
-override_dh_auto_install:
- make install PYTHON=$(PYTHON) DESTDIR=$(DEBIAN)/$(ZOPE)
-
-# sed -i '/^#!.*$$/a\import site; site.addsitedir("/usr/lib/$(ZOPE)/lib/python")' $$(find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/bin -type f ! -type l)
- for i in `find $(DEBIAN)/$(ZOPE) -type f`; do \
- if sed '1s,#!.*python[^ ]*\(.*\),#!/usr/lib/zope$(ZVER)/bin/python\1,' $$i > $$i~ ; then \
- if cmp --quiet $$i $$i~ ; then \
- rm -f $$i~ ; \
- else \
- mv -f $$i~ $$i; \
- chmod 755 $$i; \
- echo "Fixed interpreter: $$i"; \
- fi; else rm -f $$i~ ; \
- fi; \
- done
-
- # install the changelogs
- dh_installchangelogs source/Zope2/doc/CHANGES.rst
-
- cd $(CURDIR)/source; for egg_src in *; do \
- if test "$$egg_src" != "Zope2"; then \
- egg_changes=$$(find $$egg_src -name CHANGES.txt -or -name NEWS.txt | head -n1); \
- if test -n "$$egg_changes"; then \
- cp $$egg_changes $(DEBIAN)/$(ZOPE)/usr/share/doc/$(ZOPE)/changelogs/changelog.$$egg_src; \
- echo "Copied changelog: $(DEBIAN)/$(ZOPE)/usr/share/doc/$(ZOPE)/changelogs/changelog.$$egg_src"; \
- fi; \
- fi; \
- done
-
- # remove extra license files
- find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python -type f -a \( -name LICENSE.txt -o -name COPYING.txt \) -exec rm -f {} \;
-
- # remove scripts from egg-info subfolders
- rm -r $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/*/EGG-INFO/scripts
-
- cp $(DEBIAN)/python_interpreter_template $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/bin/python
-ifeq ($(distribution),Ubuntu)
- mv $(DEBIAN)/$(ZOPE)-sandbox/usr/share/doc/$(ZOPE)-sandbox/README.Debian \
- $(DEBIAN)/$(ZOPE)-sandbox/usr/share/doc/$(ZOPE)-sandbox/README.Ubuntu
-endif
-
-override_dh_fixperms:
- dh_fixperms --
- # Setuptools apparently makes every .py file executable during the build.
- find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/ -type f -perm /a+x -exec chmod a-x {} \;
- chmod 755 \
- $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/Zope2-*/ZPublisher/Client.py \
- $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/Zope2-*/ZPublisher/Test.py
- find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python -type f -a \
- \( -name \*.gif -o -name \*.html -o -name \*.dtml -o -name \*.txt -o -name \*.bat -o -name \*.jpg \) -exec chmod 644 {} \;
- chmod 644 $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/Zope2-*/Zope2/utilities/reindex_catalog.py
- chmod 755 $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/bin/python
-
-.PHONY: get-orig-source override_dh_auto_clean override_dh_auto_configure override_dh_auto_build override_dh_prep override_dh_auto_install override_dh_fixperms
Copied: zope2.12/tags/2.12.20-1/debian/rules (from rev 2397, zope2.12/trunk/debian/rules)
===================================================================
--- zope2.12/tags/2.12.20-1/debian/rules (rev 0)
+++ zope2.12/tags/2.12.20-1/debian/rules 2011-10-11 13:51:22 UTC (rev 2398)
@@ -0,0 +1,122 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+##export DH_VERBOSE=1
+
+ZVER:=2.12
+ZOPE:=zope$(ZVER)
+PYVER:=2.6
+PYTHON:=python$(PYVER)
+DEBIAN:=$(CURDIR)/debian
+DEB_SATISFIED:=ClientForm:Docutils:distribute:initgroups:mechanize:pip:pytz
+distribution:=$(shell lsb_release -is)
+
+# get-orig-source variables
+ZOPE_INDEX:=http://download.zope.org/Zope2/index/
+SRC_VERSION:=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
+SRC_DIR:=$(ZOPE)-$(SRC_VERSION)
+TARBALL:=$(ZOPE)_$(SRC_VERSION).orig.tar.gz
+
+get-orig-source:
+ rm -rf $(CURDIR)/$(SRC_DIR)
+ mkdir $(CURDIR)/$(SRC_DIR)
+ cd $(CURDIR)/$(SRC_DIR); \
+ $(PYTHON) $(DEBIAN)/build-scripts/fetch.py \
+ --versions-cfg-url=${ZOPE_INDEX}$(SRC_VERSION)/versions.cfg \
+ --index=${ZOPE_INDEX}$(SRC_VERSION) \
+ --exclude-singles=$(DEB_SATISFIED) \
+ Zope2==$(SRC_VERSION)
+ tar czf $(CURDIR)/../$(TARBALL) $(SRC_DIR)
+ rm -rf $(CURDIR)/$(SRC_DIR)
+
+%:
+ dh --with python2 $@
+
+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 --
+ # quilt has issues applying permissions to non-existent files, so we'll need to apply executable permissions here
+ chmod a+x configure
+
+override_dh_auto_configure:
+ ./configure --prefix=/usr/lib/${ZOPE}
+
+override_dh_auto_build:
+ make PYTHON=$(PYTHON) \
+ DIST_EXCLUSIONS=$(DEB_SATISFIED)
+
+override_dh_prep:
+ for f in debian/*.in; do \
+ generated=`echo $$f | sed 's,.in$$,,;s,ZVER,$(ZVER),'`; \
+ sed -e 's, at ZVER@,$(ZVER),g' -e 's, at PYVER@,$(PYVER),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 --
+ dh_installzopeinstance -pzope$(ZVER)-sandbox sandbox
+
+override_dh_auto_install:
+ make install PYTHON=$(PYTHON) DESTDIR=$(DEBIAN)/$(ZOPE)
+
+# sed -i '/^#!.*$$/a\import site; site.addsitedir("/usr/lib/$(ZOPE)/lib/python")' $$(find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/bin -type f ! -type l)
+ for i in `find $(DEBIAN)/$(ZOPE) -type f`; do \
+ if sed '1s,#!.*python[^ ]*\(.*\),#!/usr/lib/zope$(ZVER)/bin/python\1,' $$i > $$i~ ; then \
+ if cmp --quiet $$i $$i~ ; then \
+ rm -f $$i~ ; \
+ else \
+ mv -f $$i~ $$i; \
+ chmod 755 $$i; \
+ echo "Fixed interpreter: $$i"; \
+ fi; else rm -f $$i~ ; \
+ fi; \
+ done
+
+ # install the changelogs
+ dh_installchangelogs source/Zope2/doc/CHANGES.rst
+
+ cd $(CURDIR)/source; for egg_src in *; do \
+ if test "$$egg_src" != "Zope2"; then \
+ egg_changes=$$(find $$egg_src -name CHANGES.txt -or -name NEWS.txt | head -n1); \
+ if test -n "$$egg_changes"; then \
+ cp $$egg_changes $(DEBIAN)/$(ZOPE)/usr/share/doc/$(ZOPE)/changelogs/changelog.$$egg_src; \
+ echo "Copied changelog: $(DEBIAN)/$(ZOPE)/usr/share/doc/$(ZOPE)/changelogs/changelog.$$egg_src"; \
+ fi; \
+ fi; \
+ done
+
+ # remove extra license files
+ find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python -type f -a \( -name LICENSE.txt -o -name COPYING.txt \) -exec rm -f {} \;
+
+ # remove scripts from egg-info subfolders
+ rm -r $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/*/EGG-INFO/scripts
+
+ cp $(DEBIAN)/python_interpreter_template $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/bin/python
+ifeq ($(distribution),Ubuntu)
+ mv $(DEBIAN)/$(ZOPE)-sandbox/usr/share/doc/$(ZOPE)-sandbox/README.Debian \
+ $(DEBIAN)/$(ZOPE)-sandbox/usr/share/doc/$(ZOPE)-sandbox/README.Ubuntu
+endif
+
+override_dh_fixperms:
+ dh_fixperms --
+ # Setuptools apparently makes every .py file executable during the build.
+ find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/ -type f -perm /a+x -exec chmod a-x {} \;
+ chmod 755 \
+ $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/Zope2-*/ZPublisher/Client.py \
+ $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/Zope2-*/ZPublisher/Test.py
+ find $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python -type f -a \
+ \( -name \*.gif -o -name \*.html -o -name \*.dtml -o -name \*.txt -o -name \*.bat -o -name \*.jpg \) -exec chmod 644 {} \;
+ chmod 644 $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/lib/python/Zope2-*/Zope2/utilities/reindex_catalog.py
+ chmod 755 $(DEBIAN)/$(ZOPE)/usr/lib/$(ZOPE)/bin/python
+
+.PHONY: get-orig-source override_dh_auto_clean override_dh_auto_configure override_dh_auto_build override_dh_prep override_dh_auto_install override_dh_fixperms
More information about the pkg-zope-developers
mailing list