[Python-modules-commits] r7598 - in packages/py-sendfile/trunk/debian (control copyright rules)
speijnik-guest at users.alioth.debian.org
speijnik-guest at users.alioth.debian.org
Tue Feb 17 06:49:30 UTC 2009
Date: Tuesday, February 17, 2009 @ 06:49:29
Author: speijnik-guest
Revision: 7598
Switched to debhelper.
Added Vcs-* fields to debian/control.
Use copyright sign instead of (C) in debian/copyright.
Package is now linitian clean.
Modified:
packages/py-sendfile/trunk/debian/control
packages/py-sendfile/trunk/debian/copyright
packages/py-sendfile/trunk/debian/rules
Modified: packages/py-sendfile/trunk/debian/control
===================================================================
--- packages/py-sendfile/trunk/debian/control 2009-02-17 06:14:15 UTC (rev 7597)
+++ packages/py-sendfile/trunk/debian/control 2009-02-17 06:49:29 UTC (rev 7598)
@@ -3,14 +3,18 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Stephan Peijnik <debian at sp.or.at>
-Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.4), python-setuptools, cdbs (>= 0.4.43), python-central (>= 0.6), python-all-dbg
+Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.4), python-support (>= 0.6.4), python-setuptools (>= 0.6b3), python-all-dbg
Standards-Version: 3.8.0
Homepage: http://pypi.python.org/pypi/py-sendfile
+XS-Python-Version: all
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/py-sendfile/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/py-sendfile/trunk/?op=log
Package: python-sendfile
Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
Description: Python interface to sendfile(2)
python-sendfile provides an interface to sendfile(2) for Python modules
and applications.
@@ -18,8 +22,10 @@
Package: python-sendfile-dbg
Priority: extra
Architecture: any
-Depends: python-sendfile (= ${binary:Version}), python-dbg, ${shlibs:Depends}
-Description: Python interface to sendfile(2)
+Depends: python-sendfile (= ${binary:Version}), python-dbg, ${shlibs:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Python interface to sendfile(2) (debug)
python-sendfile provides an interface to sendfile(2) for Python modules
and applications.
.
Modified: packages/py-sendfile/trunk/debian/copyright
===================================================================
--- packages/py-sendfile/trunk/debian/copyright 2009-02-17 06:14:15 UTC (rev 7597)
+++ packages/py-sendfile/trunk/debian/copyright 2009-02-17 06:49:29 UTC (rev 7598)
@@ -9,7 +9,7 @@
Copyright:
- Copyright (C) 2005 Ben Woolley
+ Copyright © 2005 Ben Woolley
License:
@@ -30,5 +30,5 @@
On Debian systems, the complete text of the GNU Lesser General
Public License can be found in `/usr/share/common-licenses/LGPL'.
-The Debian packaging is (C) 2009, Stephan Peijnik <debian at sp.or.at> and
+The Debian packaging is © 2009, Stephan Peijnik <debian at sp.or.at> and
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
Modified: packages/py-sendfile/trunk/debian/rules
===================================================================
--- packages/py-sendfile/trunk/debian/rules 2009-02-17 06:14:15 UTC (rev 7597)
+++ packages/py-sendfile/trunk/debian/rules 2009-02-17 06:49:29 UTC (rev 7598)
@@ -1,36 +1,74 @@
#!/usr/bin/make -f
# -*- makefile -*-
-DEB_PYTHON_SYSTEM=pycentral
-export DH_PYCENTRAL="nomove"
+PYVERS=$(shell pyversions -vr)
+PKGDIR=$(CURDIR)/debian/python-sendfile
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
+clean:
+ dh_testdir
+ dh_testroot
+ rm -rf dist build
+ find . -name '*\.pyc' -delete
+ dh_clean install-stamp build-stamp \
+ $(PYVERS:%=install-python%) $(PYVERS:%=build-python%) \
+ $(PYVERS:%=install-debug-python%) \
+ $(PYVERS:%=build-debug-python)
-DEB_PYTHON_INSTALL_ARGS += --single-version-externally-managed
-clean::
- -rm -rf build py_sendfile.egg-info
+build: build-stamp
-get-orig-sources::
- uscan --force-download --rename --repack
+build-stamp: $(PYVERS:%=build-python%) $(PYVERS:%=build-debug-python%)
+ touch $@
-build/python-sendfile-dbg::
- set -e; \
- for i in $(cdbs_python_build_versions); do \
- python$$i-dbg ./setup.py build; \
- done
+build-python%:
+ python$* setup.py build
+ touch $@
-install/python-sendfile-dbg::
- for i in $(cdbs_python_build_versions); do \
- python$$i-dbg ./setup.py install --root $(CURDIR)/debian/python-sendfile-dbg; \
- done
- find debian/python-sendfile-dbg \
- ! -type d ! -name '*_d.so' | xargs rm -f
- find debian/python-sendfile-dbg -depth -empty -exec rmdir {} \;
+build-debug-python%:
+ python$*-dbg setup.py build
+ touch $@
-binary-predep/python-sendfile-dbg::
- rm -rf debian/python-sendfile-dbg/usr/share/doc/python-sendfile-dbg
- ln -s python-sendfile debian/python-sendfile-dbg/usr/share/doc/python-sendfile-dbg
\ No newline at end of file
+install: $(PYVERS:%=install-python%) $(PYVERS:%=install-debug-python%)
+
+install-python%: build
+ python$* setup.py install \
+ --skip-build --single-version-externally-managed \
+ --root $(PKGDIR)
+ touch $@
+
+install-debug-python%: build
+ python$*-dbg setup.py install \
+ --skip-build --single-version-externally-managed \
+ --root $(PKGDIR)-dbg/
+ find $(PKGDIR)-dbg/usr/lib/python$*/ ! -type d ! -name '*_d\.so' \
+ -delete
+ find $(PKGDIR)-dbg/usr/lib/python$*/ -depth -empty -delete
+ touch $@
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -a
+ dh_installdocs -a
+ dh_pysupport -a
+ dh_makeshlibs -a
+ dh_strip -ppython-sendfile --dbg-package=python-sendfile-dbg
+ rm -rf $(PKGDIR)-dbg/usr/share/doc/python-sendfile-dbg
+ dh_compress -a -X.py
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a -- -Z bzip2
+
+binary-indep:
+
+binary: binary-arch binary-indep
+
+get-orig-source:
+ uscan --force-download --rename --repack --destdir=. \
+ --download-version=$(DEB_UPSTREAM_VERSION)
+
+.PHONY: build clean binary-arch binary install configure
More information about the Python-modules-commits
mailing list