Control: tags -1 +patch

Hi Sylvestre,

Here at DebConf15 we've taken a look at finishing the python-support ->
dh-python transition.  Attached is a patch which converts giws from
python-support to dh-python, and from cdbs to dh(1) (because dh(1) is the
recommended helper for recent dh-python).  Please consider applying this
patch to your package.

If you would like me to NMU for this, just let me know and I'd be happy to
upload.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru giws-2.0.2/debian/changelog giws-2.0.2/debian/changelog
--- giws-2.0.2/debian/changelog	2013-11-21 14:06:30.000000000 +0000
+++ giws-2.0.2/debian/changelog	2015-08-18 18:08:29.000000000 +0000
@@ -1,3 +1,10 @@
+giws (2.0.2-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop python-support.  Closes: #786001
+
+ -- Steve Langasek <vor...@debian.org>  Tue, 18 Aug 2015 18:08:29 +0000
+
 giws (2.0.2-1) unstable; urgency=low
 
   * New upstream release
diff -Nru giws-2.0.2/debian/compat giws-2.0.2/debian/compat
--- giws-2.0.2/debian/compat	2010-05-17 12:32:32.000000000 +0000
+++ giws-2.0.2/debian/compat	2015-08-18 17:59:04.000000000 +0000
@@ -1 +1 @@
-5
+9
diff -Nru giws-2.0.2/debian/control giws-2.0.2/debian/control
--- giws-2.0.2/debian/control	2013-11-21 14:06:20.000000000 +0000
+++ giws-2.0.2/debian/control	2015-08-18 18:04:27.000000000 +0000
@@ -2,8 +2,7 @@
 Section: devel
 Priority: optional
 Maintainer: Sylvestre Ledru <sylves...@debian.org>
-Build-Depends: debhelper (>= 5), python, cdbs, python-libxml2,
- python-support
+Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), dh-python, python-libxml2
 Homepage: http://www.scilab.org/giws/
 Standards-Version: 3.9.5
 Vcs-Svn: https://bollin.googlecode.com/svn/giws/trunk
diff -Nru giws-2.0.2/debian/giws-doc.docs giws-2.0.2/debian/giws-doc.docs
--- giws-2.0.2/debian/giws-doc.docs	1970-01-01 00:00:00.000000000 +0000
+++ giws-2.0.2/debian/giws-doc.docs	2015-08-18 18:00:18.000000000 +0000
@@ -0,0 +1 @@
+README
diff -Nru giws-2.0.2/debian/giws.install giws-2.0.2/debian/giws.install
--- giws-2.0.2/debian/giws.install	1970-01-01 00:00:00.000000000 +0000
+++ giws-2.0.2/debian/giws.install	2015-08-18 17:59:42.000000000 +0000
@@ -0,0 +1,2 @@
+usr/lib/python2.*/dist-packages/
+usr/bin/giws
diff -Nru giws-2.0.2/debian/rules giws-2.0.2/debian/rules
--- giws-2.0.2/debian/rules	2010-05-17 12:32:32.000000000 +0000
+++ giws-2.0.2/debian/rules	2015-08-18 18:15:10.000000000 +0000
@@ -1,17 +1,7 @@
 #!/usr/bin/make -f
-# Copyright 2008 - Sylvestre Ledru <sylvestre.le...@inria.fr>
 
-include /usr/share/python/python.mk
-
-DEB_PYTHON_SYSTEM := pysupport
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
-
-DEB_PYTHON_COMPILE_VERSION  := $(shell pyversions -r)
-DEB_DH_INSTALL_SOURCEDIR    := debian/tmp
-DEB_PYTHON_INSTALL_ARGS_ALL += --no-compile --root=$(CURDIR)/debian/giws/ $(py_setup_install_args)
-DEB_INSTALL_CHANGELOGS_ALL  += CHANGELOG
+%:
+	dh $@ --with python2 --buildsystem=pybuild
 
 get-orig-source:
 	uscan --upstream-version 0 --rename

Reply via email to