From 6249a27ea72b83726975bfa6771b226f325c1a95 Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 19 Dec 2008 04:07:06 +0000 Subject: Further work in enforcing the Debian policy in package based on advice from `POX' and the documentation. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@119 abc39116-655e-4be6-ad55-d661dc543056 --- debian/changelog | 2 +- debian/control | 12 ++++++------ debian/dirs | 0 debian/install | 0 debian/python-dmidecode.substvars | 3 +++ debian/rules | 8 ++++---- 6 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 debian/dirs delete mode 100644 debian/install (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index e8b3ad2..d75e6f5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -dmidecode (0.1-1) unstable; urgency=low +python-dmidecode (2.10-1) unstable; urgency=low * Initial release (Closes: #nnnn) diff --git a/debian/control b/debian/control index e443346..f0fcb19 100644 --- a/debian/control +++ b/debian/control @@ -1,14 +1,14 @@ -Source: dmidecode +Source: python-dmidecode +XS-Python-Version: (>= 2.3) Section: utils Priority: optional -Maintainer: Nima Talebi +Maintainer: Nima Talebi Build-Depends: debhelper (>= 5), python-all-dev (>= 2.3.5-11), python-central (>= 0.6) -Standards-Version: 3.7.2 -XB-Python-Version: ${python:Versions} -XS-Python-Version: current +Standards-Version: 3.8.0 Package: python-dmidecode -Architecture: i386 +XB-Python-Version: ${python:Versions} +Architecture: any Provides: ${python:Provides} Depends: ${python:Depends}, ${shlibs:Depends} Description: Python extension module for dmidecode. diff --git a/debian/dirs b/debian/dirs deleted file mode 100644 index e69de29..0000000 diff --git a/debian/install b/debian/install deleted file mode 100644 index e69de29..0000000 diff --git a/debian/python-dmidecode.substvars b/debian/python-dmidecode.substvars index 36e5a58..e3510f6 100644 --- a/debian/python-dmidecode.substvars +++ b/debian/python-dmidecode.substvars @@ -1 +1,4 @@ +python:Versions=2.4, 2.5 +python:Provides=python2.4-dmidecode, python2.5-dmidecode +python:Depends=python-central (>= 0.6.7), python (<< 2.6), python (>= 2.4) shlibs:Depends=libc6 (>= 2.7-1) diff --git a/debian/rules b/debian/rules index 98488c4..40f5a22 100755 --- a/debian/rules +++ b/debian/rules @@ -11,8 +11,8 @@ PYVERS = python2.4 python2.5 build: build-stamp build-stamp: $(PYVERS:%=build-ext-%) dh_testdir - #docbook-to-man debian/dmidecode.sgml > dmidecode.1 - #$(MAKE) -f dmidecode.makefile + #docbook-to-man debian/python-dmidecode.sgml > python-dmidecode.1 + #$(MAKE) -f Makefile touch $@ build-ext-%: $(subst $(PYDEF),python,$*) src/setup.py build @@ -24,7 +24,7 @@ install: install-stamp dh_testdir dh_testroot dh_installdirs - #$(MAKE) DESTDIR=$(CURDIR)/debian/dmidecode install + #$(MAKE) DESTDIR=$(CURDIR)/debian/python-dmidecode install install-stamp: build-stamp $(PYVERS:%=install-ext-%) install-ext-%: $(subst $(PYDEF),python,$*) src/setup.py install --root $(CURDIR)/debian/python-dmidecode @@ -37,7 +37,7 @@ clean: dh_testroot -rm -f build-stamp configure-stamp -rm -rf $(CURDIR)/debian/python-dmidecode - -$(MAKE) -f dmidecode.makefile clean + -$(MAKE) -f Makefile clean dh_clean -- cgit