DEB pytqt: drop python2 support.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/176/head
Michele Calgaro 2 years ago
parent 97521efd69
commit f963f7aac5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -4,45 +4,14 @@ Priority: optional
Maintainer: TDE Debian Team <team-debian@trinitydesktop.org> Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Torsten Marek <shlomme@debian.org>, Bernd Zeimetz <bzed@debian.org>, Michael Casadevall <mcasadevall@debian.org> Uploaders: Torsten Marek <shlomme@debian.org>, Bernd Zeimetz <bzed@debian.org>, Michael Casadevall <mcasadevall@debian.org>
Build-Depends: debhelper (>= 9~), python-all-dev (>= 2.3.5-10), python-all-dbg, python3-all-dev, python3-all-dbg, libtqtinterface-dev, tqt3-dev-tools, tqt3-apps-dev, python3-sip-tqt-dev, python3-sip-tqt-dbg, python-sip-tqt-dev, python-sip-tqt-dbg, libtqscintilla-dev, python-support (>= 0.7.1) | dh-python Build-Depends: debhelper (>= 9~), python3-all-dev, python3-all-dbg, libtqtinterface-dev, tqt3-dev-tools, tqt3-apps-dev, python3-sip-tqt-dev, python3-sip-tqt-dbg, libtqscintilla-dev, dh-python
Standards-Version: 3.8.4 Standards-Version: 3.8.4
XS-Python-Version: >= 2.3 XS-Python-Version: >= 2.3
X-Python3-Version: >= 3.0 X-Python3-Version: >= 3.0
Package: python-pytqt
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, ${sip-tqt:Depends}, ${misc:Depends}
Replaces: python-tqt
Breaks: python-tqt
Suggests: python-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql
Provides: ${python:Provides}
Description: TQt bindings for Python
Python binding module that allows use of TQt X Window toolkit v3.
You can use it to create portable graphics-capable scripts (there
are PyTQt versions for Linux, Windows and MacOS X).
.
At this moment PyTQt offers a vast subset of TQt API. There are
some minor issues related to the differences between C++ and Python
(types, etc), but usually you'll be able to write code pretty much the
same way in both languages (with syntax differences, of course)
Package: python-pytqt-dbg
Architecture: any
Priority: extra
Replaces: python-tqt-dbg
Breaks: python-tqt-dbg
Section: debug
Depends: ${shlibs:Depends}, python-all-dbg, python-pytqt (= ${binary:Version}), python-sip-tqt-dbg, ${misc:Depends}
Description: TQt bindings for Python (debug extension)
Python binding module that allows use of TQt X Window toolkit v3.
You can use it to create portable graphics-capable scripts (there
are PyTQt versions for Linux, Windows and MacOS X).
.
This package contains the extension built for the Python debug interpreter.
Package: python3-pytqt Package: python3-pytqt
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, ${sip3-tqt:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, ${py3sip-tqt:Depends}, ${misc:Depends}
Suggests: python3-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql Suggests: python3-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql
Provides: ${python3:Provides} Provides: ${python3:Provides}
Replaces: python3-tqt Replaces: python3-tqt
@ -71,34 +40,6 @@ Description: TQt bindings for Python 3 (debug extension)
. .
This package contains the extension built for the Python debug interpreter. This package contains the extension built for the Python debug interpreter.
Package: python-pytqt-gl
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, python-pytqt (= ${binary:Version}), python-opengl (>= 2.0.1.09-2.2), ${misc:Depends}
Replaces: python-tqt-gl
Breaks: python-tqt-gl
Suggests: pytqt-doc
Provides: ${python:Provides}
Description: TQt OpenGL bindings for Python
Python binding module that allows use of the OpenGL facilities
offered by the TQt X Window toolkit v3. You can use it to create
portable graphics-capable scripts (there are PyTQt versions for
Linux, Windows and MacOS X).
Package: python-pytqt-gl-dbg
Priority: extra
Section: debug
Replaces: python-tqt-gl-dbg
Breaks: python-tqt-gl-dbg
Architecture: any
Depends: ${shlibs:Depends}, python-all-dbg, python-pytqt-gl (= ${binary:Version}), python-pytqt-dbg (= ${binary:Version}), ${misc:Depends}
Description: TQt OpenGL bindings for Python (debug extension)
Python binding module that allows use of the OpenGL facilities
offered by the TQt X Window toolkit v3. You can use it to create
portable graphics-capable scripts (there are PyTQt versions for
Linux, Windows and MacOS X).
.
This package contains the extension built for the Python debug interpreter.
Package: python3-pytqt-gl Package: python3-pytqt-gl
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), python3-opengl, ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), python3-opengl, ${misc:Depends}
@ -127,31 +68,6 @@ Description: TQt OpenGL bindings for Python 3 (debug extension)
. .
This package contains the extension built for the Python debug interpreter. This package contains the extension built for the Python debug interpreter.
Package: python-pytqtext
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, python-pytqt (= ${binary:Version}), ${misc:Depends}
Replaces: python-tqtext
Breaks: python-tqtext
Provides: ${python:Provides}
Description: TQt extensions for PyTQt
PyTQt Extensions. Contains:
.
* QScintilla: a featureful TQt source code editing component based
on Scintilla.
Package: python-pytqtext-dbg
Priority: extra
Section: debug
Replaces: python-tqtext-dbg
Breaks: python-tqtext-dbg
Architecture: any
Depends: ${shlibs:Depends}, python-all-dbg, python-pytqtext (= ${binary:Version}), python-pytqt-dbg (= ${binary:Version}), ${misc:Depends}
Description: TQt debug extensions for PyTQt
PyTQt debug Extensions. Contains:
.
* QScintilla: a featureful TQt source code editing component based
on Scintilla.
Package: python3-pytqtext Package: python3-pytqtext
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), ${misc:Depends}
@ -161,7 +77,7 @@ Breaks: python3-tqtext
Description: TQt extensions for PyTQt Description: TQt extensions for PyTQt
PyTQt Extensions. Contains: PyTQt Extensions. Contains:
. .
* QScintilla: a featureful TQt source code editing component based * TQScintilla: a featureful TQt source code editing component based
on Scintilla. on Scintilla.
Package: python3-pytqtext-dbg Package: python3-pytqtext-dbg
@ -174,7 +90,7 @@ Breaks: python3-tqtext-dbg
Description: TQt debug extensions for PyTQt Description: TQt debug extensions for PyTQt
PyTQt debug Extensions. Contains: PyTQt debug Extensions. Contains:
. .
* QScintilla: a featureful TQt source code editing component based * TQScintilla: a featureful TQt source code editing component based
on Scintilla. on Scintilla.
Package: pytqt-tools Package: pytqt-tools
@ -190,8 +106,8 @@ Description: pyuic and pylupdate for TQt
Linguist translation files from Python code. Linguist translation files from Python code.
Package: pytqt-dev Package: pytqt-dev
Depends: python3-pytqt (= ${binary:Version}) | python-pytqt (= ${binary:Version}), ${misc:Depends} Depends: python3-pytqt (= ${binary:Version}), ${misc:Depends}
Suggests: python3-sip-tqt-dev | python-sip-tqt-dev Suggests: python3-sip-tqt-dev, sip-tqt-dev
Replaces: python-tqt-dev Replaces: python-tqt-dev
Breaks: python-tqt-dev Breaks: python-tqt-dev
Architecture: all Architecture: all
@ -206,7 +122,7 @@ Architecture: all
Replaces: python-tqt-doc Replaces: python-tqt-doc
Breaks: python-tqt-doc Breaks: python-tqt-doc
Depends: ${misc:Depends} Depends: ${misc:Depends}
Suggests: python3-pytqt | python-pytqt Suggests: python3-pytqt
Description: TQt bindings for Python - Documentation and examples Description: TQt bindings for Python - Documentation and examples
Documentation and examples for the PyTQt (bindings that allow Documentation and examples for the PyTQt (bindings that allow
the use of TQt library from within a Python script). the use of TQt library from within a Python script).

