[Python-modules-commits] r702 - in /packages/pyenchant/trunk/debian: changelog control docs examples postinst prerm python-enchant.docs python-enchant.examples rules

pox-guest at users.alioth.debian.org pox-guest at users.alioth.debian.org
Tue May 30 19:19:39 UTC 2006


Author: pox-guest
Date: Tue May 30 19:19:38 2006
New Revision: 702

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=702
Log:
Convert to python-central

Added:
    packages/pyenchant/trunk/debian/docs
    packages/pyenchant/trunk/debian/examples
    packages/pyenchant/trunk/debian/postinst
    packages/pyenchant/trunk/debian/prerm
Removed:
    packages/pyenchant/trunk/debian/python-enchant.docs
    packages/pyenchant/trunk/debian/python-enchant.examples
Modified:
    packages/pyenchant/trunk/debian/changelog
    packages/pyenchant/trunk/debian/control
    packages/pyenchant/trunk/debian/rules

Modified: packages/pyenchant/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/pyenchant/trunk/debian/changelog?rev=702&op=diff
==============================================================================
--- packages/pyenchant/trunk/debian/changelog (original)
+++ packages/pyenchant/trunk/debian/changelog Tue May 30 19:19:38 2006
@@ -1,3 +1,9 @@
+pyenchant (1.1.5-2) unstable; urgency=low
+
+  * Convert to python-central.
+
+ -- Piotr Ozarowski <ozarow at gmail.com>  Tue, 30 May 2006 18:51:08 +0200
+
 pyenchant (1.1.5-1) unstable; urgency=low
 
   * Initial release (closes: #299783)

Modified: packages/pyenchant/trunk/debian/control
URL: http://svn.debian.org/wsvn/python-modules/packages/pyenchant/trunk/debian/control?rev=702&op=diff
==============================================================================
--- packages/pyenchant/trunk/debian/control (original)
+++ packages/pyenchant/trunk/debian/control Tue May 30 19:19:38 2006
@@ -4,44 +4,20 @@
 Section: python
 Priority: optional
 Build-Depends: debhelper (>=5), python-dev, python2.3-dev, python2.4-dev, python2.3-setuptools, python2.4-setuptools, libenchant-dev
-Standards-Version: 3.6.2
+Standards-Version: 3.7.2
+XS-Python-Version: all
 
 Package: python-enchant
-Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Architecture: any
+Depends: ${pycentral:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Conflicts: python2.3-enchant (<< 1.1.5-2), python2.4-enchant (<< 1.1.5-2)
+Replaces: python2.3-enchant (<< 1.1.5-2), python2.4-enchant (<< 1.1.5-2)
+Provides: ${python:Provides}
+XB-Python-Version: ${pycentral:Versions}
 Description: spellchecking library for Python
  PyEnchant consists of Python bindings to the Enchant spellchecking
  library and some wrapper classes. It includes all the functionality
  of Enchant in a Pythonic object-oriented interface, and also provides
  some higher-level functionality which is not available in the C API.
  .
- This package is an empty dummy package that always depends on
- a package built for Debian's default Python version.
- .
   Homepage: http://pyenchant.sourceforge.net/
-
-Package: python2.3-enchant
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
-Description: spellchecking library for Python
- PyEnchant consists of Python bindings to the Enchant spellchecking
- library and some wrapper classes. It includes all the functionality
- of Enchant in a Pythonic object-oriented interface, and also provides
- some higher-level functionality which is not available in the C API.
- .
- This package is built for Python 2.3.
- .
-  Homepage: http://pyenchant.sourceforge.net/
-
-Package: python2.4-enchant
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
-Description: spellchecking library for Python
- PyEnchant consists of Python bindings to the Enchant spellchecking
- library and some wrapper classes. It includes all the functionality
- of Enchant in a Pythonic object-oriented interface, and also provides
- some higher-level functionality which is not available in the C API.
- .
- This package is built for Python 2.4.
- .
-  Homepage: http://pyenchant.sourceforge.net/

Added: packages/pyenchant/trunk/debian/docs
URL: http://svn.debian.org/wsvn/python-modules/packages/pyenchant/trunk/debian/docs?rev=702&op=file
==============================================================================
--- packages/pyenchant/trunk/debian/docs (added)
+++ packages/pyenchant/trunk/debian/docs Tue May 30 19:19:38 2006
@@ -1,0 +1,1 @@
+README.txt

Added: packages/pyenchant/trunk/debian/examples
URL: http://svn.debian.org/wsvn/python-modules/packages/pyenchant/trunk/debian/examples?rev=702&op=file
==============================================================================
--- packages/pyenchant/trunk/debian/examples (added)
+++ packages/pyenchant/trunk/debian/examples Tue May 30 19:19:38 2006
@@ -1,0 +1,1 @@
+tools/shootout.py

Added: packages/pyenchant/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/python-modules/packages/pyenchant/trunk/debian/postinst?rev=702&op=file
==============================================================================
--- packages/pyenchant/trunk/debian/postinst (added)
+++ packages/pyenchant/trunk/debian/postinst Tue May 30 19:19:38 2006
@@ -1,0 +1,5 @@
+#! /bin/sh
+set -e
+pycentral pkginstall python-enchant
+#DEBHELPER#
+exit 0

Added: packages/pyenchant/trunk/debian/prerm
URL: http://svn.debian.org/wsvn/python-modules/packages/pyenchant/trunk/debian/prerm?rev=702&op=file
==============================================================================
--- packages/pyenchant/trunk/debian/prerm (added)
+++ packages/pyenchant/trunk/debian/prerm Tue May 30 19:19:38 2006
@@ -1,0 +1,5 @@
+#! /bin/sh
+set -e
+pycentral pkgremove python-enchant
+#DEBHELPER#
+exit 0

Modified: packages/pyenchant/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/pyenchant/trunk/debian/rules?rev=702&op=diff
==============================================================================
--- packages/pyenchant/trunk/debian/rules (original)
+++ packages/pyenchant/trunk/debian/rules Tue May 30 19:19:38 2006
@@ -2,42 +2,60 @@
 
 #export DH_VERBOSE=1
 
-PYVERSIONS=2.3 2.4
-# default is first version
-DEFAULTPY=$(shell echo $(PYVERSIONS) | sed 's/ .*//')
+PYVERS=$(subst -dev,,\
+           $(subst python,,\
+             $(filter python%-dev,\
+               $(shell sed -n '/^Build-Depends/s/,//gp' debian/control))))
+PYVER   := $(shell python -c 'import sys; print sys.version[:3]')
 
 build: build-stamp
-
-build-stamp:
-	dh_testdir
-	for v in $(PYVERSIONS) ; do \
-		python$$v setup.py build ; \
-	done
-	touch build-stamp
+build-stamp: $(PYVERS:%=build-python%)
+	touch $@
+build-python%:
+	python$* setup.py build
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
-	rm -rf dist/
-#	rm -f pyenchant.egg-info/SOURCES.txt
-	for v in $(PYVERSIONS) ; do \
-		python$$v setup.py clean || true; \
-	done
+	rm -f *-stamp
+	rm -rf dist build
 	find . -name *\.pyc -exec rm {} \;
-	-rm -rf build
 	dh_clean
 
-install: build
+install: build install-prereq $(PYVERS:%=install-python%)
+	: # dh: Set ${pycentral:Versions}
+	echo 'pycentral:Versions=2.3, 2.4' \
+		>> debian/python-enchant.substvars
+	
+	: # dh: Set ${pycentral:Depends}
+	echo 'pycentral:Depends=python (>= 2.3), python (<< 2.5), python-central' \
+		>> debian/python-enchant.substvars
+	
+
+install-prereq:
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-	for v in $(PYVERSIONS) ; do \
-		PYTHON=python$$v ; \
-		PYTMP="debian/$$PYTHON-enchant" ; \
-		$$PYTHON setup.py install --no-compile --root=$$PYTMP --single-version-externally-managed; \
-	done
+
+install-python%:
+	python$* setup.py install --no-compile --root $(CURDIR)/debian/python-enchant --single-version-externally-managed
+	mkdir -p debian/python-enchant/usr/include/python$*
+	install -o root -g root -m 644 \
+		enchant/enchant.h \
+		enchant/enchant.i \
+		enchant/enchant_wrap.c \
+		debian/python-enchant/usr/include/python$*
+	
+	: # dh: install into /usr/share/pycentral
+	mkdir -p debian/python-enchant/usr/share/pycentral/python-enchant
+	tar -cf - -C debian/python-enchant/usr/lib/python$* --exclude='*.so' . \
+	  | tar -xf - \
+		-C debian/python-enchant/usr/share/pycentral/python-enchant
+	find debian/python-enchant/usr/lib/python$* ! -type d ! -name '*.so' \
+	    | xargs rm -f
+	
+#	find debian/python-enchant -name '*.py[co]' -exec rm -f {} \;
 
 binary-indep: build install
 	dh_testdir -i
@@ -54,17 +72,17 @@
 	dh_gencontrol -i
 	dh_md5sums -i
 	dh_builddeb -i
-
+	
 binary-arch: build install
 	dh_testdir -a
 	dh_testroot -a
 	dh_installchangelogs -a ChangeLog
 	dh_installdocs -a
 	dh_installexamples  -a
+	dh_python -a
 	dh_strip -a
 	dh_compress -a -X.py
 	dh_fixperms -a
-	dh_python -a
 	dh_installdeb -a
 	dh_shlibdeps -a
 	dh_gencontrol -a




More information about the Python-modules-commits mailing list