[Python-modules-commits] r6967 - in packages/pyenchant/trunk/debian (changelog control rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Tue Nov 25 22:15:22 UTC 2008


    Date: Tuesday, November 25, 2008 @ 22:15:21
  Author: piotr
Revision: 6967

try to detect libenchant package name

Modified:
  packages/pyenchant/trunk/debian/changelog
  packages/pyenchant/trunk/debian/control
  packages/pyenchant/trunk/debian/rules

Modified: packages/pyenchant/trunk/debian/changelog
===================================================================
--- packages/pyenchant/trunk/debian/changelog	2008-11-25 19:43:40 UTC (rev 6966)
+++ packages/pyenchant/trunk/debian/changelog	2008-11-25 22:15:21 UTC (rev 6967)
@@ -3,8 +3,9 @@
   [ Piotr Ożarowski ]
   * New upstream release (upload to experimental due to Lenny freeze, to ease
     testing rev. dependencies)
-    + Architecture changed to all
-    + python-ctypes added to Depends 
+  * Architecture changed to all
+    + python-ctypes added to Depends
+    + ${shlibs:Depends} generated in debian/rules (i.e. not via debhelper)
   * Drop not really needed fix_import_path patch
   * Compress binary package with bzip2
 

Modified: packages/pyenchant/trunk/debian/control
===================================================================
--- packages/pyenchant/trunk/debian/control	2008-11-25 19:43:40 UTC (rev 6966)
+++ packages/pyenchant/trunk/debian/control	2008-11-25 22:15:21 UTC (rev 6967)
@@ -1,10 +1,10 @@
 Source: pyenchant
-Maintainer: Piotr Ożarowski <piotr at debian.org>
-Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-7), python-all-dbg, quilt (>= 0.40),
- python-central (>= 0.6.1), python-setuptools (>= 0.6b3-1~), libenchant-dev (>= 1.4.2-3.3)
+Maintainer: Piotr Ożarowski <piotr at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5.0.38), quilt (>= 0.40), python-ctypes, libenchant-dev
+Build-Depends-Indep: python-all (>= 2.3.5-7), python-central (>= 0.6.1), python-setuptools (>= 0.6b3-1~)
 Standards-Version: 3.8.0
 Homepage: http://pyenchant.sourceforge.net/
 XS-Python-Version: all
@@ -14,8 +14,7 @@
 Package: python-enchant
 Architecture: all
 Depends: ${python:Depends}, ${shlibs:Depends}, python-ctypes
-Suggests: python-gobject, python-gtk2, python-wxgtk2.6 | python-wxgtk2.8, python-enchant-dbg
-Provides: ${python:Provides}
+Suggests: python-gobject, python-gtk2, python-wxgtk2.6 | python-wxgtk2.8
 Conflicts: python2.4-enchant (<< 1.1.5-2)
 Replaces: python2.4-enchant (<< 1.1.5-2)
 XB-Python-Version: ${python:Versions}

Modified: packages/pyenchant/trunk/debian/rules
===================================================================
--- packages/pyenchant/trunk/debian/rules	2008-11-25 19:43:40 UTC (rev 6966)
+++ packages/pyenchant/trunk/debian/rules	2008-11-25 22:15:21 UTC (rev 6967)
@@ -7,6 +7,12 @@
 
 PYVERS=$(shell pyversions -vr)
 
+# try to detect libenchant package name
+LIBPACKAGENAME=$(shell dpkg -S `python -c 'from ctypes.util import find_library; print find_library("enchant")'`  | grep -o ^libenchant[^:]*  | head -n 1)
+ifneq (,$(findstring enchant,$(LIBPACKAGENAME)))
+LIBPACKAGENAME=libenchant1c2a
+endif
+
 include /usr/share/quilt/quilt.make
 
 clean: unpatch
@@ -19,6 +25,8 @@
 build: patch
 
 install: patch $(PYVERS:%=install-python-%)
+	echo "shlibs:Depends=${LIBPACKAGENAME}" >> debian/python-enchant.substvars
+	touch $@
 install-python-%:
 	python$* setup.py install \
 		--single-version-externally-managed \




More information about the Python-modules-commits mailing list