@ -1 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtgl.so

@ -1,7 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtcanvas.so
usr/lib/python2.*/*-packages/PyTQt/qtnetwork.so
usr/lib/python2.*/*-packages/PyTQt/qtsql.so
usr/lib/python2.*/*-packages/PyTQt/qttable.so
usr/lib/python2.*/*-packages/PyTQt/qtui.so
usr/lib/python2.*/*-packages/PyTQt/qtxml.so
usr/lib/python2.*/*-packages/PyTQt/qt.so

@ -1 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtext.so

@ -13,9 +13,13 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2) && echo xz || echo bzip2)
endif endif
export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DH_OPTIONS export DH_OPTIONS
-include /usr/share/python/python.mk -include /usr/share/python3/python.mk
ifeq (,$(py_sitename)) ifeq (,$(py_sitename))
py_sitename = site-packages py_sitename = site-packages
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
@ -37,10 +41,7 @@ else
endif endif
CXXFLAGS += "-I/usr/include/tqt" CXXFLAGS += "-I/usr/include/tqt"
PYTHONS := $(shell pyversions -vr debian/control) $(shell py3versions -vd) PYTHONS := $(shell py3versions -vd)
DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
DEB_PARALLEL_JOBS ?= 40 DEB_PARALLEL_JOBS ?= 40
@ -115,14 +116,6 @@ install-arch: build
dh_install -a --sourcedir=$(CURDIR)/debian/tmp dh_install -a --sourcedir=$(CURDIR)/debian/tmp
for i in $$(find debian/python-*-dbg -name '*.so'); do \
b=$$(basename $$i .so); \
mv $$i $$(dirname $$i)/$${b}_d.so; \
done
find debian/python-*-dbg ! -type d \
! \( -name '*.so' -o -name '*config_d.py' \) | xargs rm -f
find debian/python-*-dbg -depth -type d -empty -exec rmdir {} \;
for i in $$(find debian/python3-*-dbg -name '*.so'); do \ for i in $$(find debian/python3-*-dbg -name '*.so'); do \
b=$$(basename $$i .so); \ b=$$(basename $$i .so); \
mv $$i $$(dirname $$i)/$${b}_d.so; \ mv $$i $$(dirname $$i)/$${b}_d.so; \
@ -144,19 +137,6 @@ install-arch-3.%:
mv debian/python3-pytqt-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/qtext.so \ mv debian/python3-pytqt-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/qtext.so \
debian/python3-pytqtext-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/ debian/python3-pytqtext-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/
install-arch-%:
$(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
$(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-pytqt-dbg
mkdir -p debian/python-pytqt/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
cp -a debian/tmp/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/__init__.py \
debian/python-pytqt/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/__init__.py
mkdir -p debian/python-pytqt-gl-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
mv debian/python-pytqt-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/qtgl.so \
debian/python-pytqt-gl-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/
mkdir -p debian/python-pytqtext-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
mv debian/python-pytqt-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/qtext.so \
debian/python-pytqtext-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/
clean: clean:
dh_testdir dh_testdir
dh_testroot dh_testroot
@ -178,8 +158,7 @@ binary-common:
ifeq (,$(findstring -i, $(DH_OPTIONS))) ifeq (,$(findstring -i, $(DH_OPTIONS)))
DH_OPTIONS= dh_strip -ppytqt-tools DH_OPTIONS= dh_strip -ppytqt-tools
set -e; \ set -e; \
for p in python-pytqt python-pytqt-gl python-pytqtext \ for p in python3-pytqt python3-pytqt-gl python3-pytqtext; do \
python3-pytqt python3-pytqt-gl python3-pytqtext; do \
DH_OPTIONS= dh_strip -p$$p --dbg-package=$$p-dbg; \ DH_OPTIONS= dh_strip -p$$p --dbg-package=$$p-dbg; \
rm -rf debian/$$p-dbg/usr/share/doc/$$p-dbg; \ rm -rf debian/$$p-dbg/usr/share/doc/$$p-dbg; \
ln -s $$p debian/$$p-dbg/usr/share/doc/$$p-dbg; \ ln -s $$p debian/$$p-dbg/usr/share/doc/$$p-dbg; \
@ -188,14 +167,8 @@ endif
# dh_strip # dh_strip
dh_compress -X.py -X.bmp -X.ui -X.sql dh_compress -X.py -X.bmp -X.ui -X.sql
dh_fixperms dh_fixperms
ifneq (dh_pysupport,${DH_PYTHON2})
${DH_PYTHON2} --no-dbg-cleaning
else
${DH_PYTHON2}
endif
dh_python3 --no-dbg-cleaning dh_python3 --no-dbg-cleaning
dh_sip_tqt dh_py3sip_tqt
dh_sip3_tqt
dh_lintian dh_lintian
dh_installdeb dh_installdeb
dh_shlibdeps dh_shlibdeps

@ -4,45 +4,14 @@ Priority: optional
Maintainer: TDE Debian Team <team-debian@trinitydesktop.org> Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Torsten Marek <shlomme@debian.org>, Bernd Zeimetz <bzed@debian.org>, Michael Casadevall <mcasadevall@debian.org> Uploaders: Torsten Marek <shlomme@debian.org>, Bernd Zeimetz <bzed@debian.org>, Michael Casadevall <mcasadevall@debian.org>
Build-Depends: debhelper (>= 9~), python-all-dev (>= 2.3.5-10), python-all-dbg [!solaris-any], python3-all-dev, python3-all-dbg [!solaris-any], libtqtinterface-dev, tqt3-dev-tools, tqt3-apps-dev, python3-sip-tqt-dev, python3-sip-tqt-dbg, python-sip-tqt-dev, python-sip-tqt-dbg [!solaris-any], libtqscintilla-dev, python-support (>= 0.7.1) | dh-python Build-Depends: debhelper (>= 9~), python3-all-dev, python3-all-dbg [!solaris-any], libtqtinterface-dev, tqt3-dev-tools, tqt3-apps-dev, python3-sip-tqt-dev, python3-sip-tqt-dbg [!solaris-any], libtqscintilla-dev, dh-python
Standards-Version: 3.8.4 Standards-Version: 3.8.4
XS-Python-Version: >= 2.3 XS-Python-Version: >= 2.3
X-Python3-Version: >= 3.0 X-Python3-Version: >= 3.0
Package: python-pytqt
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, ${sip:Depends}, ${misc:Depends}
Replaces: python-tqt
Breaks: python-tqt
Suggests: python-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql
Provides: ${python:Provides}
Description: TQt bindings for Python
Python binding module that allows use of TQt X Window toolkit v3.
You can use it to create portable graphics-capable scripts (there
are PyTQt versions for Linux, Windows and MacOS X).
.
At this moment PyTQt offers a vast subset of TQt API. There are
some minor issues related to the differences between C++ and Python
(types, etc), but usually you'll be able to write code pretty much the
same way in both languages (with syntax differences, of course)
Package: python-pytqt-dbg
Architecture: linux-any
Priority: extra
Replaces: python-tqt-dbg
Breaks: python-tqt-dbg
Section: debug
Depends: ${shlibs:Depends}, python-dbg, python-pytqt (= ${binary:Version}), python-sip-tqt-dbg, ${misc:Depends}
Description: TQt bindings for Python (debug extension)
Python binding module that allows use of TQt X Window toolkit v3.
You can use it to create portable graphics-capable scripts (there
are PyTQt versions for Linux, Windows and MacOS X).
.
This package contains the extension built for the Python debug interpreter.
Package: python3-pytqt Package: python3-pytqt
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, ${sip3-tqt:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, ${py3sip-tqt:Depends}, ${misc:Depends}
Suggests: python3-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql Suggests: python3-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql
Provides: ${python3:Provides} Provides: ${python3:Provides}
Replaces: python3-tqt Replaces: python3-tqt
@ -71,34 +40,6 @@ Description: TQt bindings for Python 3 (debug extension)
. .
This package contains the extension built for the Python debug interpreter. This package contains the extension built for the Python debug interpreter.
Package: python-pytqt-gl
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, python-pytqt (= ${binary:Version}), python-opengl (>= 2.0.1.09-2.2), ${misc:Depends}
Replaces: python-tqt-gl
Breaks: python-tqt-gl
Suggests: pytqt-doc
Provides: ${python:Provides}
Description: TQt OpenGL bindings for Python
Python binding module that allows use of the OpenGL facilities
offered by the TQt X Window toolkit v3. You can use it to create
portable graphics-capable scripts (there are PyTQt versions for
Linux, Windows and MacOS X).
Package: python-pytqt-gl-dbg
Priority: extra
Section: debug
Replaces: python-tqt-gl-dbg
Breaks: python-tqt-gl-dbg
Architecture: linux-any
Depends: ${shlibs:Depends}, python-dbg, python-pytqt-gl (= ${binary:Version}), python-pytqt-dbg (= ${binary:Version}), ${misc:Depends}
Description: TQt OpenGL bindings for Python (debug extension)
Python binding module that allows use of the OpenGL facilities
offered by the TQt X Window toolkit v3. You can use it to create
portable graphics-capable scripts (there are PyTQt versions for
Linux, Windows and MacOS X).
.
This package contains the extension built for the Python debug interpreter.
Package: python3-pytqt-gl Package: python3-pytqt-gl
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), python3-opengl, ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), python3-opengl, ${misc:Depends}
@ -127,31 +68,6 @@ Description: TQt OpenGL bindings for Python 3 (debug extension)
. .
This package contains the extension built for the Python debug interpreter. This package contains the extension built for the Python debug interpreter.
Package: python-pytqtext
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, python-pytqt (= ${binary:Version}), ${misc:Depends}
Replaces: python-tqtext
Breaks: python-tqtext
Provides: ${python:Provides}
Description: TQt extensions for PyTQt
PyTQt Extensions. Contains:
.
* QScintilla: a featureful TQt source code editing component based
on Scintilla.
Package: python-pytqtext-dbg
Priority: extra
Section: debug
Replaces: python-tqtext-dbg
Breaks: python-tqtext-dbg
Architecture: linux-any
Depends: ${shlibs:Depends}, python-dbg, python-pytqtext (= ${binary:Version}), python-pytqt-dbg (= ${binary:Version}), ${misc:Depends}
Description: TQt debug extensions for PyTQt
PyTQt debug Extensions. Contains:
.
* QScintilla: a featureful TQt source code editing component based
on Scintilla.
Package: python3-pytqtext Package: python3-pytqtext
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), ${misc:Depends}
@ -161,7 +77,7 @@ Breaks: python3-tqtext
Description: TQt extensions for PyTQt Description: TQt extensions for PyTQt
PyTQt Extensions. Contains: PyTQt Extensions. Contains:
. .
* QScintilla: a featureful TQt source code editing component based * TQScintilla: a featureful TQt source code editing component based
on Scintilla. on Scintilla.
Package: python3-pytqtext-dbg Package: python3-pytqtext-dbg
@ -174,7 +90,7 @@ Breaks: python3-tqtext-dbg
Description: TQt debug extensions for PyTQt Description: TQt debug extensions for PyTQt
PyTQt debug Extensions. Contains: PyTQt debug Extensions. Contains:
. .
* QScintilla: a featureful TQt source code editing component based * TQScintilla: a featureful TQt source code editing component based
on Scintilla. on Scintilla.
Package: pytqt-tools Package: pytqt-tools
@ -190,8 +106,8 @@ Description: pyuic and pylupdate for TQt
Linguist translation files from Python code. Linguist translation files from Python code.
Package: pytqt-dev Package: pytqt-dev
Depends: python3-pytqt (= ${binary:Version}) | python-pytqt (= ${binary:Version}), ${misc:Depends} Depends: python3-pytqt (= ${binary:Version}), ${misc:Depends}
Suggests: python3-sip-tqt-dev | python-sip-tqt-dev Suggests: python3-sip-tqt-dev, sip-tqt-dev
Replaces: python-tqt-dev Replaces: python-tqt-dev
Breaks: python-tqt-dev Breaks: python-tqt-dev
Architecture: all Architecture: all
@ -206,7 +122,7 @@ Architecture: all
Replaces: python-tqt-doc Replaces: python-tqt-doc
Breaks: python-tqt-doc Breaks: python-tqt-doc
Depends: ${misc:Depends} Depends: ${misc:Depends}
Suggests: python3-pytqt | python-pytqt Suggests: python3-pytqt
Description: TQt bindings for Python - Documentation and examples Description: TQt bindings for Python - Documentation and examples
Documentation and examples for the PyTQt (bindings that allow Documentation and examples for the PyTQt (bindings that allow
the use of TQt library from within a Python script). the use of TQt library from within a Python script).

