[Pkg-utopia-commits] r1188 - packages/experimental/dbus-python/debian

Simon McVittie smcv-guest at alioth.debian.org
Tue Dec 19 20:13:18 CET 2006


Author: smcv-guest
Date: 2006-12-19 20:13:18 +0100 (Tue, 19 Dec 2006)
New Revision: 1188

Modified:
   packages/experimental/dbus-python/debian/changelog
   packages/experimental/dbus-python/debian/control
   packages/experimental/dbus-python/debian/rules
Log:
* New upstream release candidate 0.80rc3 (internally, version 0.79.93)
  - build system is now autotools
  - install a header file for external mainloops (not bothering with a
    separate -dev package since it's so small)
* Convert debian/rules to do a series of autotools builds, one per version
  (based on debian/rules from pygobject)
* Drop dependency on libxml2 (no longer needed upstream)
* Recommend python-gobject (or python-gtk < 2.10 for those with the
  pre-split version)


Modified: packages/experimental/dbus-python/debian/changelog
===================================================================
--- packages/experimental/dbus-python/debian/changelog	2006-12-13 17:52:11 UTC (rev 1187)
+++ packages/experimental/dbus-python/debian/changelog	2006-12-19 19:13:18 UTC (rev 1188)
@@ -1,3 +1,17 @@
+dbus-python (0.80~rc3-1) experimental; urgency=low
+
+  * New upstream release candidate (internally, version 0.79.93):
+    - build system is now autotools
+    - install a header file for external mainloops (not bothering with a
+      separate -dev package since it's so small)
+  * Convert debian/rules to do a series of autotools builds, one per version
+    (based on debian/rules from pygobject)
+  * Drop dependency on libxml2 (no longer needed upstream)
+  * Recommend python-gobject (or python-gtk < 2.10 for those with the
+    pre-split version)
+
+ -- Simon McVittie <smcv at ianadd.pseudorandom.co.uk>  Tue, 19 Dec 2006 18:35:50 +0000
+
 dbus-python (0.80~rc2-1) experimental; urgency=low
 
   * New upstream release candidate with changed API:

Modified: packages/experimental/dbus-python/debian/control
===================================================================
--- packages/experimental/dbus-python/debian/control	2006-12-13 17:52:11 UTC (rev 1187)
+++ packages/experimental/dbus-python/debian/control	2006-12-19 19:13:18 UTC (rev 1188)
@@ -9,7 +9,8 @@
 Package: python-dbus
 Section: python
 Architecture: any
-Depends: ${shlibs:Depends}, ${python:Depends}, python-libxml2
+Depends: ${shlibs:Depends}, ${python:Depends}
+Recommends: python-gobject | python-gtk (<< 2.10)
 Replaces: python2.4-dbus
 Conflicts: python2.4-dbus
 Provides: ${python:Provides}

Modified: packages/experimental/dbus-python/debian/rules
===================================================================
--- packages/experimental/dbus-python/debian/rules	2006-12-13 17:52:11 UTC (rev 1187)
+++ packages/experimental/dbus-python/debian/rules	2006-12-19 19:13:18 UTC (rev 1188)
@@ -6,6 +6,98 @@
 DEB_PYTHON_SYSTEM=pysupport
 
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
-include /usr/share/cdbs/1/rules/utils.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+        INSTALL_PROGRAM += -s
+endif
+
+PYVERS := $(shell pyversions --requested --version debian/control)
+PYDEFAULTVER := $(shell pyversions --default --version)
+
+build-%/configure-stamp:
+	dh_testdir
+	mkdir -p build-$*
+	cd build-$* && PYTHON=/usr/bin/python$* \
+		../configure --host=$(DEB_HOST_GNU_TYPE) \
+			--build=$(DEB_BUILD_GNU_TYPE) \
+			--prefix=/usr
+	touch $@
+
+build-%/build-stamp: build-%/configure-stamp
+	dh_testdir
+	$(MAKE) -C build-$*
+	touch $@
+
+build: apply-patches $(PYVERS:%=build-%/build-stamp)
+
+install-clean:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+install-%: build-%/build-stamp
+	dh_testdir
+	dh_testroot
+	$(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/python-dbus
+	# keep a copy of /usr/include/debian-python.h and
+	# /usr/lib/pkgconfig/debian-python.pc to verify they match later
+	cp debian/python-dbus/usr/include/dbus-python.h debian/tmp-$*.h
+	cp debian/python-dbus/usr/lib/pkgconfig/dbus-python.pc debian/tmp-$*.pc
+
+install: build install-clean $(PYVERS:%=install-%)
+	rm -f debian/python-dbus/usr/lib/python*/site-packages/*.la
+	# compare installed .pc and .h, asserting that the ones all versions
+	# wanted are the same as what we ended up with
+	for v in $(PYVERS); do \
+		diff --brief debian/python-dbus/usr/include/dbus-python.h \
+			debian/tmp-$$v.h || exit 1; \
+		diff --brief debian/python-dbus/usr/lib/pkgconfig/dbus-python.pc \
+			debian/tmp-$$v.pc || exit 1; \
+	done
+	rm -f debian/tmp-*.pc debian/tmp-*.h
+
+clean:: reverse-patches
+	dh_testdir
+	dh_testroot
+	rm -Rf debian/tmp-*
+	rm -Rf build-*
+	-test -f autotools/config.sub && \
+		test -r /usr/share/misc/config.sub && \
+		cp -f /usr/share/misc/config.sub autotools/config.sub
+	-test -f autotools/config.guess && \
+		test -r /usr/share/misc/config.guess && \
+		cp -f /usr/share/misc/config.guess autotools/config.guess
+	dh_clean
+
+# We have no arch-indep packages
+binary-indep: build install
+	:
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installdocs -a
+	dh_installexamples -a
+	dh_installchangelogs ChangeLog -a
+	dh_strip -a
+	dh_link -a
+	dh_compress -a -X.py
+	dh_fixperms -a
+	dh_pysupport -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install 




More information about the Pkg-utopia-commits mailing list