[guiqwt] 01/01: * add the python3 packages and switch to pybuild

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Thu Aug 27 10:01:32 UTC 2015


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

picca pushed a commit to branch master
in repository guiqwt.

commit a3e95449f86f205993a834634bbcc880b4a06d31
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Thu Aug 27 11:26:18 2015 +0200

    * add the python3 packages and switch to pybuild
---
 debian/changelog                                |  6 +++
 debian/control                                  | 51 ++++++++++++++++++++++++-
 debian/guiqwt-tests3.desktop                    | 10 +++++
 debian/{doc-base => python-guiqwt-doc.doc-base} |  4 +-
 debian/{docs => python-guiqwt-doc.docs}         |  0
 debian/python-guiqwt.install                    |  3 --
 debian/rules                                    | 28 +++++++-------
 debian/sift3.desktop                            |  9 +++++
 8 files changed, 92 insertions(+), 19 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 25248da..a70013f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+guiqwt (2.4.0~b2-1~exp2) experimental; urgency=medium
+
+  * add the python3 packages and switch to pybuild
+
+ -- Picca Frédéric-Emmanuel <picca at debian.org>  Wed, 26 Aug 2015 14:58:22 +0200
+
 guiqwt (2.4.0~b2-1~exp1) experimental; urgency=medium
 
   * use the pypi redirector
diff --git a/debian/control b/debian/control
index c64b9e1..98bc1f3 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,13 @@ Build-Depends: debhelper (>= 9),
 	       python-qwt,
 	       python-setuptools,
                python-sphinx,
+               cython3,
+               python3-all-dev,
+               python3-guidata (>= 1.7.0~),
+               python3-numpy,
+	       python3-qwt,
+	       python3-setuptools,
+               python3-sphinx,
 Standards-Version: 3.9.6
 Vcs-Browser: http://anonscm.debian.org/cgit/debian-science/packages/guiqwt.git
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/guiqwt.git
@@ -32,10 +39,52 @@ Depends: ${shlibs:Depends},
 Recommends: python-dicom
 Suggests: spyder (>= 2.0.10)
 Provides: ${python:Provides}
-Description: efficient 2D data-plotting library
+Description: efficient 2D data-plotting library - Python 2
  The guiqwt Python library provides efficient 2D data-plotting features
  (curve/image visualization and related tools) for signal/image processing
  application development and interactive computing. It's based on the
  scientific modules NumPy and SciPy, and the PyQwt plotting widgets for
  PyQt4 graphical user interfaces.
+ .
+ This is the Python 2 version of the package.
+
+Package: python3-guiqwt
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python3:Depends},
+         python3-guidata (>= 1.7.0~),
+         python3-h5py,
+         python3-pil,
+         python3-qwt,
+         python3-scipy,
+Recommends: python3-dicom
+Suggests: spyder3 (>= 2.0.10)
+Provides: ${python3:Provides}
+Description: efficient 2D data-plotting library - Python 3
+ The guiqwt Python library provides efficient 2D data-plotting
+ features (curve/image visualization and related tools) for
+ signal/image processing application development and interactive
+ computing. It's based on the scientific modules NumPy and SciPy, and
+ the PyQwt plotting widgets for PyQt4 graphical user interfaces.
+ .
+ This is the Python 3 version of the package.
+
+Package: python-guiqwt-doc
+Architecture: all
+Section: doc
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${sphinxdoc:Depends},
+Breaks: python-guiqwt (<< 2.4.0~b2-1~exp2)
+Replaces: python-guiqwt (<< 2.4.0~b2-1~exp2)
+Description: efficient 2D data-plotting library - Documentation
+ The guiqwt Python library provides efficient 2D data-plotting
+ features (curve/image visualization and related tools) for
+ signal/image processing application development and interactive
+ computing. It's based on the scientific modules NumPy and SciPy, and
+ the PyQwt plotting widgets for PyQt4 graphical user interfaces.
+ .
+ This is the documentation of the package.
 