@ -1 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtgl.so

@ -1,7 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtcanvas.so
usr/lib/python2.*/*-packages/PyTQt/qtnetwork.so
usr/lib/python2.*/*-packages/PyTQt/qtsql.so
usr/lib/python2.*/*-packages/PyTQt/qttable.so
usr/lib/python2.*/*-packages/PyTQt/qtui.so
usr/lib/python2.*/*-packages/PyTQt/qtxml.so
usr/lib/python2.*/*-packages/PyTQt/qt.so

@ -1 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtext.so

@ -3,8 +3,6 @@
# Uncomment this to turn on verbose mode. # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1 #export DH_VERBOSE=1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# The default gzip compressor has been changed in dpkg >= 1.17.0. # The default gzip compressor has been changed in dpkg >= 1.17.0.
deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \ deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
sed -e "s|.*version ||" -e "s| .*||" | \ sed -e "s|.*version ||" -e "s| .*||" | \
@ -15,9 +13,13 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2) && echo xz || echo bzip2)
endif endif
export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DH_OPTIONS export DH_OPTIONS
-include /usr/share/python/python.mk -include /usr/share/python3/python.mk
ifeq (,$(py_sitename)) ifeq (,$(py_sitename))
py_sitename = site-packages py_sitename = site-packages
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
@ -39,10 +41,7 @@ else
endif endif
CXXFLAGS += "-I/usr/include/tqt" CXXFLAGS += "-I/usr/include/tqt"
PYTHONS := $(shell pyversions -vr debian/control) $(shell py3versions -vd) PYTHONS := $(shell py3versions -vd)
DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
DEB_PARALLEL_JOBS ?= 40 DEB_PARALLEL_JOBS ?= 40
@ -141,19 +140,6 @@ install-arch-3.%:
# mv debian/python3-pytqt-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/qtext.so \ # mv debian/python3-pytqt-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/qtext.so \
# debian/python3-pytqtext-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/ # debian/python3-pytqtext-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/
install-arch-%:
$(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
# $(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-pytqt-dbg
mkdir -p debian/python-pytqt/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
cp -a debian/tmp/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/__init__.py \
debian/python-pytqt/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/__init__.py
# mkdir -p debian/python-pytqt-gl-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
# mv debian/python-pytqt-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/qtgl.so \
# debian/python-pytqt-gl-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/
# mkdir -p debian/python-pytqtext-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
# mv debian/python-pytqt-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/qtext.so \
# debian/python-pytqtext-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/
clean: clean:
dh_testdir dh_testdir
dh_testroot dh_testroot
@ -175,14 +161,8 @@ binary-common:
# dh_strip # dh_strip
dh_compress -X.py -X.bmp -X.ui -X.sql dh_compress -X.py -X.bmp -X.ui -X.sql
dh_fixperms dh_fixperms
ifneq (dh_pysupport,${DH_PYTHON2})
${DH_PYTHON2} --no-dbg-cleaning
else
${DH_PYTHON2}
endif
dh_python3 --no-dbg-cleaning dh_python3 --no-dbg-cleaning
dh_sip_tqt dh_py3sip_tqt
dh_sip3_tqt
dh_lintian dh_lintian
dh_installdeb dh_installdeb
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info

@ -1,3 +0,0 @@
version=3
http://www.riverbankcomputing.com/software/pyqt/download3 \
/static/Downloads/PyQt3/PyQt-x11-gpl-([.\d]*)\.tar\.gz

@ -4,45 +4,14 @@ Priority: optional
Maintainer: TDE Debian Team <team-debian@trinitydesktop.org> Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Torsten Marek <shlomme@debian.org>, Bernd Zeimetz <bzed@debian.org>, Michael Casadevall <mcasadevall@debian.org> Uploaders: Torsten Marek <shlomme@debian.org>, Bernd Zeimetz <bzed@debian.org>, Michael Casadevall <mcasadevall@debian.org>
Build-Depends: debhelper (>= 9~), python-all-dev (>= 2.3.5-10), python-all-dbg, python3-all-dev, python3-all-dbg, libtqtinterface-dev, tqt3-dev-tools, tqt3-apps-dev, python3-sip-tqt-dev, python3-sip-tqt-dbg, python-sip-tqt-dev, python-sip-tqt-dbg, libtqscintilla-dev, python-support (>= 0.7.1) | dh-python Build-Depends: debhelper (>= 9~), python3-all-dev, python3-all-dbg, libtqtinterface-dev, tqt3-dev-tools, tqt3-apps-dev, python3-sip-tqt-dev, python3-sip-tqt-dbg, libtqscintilla-dev, dh-python
Standards-Version: 3.8.4 Standards-Version: 3.8.4
XS-Python-Version: >= 2.3 XS-Python-Version: >= 2.3
X-Python3-Version: >= 3.0 X-Python3-Version: >= 3.0
Package: python-pytqt
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, ${sip-tqt:Depends}, ${misc:Depends}
Replaces: python-tqt
Breaks: python-tqt
Suggests: python-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql
Provides: ${python:Provides}
Description: TQt bindings for Python
Python binding module that allows use of TQt X Window toolkit v3.
You can use it to create portable graphics-capable scripts (there
are PyTQt versions for Linux, Windows and MacOS X).
.
At this moment PyTQt offers a vast subset of TQt API. There are
some minor issues related to the differences between C++ and Python
(types, etc), but usually you'll be able to write code pretty much the
same way in both languages (with syntax differences, of course)
Package: python-pytqt-dbg
Architecture: any
Priority: extra
Replaces: python-tqt-dbg
Breaks: python-tqt-dbg
Section: debug
Depends: ${shlibs:Depends}, python-all-dbg, python-pytqt (= ${binary:Version}), python-sip-tqt-dbg, ${misc:Depends}
Description: TQt bindings for Python (debug extension)
Python binding module that allows use of TQt X Window toolkit v3.
You can use it to create portable graphics-capable scripts (there
are PyTQt versions for Linux, Windows and MacOS X).
.
This package contains the extension built for the Python debug interpreter.
Package: python3-pytqt Package: python3-pytqt
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, ${sip3-tqt:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, ${py3sip-tqt:Depends}, ${misc:Depends}
Suggests: python3-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql Suggests: python3-pytqt-gl, pytqt-doc, libtqt3-mt-mysql|libtqt3-mt-odbc|libtqt3-mt-psql
Provides: ${python3:Provides} Provides: ${python3:Provides}
Replaces: python3-tqt Replaces: python3-tqt
@ -71,34 +40,6 @@ Description: TQt bindings for Python 3 (debug extension)
. .
This package contains the extension built for the Python debug interpreter. This package contains the extension built for the Python debug interpreter.
Package: python-pytqt-gl
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, python-pytqt (= ${binary:Version}), python-opengl (>= 2.0.1.09-2.2), ${misc:Depends}
Replaces: python-tqt-gl
Breaks: python-tqt-gl
Suggests: pytqt-doc
Provides: ${python:Provides}
Description: TQt OpenGL bindings for Python
Python binding module that allows use of the OpenGL facilities
offered by the TQt X Window toolkit v3. You can use it to create
portable graphics-capable scripts (there are PyTQt versions for
Linux, Windows and MacOS X).
Package: python-pytqt-gl-dbg
Priority: extra
Section: debug
Replaces: python-tqt-gl-dbg
Breaks: python-tqt-gl-dbg
Architecture: any
Depends: ${shlibs:Depends}, python-all-dbg, python-pytqt-gl (= ${binary:Version}), python-pytqt-dbg (= ${binary:Version}), ${misc:Depends}
Description: TQt OpenGL bindings for Python (debug extension)
Python binding module that allows use of the OpenGL facilities
offered by the TQt X Window toolkit v3. You can use it to create
portable graphics-capable scripts (there are PyTQt versions for
Linux, Windows and MacOS X).
.
This package contains the extension built for the Python debug interpreter.
Package: python3-pytqt-gl Package: python3-pytqt-gl
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), python3-opengl, ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), python3-opengl, ${misc:Depends}
@ -127,31 +68,6 @@ Description: TQt OpenGL bindings for Python 3 (debug extension)
. .
This package contains the extension built for the Python debug interpreter. This package contains the extension built for the Python debug interpreter.
Package: python-pytqtext
Architecture: any
Depends: ${shlibs:Depends}, ${python:Depends}, python-pytqt (= ${binary:Version}), ${misc:Depends}
Replaces: python-tqtext
Breaks: python-tqtext
Provides: ${python:Provides}
Description: TQt extensions for PyTQt
PyTQt Extensions. Contains:
.
* QScintilla: a featureful TQt source code editing component based
on Scintilla.
Package: python-pytqtext-dbg
Priority: extra
Section: debug
Replaces: python-tqtext-dbg
Breaks: python-tqtext-dbg
Architecture: any
Depends: ${shlibs:Depends}, python-all-dbg, python-pytqtext (= ${binary:Version}), python-pytqt-dbg (= ${binary:Version}), ${misc:Depends}
Description: TQt debug extensions for PyTQt
PyTQt debug Extensions. Contains:
.
* QScintilla: a featureful TQt source code editing component based
on Scintilla.
Package: python3-pytqtext Package: python3-pytqtext
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), ${misc:Depends} Depends: ${shlibs:Depends}, ${python3:Depends}, python3-pytqt (= ${binary:Version}), ${misc:Depends}
@ -161,7 +77,7 @@ Breaks: python3-tqtext
Description: TQt extensions for PyTQt Description: TQt extensions for PyTQt
PyTQt Extensions. Contains: PyTQt Extensions. Contains:
. .
* QScintilla: a featureful TQt source code editing component based * TQScintilla: a featureful TQt source code editing component based
on Scintilla. on Scintilla.
Package: python3-pytqtext-dbg Package: python3-pytqtext-dbg
@ -174,7 +90,7 @@ Breaks: python3-tqtext-dbg
Description: TQt debug extensions for PyTQt Description: TQt debug extensions for PyTQt
PyTQt debug Extensions. Contains: PyTQt debug Extensions. Contains:
. .
* QScintilla: a featureful TQt source code editing component based * TQScintilla: a featureful TQt source code editing component based
on Scintilla. on Scintilla.
Package: pytqt-tools Package: pytqt-tools
@ -190,8 +106,8 @@ Description: pyuic and pylupdate for TQt
Linguist translation files from Python code. Linguist translation files from Python code.
Package: pytqt-dev Package: pytqt-dev
Depends: python3-pytqt (= ${binary:Version}) | python-pytqt (= ${binary:Version}), ${misc:Depends} Depends: python3-pytqt (= ${binary:Version}), ${misc:Depends}
Suggests: python3-sip-tqt-dev | python-sip-tqt-dev Suggests: python3-sip-tqt-dev, sip-tqt-dev
Replaces: python-tqt-dev Replaces: python-tqt-dev
Breaks: python-tqt-dev Breaks: python-tqt-dev
Architecture: all Architecture: all
@ -206,7 +122,7 @@ Architecture: all
Replaces: python-tqt-doc Replaces: python-tqt-doc
Breaks: python-tqt-doc Breaks: python-tqt-doc
Depends: ${misc:Depends} Depends: ${misc:Depends}
Suggests: python3-pytqt | python-pytqt Suggests: python3-pytqt
Description: TQt bindings for Python - Documentation and examples Description: TQt bindings for Python - Documentation and examples
Documentation and examples for the PyTQt (bindings that allow Documentation and examples for the PyTQt (bindings that allow
the use of TQt library from within a Python script). the use of TQt library from within a Python script).

