summaryrefslogtreecommitdiffstats
path: root/debian/_base
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-01-14 16:37:07 +0900
committerSlávek Banko <slavek.banko@axis.cz>2023-01-16 01:50:08 +0100
commit34de7371f00209152fbd0934c256528eee992a96 (patch)
treeaacce98d2a49046245964e38410494220cf2e176 /debian/_base
parent5043679baaff8cb129115058779d4889faa69c21 (diff)
downloadtde-packaging-34de7371f00209152fbd0934c256528eee992a96.tar.gz
tde-packaging-34de7371f00209152fbd0934c256528eee992a96.zip
DEB tdeaddons: drop python2 support.
Use dh_python3 to ensure Python dependencies and rewrite shebang in installed scripts. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'debian/_base')
-rw-r--r--debian/_base/core/tdeaddons/debian/control6
-rwxr-xr-xdebian/_base/core/tdeaddons/debian/rules12
2 files changed, 11 insertions, 7 deletions
diff --git a/debian/_base/core/tdeaddons/debian/control b/debian/_base/core/tdeaddons/debian/control
index aa0c6b78d..3b39d6634 100644
--- a/debian/_base/core/tdeaddons/debian/control
+++ b/debian/_base/core/tdeaddons/debian/control
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
XSBC-Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: Ana Beatriz Guerrero Lopez <ana@debian.org>, Christopher Martin <chrsmrtn@debian.org>
-Build-Depends: cdbs, debhelper (>= 9~), quilt, tde-cmake, ninja-build, tdelibs14-trinity-dev, atlantik-trinity-dev, tdebase-trinity-dev, tdemultimedia-trinity-dev, libtdegames-trinity-dev, libkonq4-trinity-dev, tdepim-trinity-dev, libsdl1.2-dev (>= 1.2.2-3.3), libssl-dev (>= 0.9.6), libdb4.8++-dev | libdb++-dev, libogg-dev
+Build-Depends: cdbs, debhelper (>= 9~), quilt, tde-cmake, ninja-build, tdelibs14-trinity-dev, atlantik-trinity-dev, tdebase-trinity-dev, tdemultimedia-trinity-dev, libtdegames-trinity-dev, libkonq4-trinity-dev, tdepim-trinity-dev, libsdl1.2-dev (>= 1.2.2-3.3), libssl-dev (>= 0.9.6), libdb4.8++-dev | libdb++-dev, libogg-dev, dh-python
Standards-Version: 3.8.4
Package: tdeaddons-trinity
@@ -152,7 +152,7 @@ Architecture: all
Section: tde
Replaces: knewsticker-scripts-trinity (<< 4:14.0.0~)
Breaks: knewsticker-scripts-trinity (<< 4:14.0.0~)
-Depends: ${perl:Depends}, python-all, libfinance-quote-perl, libmime-tools-perl, libnews-nntpclient-perl, libwww-perl
+Depends: ${perl:Depends}, ${python3:Depends}, libfinance-quote-perl, libmime-tools-perl, libnews-nntpclient-perl, libwww-perl
Recommends: knewsticker-trinity
Enhances: knewsticker-trinity
Description: scripts for KNewsTicker, the Trinity news ticker
@@ -171,7 +171,7 @@ Architecture: any
Section: tde
Replaces: konq-plugins-trinity (<< 4:14.0.0~)
Breaks: konq-plugins-trinity (<< 4:14.0.0~)
-Depends: ${shlibs:Depends}, libjpeg-turbo-progs | libjpeg-progs, python-all, rsync, unison
+Depends: ${shlibs:Depends}, ${python3:Depends}, libjpeg-turbo-progs | libjpeg-progs, rsync, unison
Recommends: akregator-trinity, ark-trinity, imagemagick
Suggests: khelpcenter-trinity, tdeaddons-trinity-doc-html
Enhances: konqueror-trinity, akregator-trinity
diff --git a/debian/_base/core/tdeaddons/debian/rules b/debian/_base/core/tdeaddons/debian/rules
index 7cd88847d..9dca91731 100755
--- a/debian/_base/core/tdeaddons/debian/rules
+++ b/debian/_base/core/tdeaddons/debian/rules
@@ -31,11 +31,15 @@ DOC_HTML_PRUNE := konq-plugins-trinity/smbmounter
binary-install/tdeaddons-tdefile-plugins-trinity::
install -p -D -m644 renamedlgplugins/README \
- debian/tdeaddons-tdefile-plugins-trinity/opt/trinity/share/doc/tdeaddons-tdefile-plugins/README.renamedlgplugins
+ debian/$(cdbs_curpkg)/opt/trinity/share/doc/tdeaddons-tdefile-plugins/README.renamedlgplugins
binary-install/knewsticker-scripts-trinity::
- chmod 755 debian/knewsticker-scripts-trinity/opt/trinity/share/apps/knewsticker/scripts/*.pl
- chmod 755 debian/knewsticker-scripts-trinity/opt/trinity/share/apps/knewsticker/scripts/*.py
+ chmod 755 debian/$(cdbs_curpkg)/opt/trinity/share/apps/knewsticker/scripts/*.pl
+ chmod 755 debian/$(cdbs_curpkg)/opt/trinity/share/apps/knewsticker/scripts/*.py
+ dh_python3 -p $(cdbs_curpkg) --shebang=/usr/bin/python3 /opt/trinity/share/apps/knewsticker/scripts
binary-install/kate-plugins-trinity::
- chmod 755 debian/kate-plugins-trinity/opt/trinity/share/apps/kate/scripts/html-tidy.sh
+ chmod 755 debian/$(cdbs_curpkg)/opt/trinity/share/apps/kate/scripts/html-tidy.sh
+
+binary-install/konq-plugins-trinity::
+ dh_python3 -p $(cdbs_curpkg) --shebang=/usr/bin/python3 /opt/trinity/share/apps/imagerotation