[Python-modules-commits] r12889 - in packages/pythonmagick/trunk/debian (4 files)

bzed at users.alioth.debian.org bzed at users.alioth.debian.org
Wed May 12 19:29:47 UTC 2010


    Date: Wednesday, May 12, 2010 @ 19:29:45
  Author: bzed
Revision: 12889

* Add pkg-config as build-dependency. 
* Bumping Standards-Version to 3.8.4.
* Add debian/README.source. 
* Build-depend on python-all-dev.
* Rewrite debian/rules to build for all Python versions. 

Added:
  packages/pythonmagick/trunk/debian/README.source
Modified:
  packages/pythonmagick/trunk/debian/changelog
  packages/pythonmagick/trunk/debian/control
  packages/pythonmagick/trunk/debian/rules

Added: packages/pythonmagick/trunk/debian/README.source
===================================================================
--- packages/pythonmagick/trunk/debian/README.source	                        (rev 0)
+++ packages/pythonmagick/trunk/debian/README.source	2010-05-12 19:29:45 UTC (rev 12889)
@@ -0,0 +1,58 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+                break
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.

Modified: packages/pythonmagick/trunk/debian/changelog
===================================================================
--- packages/pythonmagick/trunk/debian/changelog	2010-05-12 17:49:59 UTC (rev 12888)
+++ packages/pythonmagick/trunk/debian/changelog	2010-05-12 19:29:45 UTC (rev 12889)
@@ -1,3 +1,13 @@
+pythonmagick (0.9.1-3) unstable; urgency=low
+
+  * Add pkg-config as build-dependency. 
+  * Bumping Standards-Version to 3.8.4.
+  * Add debian/README.source. 
+  * Build-depend on python-all-dev.
+  * Rewrite debian/rules to build for all Python versions. 
+
+ -- Bernd Zeimetz <bzed at debian.org>  Wed, 12 May 2010 21:29:02 +0200
+
 pythonmagick (0.9.1-2) unstable; urgency=low
 
   * Remove usage of cdbs in favour of debhelper >> 7

Modified: packages/pythonmagick/trunk/debian/control
===================================================================
--- packages/pythonmagick/trunk/debian/control	2010-05-12 17:49:59 UTC (rev 12888)
+++ packages/pythonmagick/trunk/debian/control	2010-05-12 19:29:45 UTC (rev 12889)
@@ -11,11 +11,13 @@
  libtool (>= 1.5),
  libboost-python-dev (>= 1.34.1-8),
  python-support,
- python-dev (>= 2.5),
+ python-all-dev (>= 2.5),
  autotools-dev,
- quilt
-Standards-Version: 3.8.1
+ quilt,
+ pkg-config
+Standards-Version: 3.8.4
 Homepage: http://www.imagemagick.org
+XS-Python-Version: all
 
 Package: python-pythonmagick
 Architecture: any
@@ -24,3 +26,14 @@
 Description: Object-oriented Python interface to ImageMagick
  PythonMagick an interface to ImageMagick to give all the functionallity
  of ImageMagick++ into Python.
+
+Package: python-pythonmagick
+Architecture: any
+Section: debug
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
+ python-pythonmagick (= ${binary:Version})
+Description: Object-oriented Python interface to ImageMagick (debug extension)
+ PythonMagick an interface to ImageMagick to give all the functionallity
+ of ImageMagick++ into Python.
+ .
+ This package contains the debug extensions and symbols.

Modified: packages/pythonmagick/trunk/debian/rules
===================================================================
--- packages/pythonmagick/trunk/debian/rules	2010-05-12 17:49:59 UTC (rev 12888)
+++ packages/pythonmagick/trunk/debian/rules	2010-05-12 19:29:45 UTC (rev 12889)
@@ -1,8 +1,110 @@
 #!/usr/bin/make -f
 
-%:
-	dh --with python-support --with quilt $@;
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
 
-# TODO extra clean needed?
-#clean::
-#	find . -name '*\.py[co]' -delete
+include /usr/share/quilt/quilt.make
+PYTHONS := $(shell pyversions -rv)
+PACKAGE=python-pythonmagick
+
+#let's help configure to figure out our host/build system
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
+else
+  CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+#where our files go
+PREFIX = /usr
+MANDIR = $(PREFIX)/share/man
+INFODIR = $(PREFIX)/share/info
+CONFFLAGS += --prefix=$(PREFIX) --mandir=$(MANDIR) --infodir=$(INFODIR)
+
+#let's take care of optimization + debug builds
+CFLAGS += -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
+
+CONFENV += LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"
+
+autotools-dev-stamp:
+	dh_testdir
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	touch $@
+
+
+configure: $(PYTHONS:%=configure-%-stamp) $(PYTHONS:%=configure-%-dbg-stamp)
+configure-%-stamp: $(QUILT_STAMPFN) autotools-dev-stamp
+	dh_testdir
+	mkdir $(CURDIR)/$*
+	ln -s /usr/bin/python-$* $(CURDIR)/python
+	cd $(CURDIR)/$*; export PATH=$(CURDIR)/$*:$$PATH ;\
+	  $(CONFENV) ./configure $(CONFFLAGS)
+	touch $@
+
+build: $(PYTHONS:%=build-%-stamp) $(PYTHONS:%=build-%-dbg-stamp)
+build-%-stamp: configure-%-stamp configure-%-dbg-stamp
+	dh_testdir
+
+	cd $(CURDIR)/$*; export PATH=$(CURDIR)/$*:$$PATH ;\
+	  $(MAKE)
+	touch $@
+
+clean: $(PYTHONS:%=clean-%) $(PYTHONS:%=clean-%-dbg) unpatch
+	dh_clean
+	rm -f config.sub config.guess
+
+clean-%:
+	dh_testdir
+	dh_testroot
+	rm -rf $(CURDIR)/$*
+
+install-pre: install-pre-stamp
+install-pre-stamp:
+	dh_testdir
+	dh_testroot
+	dh_prep
+	
+	touch $@
+
+install: $(PYTHONS:%=install-%-stamp) $(PYTHONS:%=install-%-dbg-stamp)
+install-%-stamp: build-%-stamp build-%-dbg-stamp install-pre-stamp
+	cd $(CURDIR)/$*; export PATH=$(CURDIR)/$*:$$PATH ;\
+	  case $* in *-dbg) $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)-dbg;; \
+	                 *) $(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE);; \
+	  esac
+
+
+# Build architecture-independent files here.
+binary-indep:
+	#nothing to do here.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installman -a
+	dh_pysupport -a
+	dh_strip -a --dbg-package=$(PACKAGE)-dbg
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-arch
+.PHONY: build clean binary-indep binary-arch binary install




More information about the Python-modules-commits mailing list