[Pkg-zenoss-commits] r313 - in /trunk/packages/pynetsnmp/debian: changelog libdeps/ rules
bzed-guest at users.alioth.debian.org
bzed-guest at users.alioth.debian.org
Tue Nov 27 12:23:24 UTC 2007
Author: bzed-guest
Date: Tue Nov 27 12:23:24 2007
New Revision: 313
URL: http://svn.debian.org/wsvn/pkg-zenoss/?sc=1&rev=313
Log:
* New upstream version
* debian/libdeps:
- Replacing the gcc way to detect the libsnmp soname and version by a
Python script.
* debian/rules, debian/control:
- Getting rid of cdbs.
Removed:
trunk/packages/pynetsnmp/debian/libdeps/
Modified:
trunk/packages/pynetsnmp/debian/changelog
trunk/packages/pynetsnmp/debian/rules
Modified: trunk/packages/pynetsnmp/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-zenoss/trunk/packages/pynetsnmp/debian/changelog?rev=313&op=diff
==============================================================================
--- trunk/packages/pynetsnmp/debian/changelog (original)
+++ trunk/packages/pynetsnmp/debian/changelog Tue Nov 27 12:23:24 2007
@@ -1,8 +1,17 @@
-pynetsnmp (0.26.8-2) UNRELEASED; urgency=low
+pynetsnmp (0.27.0-1) UNRELEASED; urgency=low
+ [ Stefano Zacchiroli ]
* NOT RELEASED YET
- -- Stefano Zacchiroli <zack at debian.org> Wed, 17 Oct 2007 09:54:13 +0200
+ [ Bernd Zeimetz ]
+ * New upstream version
+ * debian/libdeps:
+ - Replacing the gcc way to detect the libsnmp soname and version by a
+ Python script.
+ * debian/rules, debian/control:
+ - Getting rid of cdbs.
+
+ -- Bernd Zeimetz <bernd at bzed.de> Tue, 27 Nov 2007 13:10:40 +0100
pynetsnmp (0.26.8-1) unstable; urgency=low
Modified: trunk/packages/pynetsnmp/debian/rules
URL: http://svn.debian.org/wsvn/pkg-zenoss/trunk/packages/pynetsnmp/debian/rules?rev=313&op=diff
==============================================================================
--- trunk/packages/pynetsnmp/debian/rules (original)
+++ trunk/packages/pynetsnmp/debian/rules Tue Nov 27 12:23:24 2007
@@ -1,19 +1,69 @@
#!/usr/bin/make -f
-
-DEB_PYTHON_SYSTEM=pysupport
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/dpatch.mk
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-LIBDEPSTESTDIR = $(CURDIR)/debian/libdeps
-DEB_DH_SHLIBDEPS_ARGS = -P debian/libdeps
+PKGNAME:=python-pynetsnmp
+PYVERS:=$(shell pyversions -r)
-build/python-pynetsnmp::
- gcc -o $(LIBDEPSTESTDIR)/test -lnetsnmp $(LIBDEPSTESTDIR)/test.c
-cleanbuilddir/python-pynetsnmp::
- find . -name \*.pyc -exec rm {} \;
+include /usr/share/dpatch/dpatch.make
-clean::
- rm -f $(LIBDEPSTESTDIR)/test
+build: patch build-stamp
+build-stamp:
+ dh_testdir
+
+ set -e; \
+ for py in $(PYVERS); do \
+ $$py setup.py build; \
+ done
+
+ touch $@
+
+clean: clean-patched unpatch
+clean-patched: patch-stamp
+ dh_testdir
+ dh_testroot
+ rm -f install-stamp build-stamp
+ -for py in $(PYVERS); do \
+ $$py setup.py clean; \
+ done
+ find . -name \*.pyc | xargs rm -f
+ rm -rf build
+ dh_clean
+
+install: install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ set -e; \
+ for py in $(PYVERS); do \
+ $$py setup.py install --root=debian/$(PKGNAME); \
+ done
+
+ dh_installdocs -A
+ dh_installexamples
+ touch install-stamp
+
+binary-arch: build install
+# We have nothing to do by default.
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_compress -X.py
+ dh_fixperms
+ dh_pysupport
+ #python-pynetsnmp.substvars
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install \
+ clean-patched patch unpatch
+
More information about the Pkg-zenoss-commits
mailing list