--- gst0.10-python-0.10.13.2.orig/debian/python-gst0.10.rtupdate +++ gst0.10-python-0.10.13.2/debian/python-gst0.10.rtupdate @@ -0,0 +1,46 @@ +#!/bin/sh + +# this script updates symlinks to pkg-config files after a Python default +# runtime change + +if [ "$#" != 3 ]; then + echo "Usage: $0 {pre-rtupdate|post-rtupdate|rtupdate} " >&2 + exit 1 +fi + +action="$1" +oldruntime="$2" +newruntime="$3" + +this="python-gst0.10" + +pc_files() { + runtime="$1" + + dpkg -L "$this" | sed -n -e "s#^/usr/lib/pkgconfig/$runtime/##p" +} + +case "$action" in + pre-rtupdate) + ;; + post-rtupdate) + ;; + rtupdate) + echo "Updating *.pc symlinks for $this..." + + cd /usr/lib/pkgconfig + + for f in $(pc_files $oldruntime); do + rm -f "$f" + done + + for f in $(pc_files $newruntime); do + ln -s "$newruntime/$f" + done + ;; + *) + echo "$0 called with unknown argument \`$action'" >&2 + exit 0 + ;; +esac + --- gst0.10-python-0.10.13.2.orig/debian/pycompat +++ gst0.10-python-0.10.13.2/debian/pycompat @@ -0,0 +1 @@ +2 --- gst0.10-python-0.10.13.2.orig/debian/changelog +++ gst0.10-python-0.10.13.2/debian/changelog @@ -0,0 +1,363 @@ +gst0.10-python (0.10.13.2-1) experimental; urgency=low + + * New upstream pre-release: + + debian/control: + - Update build dependencies. + + debian/patches/03_rtld-constants.patch, + debian/patches/04_import-order.patch: + - Dropped, merged upstream. + + -- Sebastian Dröge Thu, 08 Jan 2009 07:43:13 +0100 + +gst0.10-python (0.10.13-1) experimental; urgency=low + + * New upstream release, 'Feel The Sun Rise'. + * debian/patches/03_rtld-constants.patch: + + Use correct values for RTLD_GLOBAL and RTLD_LAZY on Linux/MIPS + as the values are different there from all other Linux platforms. + Thanks to Thiemo Seufer for the patch (Closes: #499135). + * ACK 0.10.12-1.1 NMU. Thanks to Alexander Wirt for fixing this issue. + + -- Sebastian Dröge Sun, 05 Oct 2008 15:39:08 +0200 + +gst0.10-python (0.10.12-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Add dependency to python-libxml2 and change load order in + the init of gst0.10-python (Closes: #449341) + + -- Alexander Wirt Mon, 08 Sep 2008 20:22:47 +0000 + +gst0.10-python (0.10.12-1) unstable; urgency=low + + * New upstream release, 'A Wild Finish'. + * debian/control: + + Update Standards-Version to 3.8.0, no additional changes needed. + + Fix typo. + + -- Sebastian Dröge Wed, 18 Jun 2008 20:20:34 +0200 + +gst0.10-python (0.10.11.3-1) experimental; urgency=low + + * debian/rules: + + Append -Wno-error to CFLAGS and CXXFLAGS. + * New upstream pre-release. + + -- Sebastian Dröge Thu, 12 Jun 2008 12:30:23 +0200 + +gst0.10-python (0.10.11.2-1) experimental; urgency=low + + * New upstream pre-release. + + -- Sebastian Dröge Thu, 05 Jun 2008 08:40:46 +0200 + +gst0.10-python (0.10.11-1) unstable; urgency=low + + * New upstream release, "What I got". + + -- Sebastian Dröge Fri, 21 Mar 2008 01:18:37 +0100 + +gst0.10-python (0.10.10.2-1) experimental; urgency=low + + * New upstream pre-release: + + debian/control: + - Build depend on gstreamer and gst-plugins-base >= 0.10.17.1. + * debian/control: + + Add Homepage field. + + -- Sebastian Dröge Tue, 04 Mar 2008 16:30:10 +0100 + +gst0.10-python (0.10.10-1) unstable; urgency=low + + * New upstream release, "Destination Overtime", with API additions: + + debian/control: + - Build depend on gstreamer/gst-plugins-base >= 0.10.16. + + -- Sebastian Dröge Tue, 29 Jan 2008 11:46:12 +0100 + +gst0.10-python (0.10.9.4-1) experimental; urgency=low + + * New upstream pre-release. + + -- Sebastian Dröge Tue, 22 Jan 2008 13:24:18 +0100 + +gst0.10-python (0.10.9.3-1) experimental; urgency=low + + * New upstream pre-release: + + debian/patches/01_pbutils-override.patch: + - Dropped, merged upstream. + + -- Sebastian Dröge Fri, 18 Jan 2008 05:59:24 +0100 + +gst0.10-python (0.10.9.2-1) experimental; urgency=low + + * New upstream pre-release: + + Update gstreamer build dependencies to >= 0.10.15.1. + + debian/patches/01_acinclude-python.patch, + debian/patches/99_autoreconf.patch: + - Dropped, merged upstream. + * debian/patches/01_pbutils-override.patch: + + Patch from upstream CVS to fix build with python 2.4. + + -- Sebastian Dröge Tue, 15 Jan 2008 16:00:59 +0100 + +gst0.10-python (0.10.9-5) unstable; urgency=low + + * Upload to unstable. + * debian/control: + + Drop w3m build dependency as it is not needed (Closes: #454110). + + Update Standards-Version to 3.7.3, no additional changes needed. + + -- Sebastian Dröge Tue, 15 Jan 2008 15:41:27 +0100 + +gst0.10-python (0.10.9-4) experimental; urgency=low + + * Add a python-gst0.10-dbg package; from Ubuntu; tweak rules and control. + - Target at experimental. + * Wrap more fields in control. + * Pass CFLAGS to configure; doh! + + -- Loic Minier Sun, 02 Dec 2007 12:19:28 +0100 + +gst0.10-python (0.10.9-3) unstable; urgency=high + + * Fix the path generated in pygst.py by patch 02_pygstdir, it was missing + the version of the GStreamer API suffix; closes: #453767. + * Wrap build-deps even more. + + -- Loic Minier Sun, 02 Dec 2007 11:50:49 +0100 + +gst0.10-python (0.10.9-2) unstable; urgency=low + + [ Sebastian Dröge ] + * Merges from the Ubuntu package: + + debian/rules: + - Don't ship the *.la files. + - Sort python versions and also build for the default python version + even if this wasn't requested. + + debian/patches/01_acinclude-python.patch, + debian/patches/99_autoreconf.patch: + - Fix detection of the Python include path. + + TODO: add debug package after pygobject got one. + * debian/patches/02_pygstdir.patch: + + Fix Python packages path for different python versions (Closes: #453402). + + [ Loic Minier ] + * New patch, 02_pygstdir, compute path to gst0.10 module dir at runtime + based on the path of pygst.py (usually, it's a symlink). + + -- Sebastian Dröge Thu, 29 Nov 2007 16:21:29 +0100 + +gst0.10-python (0.10.9-1) unstable; urgency=low + + * New upstream release, "I've heard a lot of stories in my time": + + Fixes crash at exit (Closes: #448621). + * debian/control: + + Build depend on gstreamer and gst-plugins-base >= 0.10.15 to get + bindings for the new APIs. + * debian/rules: + + Don't call dh_python anymore. + + -- Sebastian Dröge Wed, 28 Nov 2007 10:52:09 +0100 + +gst0.10-python (0.10.8-1) unstable; urgency=low + + * New upstream release 0.10.8; "This time I know our side will win." + * Honor make distclean failures. + * List patch in .PHONY. + * Misc cleanups. + * Fix permissions of the rtupdate script. + + -- Loic Minier Wed, 01 Aug 2007 22:33:48 +0200 + +gst0.10-python (0.10.7-1) unstable; urgency=low + + * New upstream release 0.10.7, "You want to feel sorry for yourself, + Don't you ?" + * Merge experimental branch and upload to unstable: + [ Loic Minier ] + + New upstream pre-release 0.10.6.3: + - Downgrade libgstreamer-plugins-base0.10-dev build-dep back to >= + 0.10.0.2. + + New upstream pre-release 0.10.6.1: + - Install upstream DOAP file. + - Bump up libgstreamer-plugins-base0.10-dev build-dep to >= 0.10.11-3 to + workaround a temporary build failure with older gst-plugins-base0.10. + + New upstream release 0.10.6, + "You're not very subtle, but you are effective". + + New upstream pre-release 0.10.5.3: + - Target at experimental. + - Build-depend on python-gobject-dev >= 2.11.2 instead of python-gtk2-dev; + depend on python-gobject >= 2.11.2 instead of python-gtk2. + - Drop patch 10_retab-examples, syntax of examples was fixed upstream. + + Bump the pygtk dep to >= 2.8. + * debian/control: + + Add myself to Uploaders. + + -- Sebastian Dröge Mon, 16 Apr 2007 18:28:38 +0200 + +gst0.10-python (0.10.5-5) unstable; urgency=medium + + * Let python-gst0.10 depend on python-gtk2 as gst/__init__.py imports + pygtk. + * Remove Joe Wreschnig from Uploaders. + * Only pass --host to configure if DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE + differ. + * Switch back to pycentral as the prefix for Python modules is not + distinguishable from the general prefix and this was required for + python-support. Such a switch would need a careful review of all types of + prefixes in use during the build and at runtime; closes: #390192, #390309. + * Add support for patches in debian/patches. + - Update config.guess and .sub during build, not in clean. + - Backup config.guess and .sub before updating them; restore patches + before unpatch. + - Build-depend on quilt. + - Add an empty patch series. + * New patch, 10_retab-examples, to expand tabs in the examples; fixes + byte-compilation at installation time; permits keeping pycentral for now. + + -- Loic Minier Sun, 1 Oct 2006 11:02:53 +0200 + +gst0.10-python (0.10.5-4) unstable; urgency=high + + * Add watch file. + * Ship rtupdate file, doh; previous installations that went through a + default python runtime change are not affected since the .pc files have + the same name for python2.3 and python2.4. + * Move examples to the Debian location via dh_install as well. + * Remove now useless *.dirs / dh_installdirs. + * Switch to pysupport as pycentral can't exclude the examples dir from byte + compilation. + + -- Loic Minier Thu, 28 Sep 2006 11:28:39 +0200 + +gst0.10-python (0.10.5-3) unstable; urgency=low + + * Add debian/control to the pyversions -r call since it's mandatory, even if + the man page claims it's optional. + * Fix typo in default python runtime retrieval. + + -- Loic Minier Sat, 5 Aug 2006 22:08:35 +0200 + +gst0.10-python (0.10.5-2) unstable; urgency=low + + * Update rtupdate script to handle calls with three arguments. + + -- Loic Minier Thu, 3 Aug 2006 23:00:01 +0200 + +gst0.10-python (0.10.5-1) unstable; urgency=low + + * New upstream release, "My Little Poney wants some Funk". + - Bump up libgstreamer0.10-dev build-dep to >= 0.10.8. + * Version the libgstreamer-plugins-base0.10-dev build-dep to >= 0.10.0.2. + + -- Loic Minier Sun, 30 Jul 2006 14:27:50 +0200 + +gst0.10-python (0.10.4-5) unstable; urgency=low + + * Build against per-python runtime pygtk pkg-config files. + * Set PKG_CONFIG_PATH to /usr/lib/pkgconfig/ for configure. + * Bump up python-gtk2-dev build-dep to >= 2.8.6-4. + * Add myself to Uploaders too. + * Add dummy binary-indep rule. + * Attempt at supporting pkg-config files for multiple Python runtimes: + - Move *.pc files for each runtime in /usr/lib/pkg-config/pythonXXX. + - Symlink the *.pc files for the default runtime in /usr/lib/pkg-config + during python-gst0.10's postinst and remove the symlinks in prerm. + - Delete and re-create the symlinks on default runtime change via a + *.rtupdate script shipped by python-gst0.10. + + -- Loic Minier Mon, 24 Jul 2006 20:09:56 +0200 + +gst0.10-python (0.10.4-4) unstable; urgency=low + + * Set pkg-gstreamer as Maintainer and make Joe Wreschnig an Uploader; thanks + for your work. + * Update again for latest Python policy. + - Bump up debhelper build-dep to >= 5.0.37.2. + - Declare dh_python compatibility level to 2. + - Bump up python-all-dev build-dep to >= 2.3.5-11. + - Call pyversions without an explicit control file. + - Bump up python-central build-dep to >= 0.4.17. + * Add autotools-dev to build-deps for config.guess / .sub updates. + * Drop most dirs from debian/python-gst0.10.dirs and drop debian/dirs. + * Update upstream list of upstream authors / copyright holders and include + full license blob. + * Misc cleanups. + + -- Loic Minier Sun, 25 Jun 2006 19:37:45 +0200 + +gst0.10-python (0.10.4-3) unstable; urgency=low + + * debian/control: XS-Python-Version: >= 2.3. + * debian/rules: Use pyversions to get available versions. + * Use python-central/dh_pycentral. + + -- Joe Wreschnig Mon, 12 Jun 2006 23:09:35 -0500 + +gst0.10-python (0.10.4-2) unstable; urgency=low + + * debian/control: python2.3-gst0.10 replaces python-gst0.10 << 0.10.4. + (Closes: #370250) + + -- Joe Wreschnig Sun, 4 Jun 2006 12:51:10 -0500 + +gst0.10-python (0.10.4-1) unstable; urgency=low + + * New upstream version. + * Provide Python 2.4 packages. (Closes: #363666) + * Standards-Version 3.7.2 (no changes necessary). + + -- Joe Wreschnig Sat, 13 May 2006 02:56:06 -0500 + +gst0.10-python (0.10.2-1) unstable; urgency=low + + * New upstream version. + * (Build-)Dep on PyGTK >= 2.8 to prevent ABI issue. + * debhelper compatibility level 5. + + -- Joe Wreschnig Tue, 31 Jan 2006 18:57:14 -0600 + +gst0.10-python (0.10.1-1) unstable; urgency=low + + * New upstream version. + * New source/binary package names for 0.8/0.10 parallel installations. + * debian/copyright: LGPL, not GPL. + * debian/docs: Remove README, TODO. + + -- Joe Wreschnig Fri, 30 Dec 2005 03:08:03 -0600 + +gst-python (0.8.2-1) unstable; urgency=low + + * New upstream version. (Closes: #318315) + * Add AUTHORS to debian/docs, remove README-docs, docs/README.html. + * Standards-Version 3.6.2. + + -- Joe Wreschnig Thu, 28 Jul 2005 00:15:09 -0500 + +gst-python (0.8.1-2) unstable; urgency=low + + * Copy documentation from /usr/share/gst-python/examples. (Closes: #291610) + * Depend on python-gtk2. (Closes: #304889) + + -- Joe Wreschnig Sat, 16 Apr 2005 14:34:46 -0500 + +gst-python (0.8.1-1) unstable; urgency=low + + * New upstream version. + + -- Joe Wreschnig Tue, 14 Dec 2004 18:11:50 -0600 + +gst-python (0.8.0-1) unstable; urgency=low + + * Build-Depend on libgstreamer-plugins0.8-dev (thanks to Sebastien Bacher). + * New upstream version. + + -- Joe Wreschnig Wed, 17 Nov 2004 14:54:58 -0600 + +gst-python (0.7.93-1) unstable; urgency=low + + * Initial Release. (Closes: #201353) + + -- Joe Wreschnig Wed, 6 Oct 2004 21:54:18 -0500 + --- gst0.10-python-0.10.13.2.orig/debian/watch +++ gst0.10-python-0.10.13.2/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://gstreamer.freedesktop.org/src/gst-python/gst-python-(0\.10\..*)\.tar\.gz --- gst0.10-python-0.10.13.2.orig/debian/python-gst0.10.prerm +++ gst0.10-python-0.10.13.2/debian/python-gst0.10.prerm @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +PYTHON_DEFAULT=$(pyversions --default) + +this="python-gst0.10" + +pc_files() { + runtime="$1" + + dpkg -L "$this" | sed -n -e "s#^/usr/lib/pkgconfig/$runtime/##p" +} + +if [ "$1" = "remove" ]; then + cd /usr/lib/pkgconfig + + for f in $(pc_files $PYTHON_DEFAULT); do + rm -f "$f" + done +fi + +#DEBHELPER# + --- gst0.10-python-0.10.13.2.orig/debian/python-gst0.10.postinst +++ gst0.10-python-0.10.13.2/debian/python-gst0.10.postinst @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +PYTHON_DEFAULT=$(pyversions --default) + +this="python-gst0.10" + +pc_files() { + runtime="$1" + + dpkg -L "$this" | sed -n -e "s#^/usr/lib/pkgconfig/$runtime/##p" +} + +if [ "$1" = "configure" ]; then + cd /usr/lib/pkgconfig + + for f in $(pc_files $PYTHON_DEFAULT); do + ln -f -s "$PYTHON_DEFAULT/$f" + done +fi + +#DEBHELPER# + --- gst0.10-python-0.10.13.2.orig/debian/copyright +++ gst0.10-python-0.10.13.2/debian/copyright @@ -0,0 +1,49 @@ +This package was debianized by Joe Wreschnig on +Wed, 6 Oct 2004 21:54:18 -0500. + +It was downloaded from http://gstreamer.freedesktop.org/src/gst-python/ + +Upstream Authors and Copyright Holders: + David I. Lehn + David Schleef + Alessandro Decina + Andy Wingo + Benjamin Otte , + David I. Lehn + David Schleef + Edward Hervey , + Gustavo J. A. M. Carneiro + Jan Schmidt + Joe Wreschnig + Johan Dahlin , + Julien MOUTTE + Martin Soto + Michael Smith + Richard Hult + Stefan Kost + Thomas Vander Stichele + Zaheer Abbas Merali + (see upstream ChangeLog for an up-to-date list) + +Copyright (C) 2002, 2004 David I. Lehn +Copyright (C) 2004 Johan Dahlin + +License: + + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL'. + --- gst0.10-python-0.10.13.2.orig/debian/control +++ gst0.10-python-0.10.13.2/debian/control @@ -0,0 +1,60 @@ +Source: gst0.10-python +Section: python +Priority: optional +Maintainer: Maintainers of GStreamer packages +Uploaders: Loic Minier , + Sebastian Dröge +Build-Depends: debhelper (>= 5.0.37.2), + pkg-config, + libgstreamer0.10-dev (>= 0.10.21.2), + libgstreamer-plugins-base0.10-dev (>= 0.10.21.2), + gstreamer0.10-plugins-base, + libxml2-utils, + xmlto, + libx11-dev, + python-dev, + python-gobject-dev (>= 2.11.2), + python-gobject-dbg, + python-all-dev (>= 2.3.5-11), + python-all-dbg, + python-central (>= 0.5), + autotools-dev, + quilt +Standards-Version: 3.8.0 +XS-Python-Version: >= 2.3 +Homepage: http://gstreamer.freedesktop.org + +Package: python-gst0.10 +Architecture: any +Depends: ${shlibs:Depends}, + ${python:Depends}, + python-gobject (>= 2.11.2), + python-libxml2 +Provides: ${python:Provides} +Replaces: python2.3-gst0.10, + python2.4-gst0.10 +Conflicts: python2.3-gst0.10, + python2.4-gst0.10 +Suggests: python-gst0.10-dbg +XB-Python-Version: ${python:Versions} +Description: generic media-playing framework (Python bindings) + GStreamer is a media processing framework with support for a wide variety + of data sources, sinks, and formats through the use of dynamically loaded + plugins. + . + This package contains bindings to access GStreamer from Python. + +Package: python-gst0.10-dbg +Priority: extra +Architecture: any +Depends: python-gst0.10 (= ${binary:Version}), + python-dbg, + python-gobject-dbg, + ${shlibs:Depends} +Description: generic media-playing framework (Python debug bindings) + GStreamer is a media processing framework with support for a wide variety + of data sources, sinks, and formats through the use of dynamically loaded + plugins. + . + This package contains the extension built for the Python debug interpreter. + --- gst0.10-python-0.10.13.2.orig/debian/python-gst0.10.install +++ gst0.10-python-0.10.13.2/debian/python-gst0.10.install @@ -0,0 +1,2 @@ +debian/python-gst0.10.rtupdate usr/share/python/runtime.d +debian/python-gst0.10/usr/share/gst-python/0.10/examples usr/share/doc/python-gst0.10 --- gst0.10-python-0.10.13.2.orig/debian/docs +++ gst0.10-python-0.10.13.2/debian/docs @@ -0,0 +1,3 @@ +NEWS +RELEASE +gst-python.doap --- gst0.10-python-0.10.13.2.orig/debian/rules +++ gst0.10-python-0.10.13.2/debian/rules @@ -0,0 +1,141 @@ +#!/usr/bin/make -f + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2) + +CFLAGS += -Wno-error +CXXFLAGS += -Wno-error + +PY_DEFAULT := $(shell pyversions --default) +PY_VERSIONS = $(sort $(shell pyversions --requested) $(PY_DEFAULT)) + +PATCH_DIR := debian/patches + +configure_flags := --prefix=/usr + +# packages where /usr/share/doc/$p is a symlink +USD_SYMLINK_PKGS := python-gst0.10-dbg + +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + configure_flags += --build=$(DEB_BUILD_GNU_TYPE) +else + configure_flags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +endif + +# how to call quilt +QUILT := QUILT_PATCHES=$(PATCH_DIR) quilt --quiltrc /dev/null + +patch: patch-stamp + +patch-stamp: + dh_testdir + # apply patches + $(QUILT) push -a || test $$? = 2 + # backup the original files to restore them in the clean target + -test -r config.sub && cp config.sub config.sub.orig + -test -r config.guess && cp config.guess config.guess.orig + -test -r /usr/share/misc/config.sub && \ + cp -f /usr/share/misc/config.sub config.sub + -test -r /usr/share/misc/config.guess && \ + cp -f /usr/share/misc/config.guess config.guess + touch $@ + +build-stamp-%: patch-stamp + dh_testdir + [ ! -f Makefile ] || $(MAKE) distclean + PYTHON=`which $*` PKG_CONFIG_PATH=/usr/lib/pkgconfig/$* CFLAGS="$(CFLAGS)" \ + ./configure $(configure_flags) + $(MAKE) + $(MAKE) install DESTDIR=$(CURDIR)/debian/python-gst0.10 + # move installed files to a per python runtime location to allow + # comparison of the resulting files across runtimes or shipping + # multiple versions + # pkg-config file (this is shipped twice because of varying pyexecdir) + mkdir debian/python-gst0.10/usr/lib/pkgconfig/$* + mv debian/python-gst0.10/usr/lib/pkgconfig/*.pc debian/python-gst0.10/usr/lib/pkgconfig/$* + # defs files, should be the same whatever the build-time python runtime + mkdir debian/python-gst0.10/usr/share/gst-python/0.10/defs/$* + mv debian/python-gst0.10/usr/share/gst-python/0.10/defs/*.defs debian/python-gst0.10/usr/share/gst-python/0.10/defs/$* + touch $@ + +dbg-build-stamp-%: patch-stamp + dh_testdir + [ ! -f Makefile ] || $(MAKE) distclean + PYTHON=`which $*-dbg` PKG_CONFIG_PATH=/usr/lib/pkgconfig/$* CFLAGS="$(CFLAGS) -O0" \ + ./configure $(configure_flags) + $(MAKE) + $(MAKE) install DESTDIR=$(CURDIR)/debian/python-gst0.10-dbg + touch $@ + +build-arch: $(addprefix build-stamp-, $(PY_VERSIONS)) $(addprefix dbg-build-stamp-, $(PY_VERSIONS)) + +build: build-arch + +clean: + dh_testdir + dh_testroot + [ ! -f Makefile ] || $(MAKE) distclean + # restore files from backup (before unpatching) + -test -r config.sub.orig && mv -f config.sub.orig config.sub + -test -r config.guess.orig && mv -f config.guess.orig config.guess + # unapply patches, if any + $(QUILT) pop -a -R || test $$? = 2 + -rm -rf .pc + rm -f patch-stamp build-stamp-* dbg-build-stamp-* */*.pyc *.pyc + dh_clean + +install: build + dh_testdir + dh_testroot + dh_install + # check that all builds with various Python runtimes produced the same + # *.defs files (or fail) + for v in $(PY_VERSIONS); do \ + echo "Comparing defs files for the default Python version ($(PY_DEFAULT)) with defs files for Python $$v"; \ + diff --brief --recursive debian/python-gst0.10/usr/share/gst-python/0.10/defs/$(PY_DEFAULT) debian/python-gst0.10/usr/share/gst-python/0.10/defs/$$v; \ + done + + # drop all *.la files + find debian/python-gst0.10/usr/lib/python* -name '*.la' -print0 | xargs -0r rm -f -- + # only keep *.so files and symlinks in the dbg packages + find debian/python-*-dbg ! -type d ! -name '*.so' -print0 | xargs -0r rm -f -- + find debian/python-*-dbg -depth -empty -exec rmdir -- {} \; + # suffix *.so files and symlinks with _d in the dbg packages + for i in $$(find debian/python-*-dbg -name '*.so'); do \ + b="$$(basename "$$i" .so)"; \ + mv "$$i" "$$(dirname "$$i")/$${b}_d.so"; \ + done + # since all Python runtimes produced the same files, only keep one set + @echo "Cleaning up..." + mv debian/python-gst0.10/usr/share/gst-python/0.10/defs/$(PY_DEFAULT)/*.defs debian/python-gst0.10/usr/share/gst-python/0.10/defs + for v in $(PY_VERSIONS); do \ + rm --force --recursive debian/python-gst0.10/usr/share/gst-python/0.10/defs/$$v; \ + done + # set executable bit on files with a shebang + egrep -rlZ '^#!(.*)(python|sh)' debian/python-gst0.10 | xargs -0 chmod a+x -- + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs -s $(addprefix -N, $(USD_SYMLINK_PKGS)) ChangeLog + dh_installdocs -s $(addprefix -N, $(USD_SYMLINK_PKGS)) + dh_link -s + dh_link $(addprefix -p, $(USD_SYMLINK_PKGS)) \ + $(addprefix usr/share/doc/python-gst0.10 \ + usr/share/doc/,$(USD_SYMLINK_PKGS)) + dh_strip -s -Npython-gst0.10-dbg --dbg-package=python-gst0.10-dbg + dh_compress -s -Xexample + dh_fixperms -s + dh_pycentral -s + dh_installdeb -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s + +binary-indep: + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch --- gst0.10-python-0.10.13.2.orig/debian/compat +++ gst0.10-python-0.10.13.2/debian/compat @@ -0,0 +1 @@ +5 --- gst0.10-python-0.10.13.2.orig/debian/patches/02_pygstdir.patch +++ gst0.10-python-0.10.13.2/debian/patches/02_pygstdir.patch @@ -0,0 +1,15 @@ +--- gst0.10-python-0.10.9.orig/pygst.py.in 2006-06-09 19:21:40.000000000 +0200 ++++ gst0.10-python-0.10.9/pygst.py.in 2007-12-02 11:50:38.000000000 +0100 +@@ -25,10 +25,11 @@ + # In order to have backward compatibility + + import sys ++import os.path + + __all__ = ['require'] + +-_pygst_dir = '@PYGSTDIR@' ++_pygst_dir = os.path.dirname(__file__) + '/gst-@GST_MAJORMINOR@' + + _pygst_version = '@GST_MAJORMINOR@' + --- gst0.10-python-0.10.13.2.orig/debian/patches/series +++ gst0.10-python-0.10.13.2/debian/patches/series @@ -0,0 +1 @@ +02_pygstdir.patch