[Python-modules-commits] [pyexcelerator] 01/02: Build using dh-python, pybuild and dh-exec

Ondřej Nový onovy at moszumanska.debian.org
Sun Sep 4 19:28:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

onovy pushed a commit to branch master
in repository pyexcelerator.

commit ab7aea9c3801e79c78331704719fc7044d1a617d
Author: Ondřej Nový <onovy at debian.org>
Date:   Sun Sep 4 21:19:40 2016 +0200

    Build using dh-python, pybuild and dh-exec
    
    * Source format changed to 3.0 (quilt) (Closes: #670190)
    * Build using dh-python, pybuild and dh-exec (Closes: #825815)
    * Bump debhelper version to 9
---
 debian/README.source |  6 ------
 debian/changelog     |  3 +++
 debian/compat        |  2 +-
 debian/control       |  5 ++++-
 debian/dirs          |  2 --
 debian/docs          |  2 --
 debian/install       |  4 ++++
 debian/rules         | 20 ++++----------------
 debian/source/format |  2 +-
 9 files changed, 17 insertions(+), 29 deletions(-)

diff --git a/debian/README.source b/debian/README.source
deleted file mode 100644
index 2a936ee..0000000
--- a/debian/README.source
+++ /dev/null
@@ -1,6 +0,0 @@
-This package is using dpatch patch system. 
-
-To get the fully patched source after unpacking the source package, cd to
-the root level of the source package and run `./debian/rules patch`
-
-See /usr/share/doc/dpatch/README.source.gz for more information.
diff --git a/debian/changelog b/debian/changelog
index 8d73422..d540229 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,9 @@
 pyexcelerator (0.6.4.1-3) UNRELEASED; urgency=medium
 
   * Fixed VCS URL (https)
+  * Source format changed to 3.0 (quilt) (Closes: #670190)
+  * Build using dh-python, pybuild and dh-exec (Closes: #825815)
+  * Bump debhelper version to 9
 
  -- Ondřej Nový <novy at ondrej.org>  Tue, 29 Mar 2016 21:49:10 +0200
 
diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index 3d1bf25..39473ed 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,10 @@ Section: python
 Priority: optional
 Maintainer: Kevin Coyner <kcoyner at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: cdbs (>=0.4.90~), debhelper (>= 7.4~), python-dev (>= 2.6.6-3~), dpatch
+Build-Depends: debhelper (>= 9),
+    dh-exec,
+    dh-python,
+    python-all,
 X-Python-Version: >= 2.4
 Standards-Version: 3.8.3
 Homepage: http://sourceforge.net/projects/pyexcelerator
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644
index 98d1583..0000000
--- a/debian/dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/share/man/man1
diff --git a/debian/docs b/debian/docs
index 2962ef4..8404a61 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,5 +1,3 @@
 debian/README.Debian-source
-debian/README.source
 README.txt
 THANKS.txt
-examples/
diff --git a/debian/install b/debian/install
new file mode 100755
index 0000000..41f26d1
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,4 @@
+#! /usr/bin/dh-exec --with=install
+tools/xls2csv.py => /usr/bin/py_xls2csv
+tools/xls2html.py => /usr/bin/py_xls2html
+tools/xls2txt.py => /usr/bin/py_xls2txt
diff --git a/debian/rules b/debian/rules
index a9584ae..e90124b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,19 +1,7 @@
 #!/usr/bin/make -f
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/dpatch.mk
+#export DH_VERBOSE = 1
+export PYBUILD_NAME = excelerator
 
-clean::
-	rm -f pyExcelerator/antlr.py
-
-DEB_INSTALL_CHANGELOGS_ALL = CHANGES.txt
-
-install/python-excelerator::
-	find ./debian/python-excelerator/usr/ \
-		-name "*.py" | grep 'site-packages/pyExcelerator' | \
-		xargs sed -i -e '1 s/^#\!.*python.*//'
-
-	cp tools/xls2csv.py ./debian/python-excelerator/usr/bin/py_xls2csv
-	cp tools/xls2html.py ./debian/python-excelerator/usr/bin/py_xls2html
-	cp tools/xls2txt.py ./debian/python-excelerator/usr/bin/py_xls2txt
+%:
+	dh $@ --with python2 --buildsystem=pybuild
diff --git a/debian/source/format b/debian/source/format
index d3827e7..163aaf8 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1 @@
-1.0
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyexcelerator.git



More information about the Python-modules-commits mailing list