From b736413ef2be0e396a3ce8c92716a7c9d6739a65 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 13 May 2012 22:17:38 +0200 Subject: [PATCH] Add binary package for Python3 --- debian/control | 34 +++++++++++++++++++++++++++++++++- debian/rules | 22 +++++++++++++++++----- 2 files changed, 50 insertions(+), 6 deletions(-) diff --git a/debian/control b/debian/control index ac3b821..8eb47e9 100644 --- a/debian/control +++ b/debian/control @@ -4,12 +4,15 @@ Priority: optional Maintainer: Iustin Pop Build-Depends: debhelper (>= 7), python (>= 2.6.6-3~), python-all-dev (>= 2.6.6-3~), python-all-dbg, + python3-all, python3-all-dev, python3-all-dbg, libacl1-dev, python-setuptools, python-sphinx (>= 1.0.7+dfsg) | python3-sphinx Standards-Version: 3.9.3 Homepage: http://pylibacl.sourceforge.net/ Vcs-Browser: http://git.k1024.org/debian-pylibacl.git Vcs-Git: git://git.k1024.org/debian-pylibacl.git +X-Python-Version: >= 2.4 +X-Python3-Version: >= 3.0 Package: python-pylibacl Architecture: any @@ -33,4 +36,33 @@ Description: module for manipulating POSIX.1e ACLs (debug extension) manipulation of the POSIX.1e-compliant filesystem ACLs present in some operating systems (GNU/Linux included). . - This package contains the extension built for the Python debug interpreter. + This package contains the extension built for the Python debug + interpreter. + +Package: python3-pylibacl +Architecture: any +Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, + ${sphinxdoc:Depends} +Provides: ${python3:Provides} +Suggests: python3-pylibacl-dbg +Description: module for manipulating POSIX.1e ACLs (Python3 version) + pylibacl is a Python interface to the libacl library. It allows + manipulation of the POSIX.1e-compliant filesystem ACLs present + in some operating systems (GNU/Linux included). + . + This package contains the extension build for the Python3 + interpreter. + +Package: python3-pylibacl-dbg +Priority: extra +Section: debug +Architecture: any +Depends: python3-pylibacl (= ${binary:Version}), python3-dbg, + ${shlibs:Depends}, ${misc:Depends} +Description: module for manipulating POSIX.1e ACLs (Python3 debug extension) + pylibacl is a Python interface to the libacl library. It allows + manipulation of the POSIX.1e-compliant filesystem ACLs present + in some operating systems (GNU/Linux included). + . + This package contains the extension built for the Python3 debug + interpreter. diff --git a/debian/rules b/debian/rules index dc2ac07..93c719a 100755 --- a/debian/rules +++ b/debian/rules @@ -12,14 +12,17 @@ export DH_OPTIONS PYVERS := $(shell pyversions -vr) +PY3VERS := $(shell py3versions -vr) PKGROOT=debian/python-pylibacl DBGROOT=debian/python-pylibacl-dbg +PKG3ROOT=debian/python3-pylibacl +DBG3ROOT=debian/python3-pylibacl-dbg build: build-arch build-indep touch $@ -build-arch: $(PYVERS:%=build-python%) +build-arch: $(PYVERS:%=build-python%) $(PY3VERS:%=build-python%) touch $@ build-python%: @@ -37,15 +40,20 @@ clean: rm -f build-arch-stamp build-indep #CONFIGURE-STAMP# $(MAKE) clean rm -f $(PYVERS:%=build-python%) + rm -f $(PY3VERS:%=build-python%) dh_clean -install: build $(PYVERS:%=install-python%) +install: build $(PYVERS:%=install-python%) $(PY3VERS:%=install-python%) find $(DBGROOT) ! -type d ! -name '*_d.so' | xargs rm -f find $(DBGROOT) -depth -empty -print0|xargs -r0 rmdir -install-python%: - python$* setup.py install --root $(PKGROOT) --install-layout=deb - python$*-dbg setup.py install --root $(DBGROOT) --install-layout=deb +install-python2%: + python2$* setup.py install --root $(PKGROOT) --install-layout=deb + python2$*-dbg setup.py install --root $(DBGROOT) --install-layout=deb + +install-python3%: + python3$* setup.py install --root $(PKG3ROOT) --install-layout=deb + python3$*-dbg setup.py install --root $(DBG3ROOT) --install-layout=deb # Build architecture-dependent files here. binary-arch: build install @@ -55,11 +63,15 @@ binary-arch: build install dh_installdocs dh_sphinxdoc dh_strip -ppython-pylibacl --dbg-package=python-pylibacl-dbg + dh_strip -ppython3-pylibacl --dbg-package=python3-pylibacl-dbg rm -rf $(DBGROOT)/usr/share/doc/python-pylibacl-dbg ln -s python-pylibacl $(DBGROOT)/usr/share/doc/python-pylibacl-dbg + rm -rf $(DBG3ROOT)/usr/share/doc/python3-pylibacl-dbg + ln -s python3-pylibacl $(DBG3ROOT)/usr/share/doc/python3-pylibacl-dbg dh_compress -X.js dh_fixperms dh_python2 + dh_python3 dh_installdeb dh_shlibdeps dh_gencontrol -- 2.39.2