@ -1 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtgl.so

@ -1,7 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtcanvas.so
usr/lib/python2.*/*-packages/PyTQt/qtnetwork.so
usr/lib/python2.*/*-packages/PyTQt/qtsql.so
usr/lib/python2.*/*-packages/PyTQt/qttable.so
usr/lib/python2.*/*-packages/PyTQt/qtui.so
usr/lib/python2.*/*-packages/PyTQt/qtxml.so
usr/lib/python2.*/*-packages/PyTQt/qt.so

@ -1 +0,0 @@
usr/lib/python2.*/*-packages/PyTQt/qtext.so

@ -13,9 +13,13 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2) && echo xz || echo bzip2)
endif endif
export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DH_OPTIONS export DH_OPTIONS
-include /usr/share/python/python.mk -include /usr/share/python3/python.mk
ifeq (,$(py_sitename)) ifeq (,$(py_sitename))
py_sitename = site-packages py_sitename = site-packages
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
@ -37,10 +41,7 @@ else
endif endif
CXXFLAGS += "-I/usr/include/tqt" CXXFLAGS += "-I/usr/include/tqt"
PYTHONS := $(shell pyversions -vr debian/control) $(shell py3versions -vd) PYTHONS := $(shell py3versions -vd)
DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
DEB_PARALLEL_JOBS ?= 40 DEB_PARALLEL_JOBS ?= 40
@ -115,14 +116,6 @@ install-arch: build
dh_install -a --sourcedir=$(CURDIR)/debian/tmp dh_install -a --sourcedir=$(CURDIR)/debian/tmp
for i in $$(find debian/python-*-dbg -name '*.so'); do \
b=$$(basename $$i .so); \
mv $$i $$(dirname $$i)/$${b}_d.so; \
done
find debian/python-*-dbg ! -type d \
! \( -name '*.so' -o -name '*config_d.py' \) | xargs rm -f
find debian/python-*-dbg -depth -type d -empty -exec rmdir {} \;
for i in $$(find debian/python3-*-dbg -name '*.so'); do \ for i in $$(find debian/python3-*-dbg -name '*.so'); do \
b=$$(basename $$i .so); \ b=$$(basename $$i .so); \
mv $$i $$(dirname $$i)/$${b}_d.so; \ mv $$i $$(dirname $$i)/$${b}_d.so; \
@ -144,19 +137,6 @@ install-arch-3.%:
mv debian/python3-pytqt-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/qtext.so \ mv debian/python3-pytqt-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/qtext.so \
debian/python3-pytqtext-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/ debian/python3-pytqtext-dbg/usr/lib/python3.$*/$(call py_sitename,$$version)/PyTQt/
install-arch-%:
$(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
$(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-pytqt-dbg
mkdir -p debian/python-pytqt/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
cp -a debian/tmp/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/__init__.py \
debian/python-pytqt/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/__init__.py
mkdir -p debian/python-pytqt-gl-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
mv debian/python-pytqt-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/qtgl.so \
debian/python-pytqt-gl-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/
mkdir -p debian/python-pytqtext-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt
mv debian/python-pytqt-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/qtext.so \
debian/python-pytqtext-dbg/usr/lib/python$*/$(call py_sitename,$$version)/PyTQt/
clean: clean:
dh_testdir dh_testdir
dh_testroot dh_testroot
@ -178,8 +158,7 @@ binary-common:
ifeq (,$(findstring -i, $(DH_OPTIONS))) ifeq (,$(findstring -i, $(DH_OPTIONS)))
DH_OPTIONS= dh_strip -ppytqt-tools DH_OPTIONS= dh_strip -ppytqt-tools
set -e; \ set -e; \
for p in python-pytqt python-pytqt-gl python-pytqtext \ for p in python3-pytqt python3-pytqt-gl python3-pytqtext; do \
python3-pytqt python3-pytqt-gl python3-pytqtext; do \
DH_OPTIONS= dh_strip -p$$p --dbg-package=$$p-dbg; \ DH_OPTIONS= dh_strip -p$$p --dbg-package=$$p-dbg; \
rm -rf debian/$$p-dbg/usr/share/doc/$$p-dbg; \ rm -rf debian/$$p-dbg/usr/share/doc/$$p-dbg; \
ln -s $$p debian/$$p-dbg/usr/share/doc/$$p-dbg; \ ln -s $$p debian/$$p-dbg/usr/share/doc/$$p-dbg; \
@ -188,14 +167,8 @@ endif
# dh_strip # dh_strip
dh_compress -X.py -X.bmp -X.ui -X.sql dh_compress -X.py -X.bmp -X.ui -X.sql
dh_fixperms dh_fixperms
ifneq (dh_pysupport,${DH_PYTHON2})
${DH_PYTHON2} --no-dbg-cleaning
else
${DH_PYTHON2}
endif
dh_python3 --no-dbg-cleaning dh_python3 --no-dbg-cleaning
dh_sip_tqt dh_py3sip_tqt
dh_sip3_tqt
dh_lintian dh_lintian
dh_installdeb dh_installdeb
dh_shlibdeps dh_shlibdeps

Loading…
Cancel
Save