diff --git a/debian/guiqwt-tests3.desktop b/debian/guiqwt-tests3.desktop
new file mode 100644
index 0000000..12cb0c0
--- /dev/null
+++ b/debian/guiqwt-tests3.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=guiqwt-tests3
+GenericName=guiqwt test application (Python 3)
+Comment=you can use this applications to test all guiqwt features.
+TryExec=guiqwt-tests3
+Exec=guiqwt-tests3
+Icon=/usr/share/pyshared/guiqwt/images/guiqwt.png
+Categories=Education;Science;Physics;
diff --git a/debian/doc-base b/debian/python-guiqwt-doc.doc-base
similarity index 81%
rename from debian/doc-base
rename to debian/python-guiqwt-doc.doc-base
index 3b52c2d..15abf04 100644
--- a/debian/doc-base
+++ b/debian/python-guiqwt-doc.doc-base
@@ -10,5 +10,5 @@ Abstract: guiqwt_
 Section: Text
 
 Format: HTML
-Index: /usr/share/doc/python-guiqwt/html/index.html
-Files: /usr/share/doc/python-guiqwt/html/*
+Index: /usr/share/doc/python-guiqwt-doc/html/index.html
+Files: /usr/share/doc/python-guiqwt-doc/html/*
diff --git a/debian/docs b/debian/python-guiqwt-doc.docs
similarity index 100%
rename from debian/docs
rename to debian/python-guiqwt-doc.docs
diff --git a/debian/python-guiqwt.install b/debian/python-guiqwt.install
deleted file mode 100644
index 3710736..0000000
--- a/debian/python-guiqwt.install
+++ /dev/null
@@ -1,3 +0,0 @@
-debian/guiqwt-tests.desktop /usr/share/applications
-debian/sift.desktop /usr/share/applications
-qtdesigner/*.py /usr/lib/qt4/plugins/designer/python
diff --git a/debian/rules b/debian/rules
index 4b7552d..0914f1d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,11 @@
 #!/usr/bin/make -f
 
-export LDFLAGS= $(shell dpkg-buildflags --get LDFLAGS) -shared
-export FFLAGS = $(shell dpkg-buildflags --get FFLAGS) -fPIC
+#export LDFLAGS= $(shell dpkg-buildflags --get LDFLAGS) -shared
 
-VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
+export PYBUILD_NAME=guiqwt
 
-# for backport on stable without bpo
-WITH_SPHINXDOC = $(shell if [ -x /usr/bin/dh_sphinxdoc ]; then echo "--with sphinxdoc"; fi)
-
-get-orig-source:
-	uscan --force-download --upstream-version $(VERSION) --repack
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_clean:
 	# remove the cython generated files distributed by upstream
@@ -20,8 +16,14 @@ override_dh_clean:
 override_dh_auto_install:
 	dh_auto_install
 	dh_numpy
-
-%:
-	dh $@ --with python2 $(WITH_SPHINXDOC)
-
-.PHONY: get-orig-source
+	dh_numpy3
+	# rename the script
+	mv debian/python3-guiqwt/usr/bin/guiqwt-tests debian/python3-guiqwt/usr/bin/guiqwt-tests3
+	mv debian/python3-guiqwt/usr/bin/sift debian/python3-guiqwt/usr/bin/sift3
+	# install the .desktop files
+	dh_install -p python-guiqwt debian/guiqwt-tests.desktop /usr/share/applications
+	dh_install -p python3-guiqwt debian/guiqwt-tests3.desktop /usr/share/applications
+	dh_install -p python-guiqwt debian/sift.desktop /usr/share/applications
+	dh_install -p python3-guiqwt debian/sift3.desktop /usr/share/applications
+	# install the qtdesigner files
+	dh_install -p python-guiqwt qtdesigner/*.py /usr/lib/qt4/plugins/designer/python
diff --git a/debian/sift3.desktop b/debian/sift3.desktop
new file mode 100644
index 0000000..d001197
--- /dev/null
+++ b/debian/sift3.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Sift
+GenericName=Sift (Python 3)
+Comment=Signal and Image Filtering Tool (demo software based on guidata and guiqwt)
+TryExec=sift3
+Exec=sift3
+Categories=Development;Science;Physics;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/guiqwt.git



More information about the debian-science-commits mailing list