diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-24 17:48:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-24 18:03:58 +0000 |
commit | 9e23ee4daa1037da52b0076f59537c12c9618c52 (patch) | |
tree | 38c5e0401923ae8089885269099f70cc2eb275c6 | |
parent | Adding build-depends to pybuild-plugin-pyproject for PEP517 support. (diff) | |
download | deluge-9e23ee4daa1037da52b0076f59537c12c9618c52.tar.xz deluge-9e23ee4daa1037da52b0076f59537c12c9618c52.zip |
Updating packaging for new upstream version.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | debian/deluge-common.install | 2 | ||||
-rw-r--r-- | debian/deluge-gtk.install | 2 | ||||
-rw-r--r-- | debian/deluged.install | 1 | ||||
-rwxr-xr-x | debian/rules | 22 |
4 files changed, 12 insertions, 15 deletions
diff --git a/debian/deluge-common.install b/debian/deluge-common.install index f25debf..f56cf24 100644 --- a/debian/deluge-common.install +++ b/debian/deluge-common.install @@ -1,4 +1,4 @@ -usr/lib/python*/*-packages/*.egg-info +usr/lib/python*/*-packages/*.dist-info usr/lib/python*/*-packages/deluge/*.py usr/lib/python*/*-packages/deluge/core/*.py usr/lib/python*/*-packages/deluge/i18n/* diff --git a/debian/deluge-gtk.install b/debian/deluge-gtk.install index 7458250..86054e8 100644 --- a/debian/deluge-gtk.install +++ b/debian/deluge-gtk.install @@ -1,5 +1,5 @@ usr/bin/deluge-gtk usr/lib/python*/*-packages/deluge/ui/gtk3/* -usr/share/applications/* usr/share/icons/* usr/share/man/man1/deluge-gtk.1 +deluge/ui/data/share/applications/deluge.desktop /usr/share/applications diff --git a/debian/deluged.install b/debian/deluged.install index 4b72b58..35f1157 100644 --- a/debian/deluged.install +++ b/debian/deluged.install @@ -1,4 +1,3 @@ packaging/systemd/deluged.service lib/systemd/system usr/bin/deluged -usr/share/appdata/deluge.appdata.xml usr/share/man/man1/deluged.1 diff --git a/debian/rules b/debian/rules index 846c76e..8f33b31 100755 --- a/debian/rules +++ b/debian/rules @@ -2,25 +2,22 @@ SHELL := sh -e +VERSION := $(shell dpkg-parsechangelog -SVersion | sed -e 's|~dev|.dev|' -e 's|+.*||') + %: dh ${@} --buildsystem=pybuild --with=python3 -execute_after_dh_auto_test: - find . -type d -name '*.egg-info' | xargs rm -rf - find . -type d -name '.eggs' | xargs rm -rf - find . -type d -wholename './deluge/plugins/*/build' | xargs rm -rf - - rm -f deluge/data/share/applications/deluge.desktop +execute_after_dh_auto_clean: + rm -f RELEASE-VERSION -override_dh_auto_build: - python3 setup.py build +execute_before_dh_auto_build: + echo "$(VERSION)" > RELEASE-VERSION override_dh_auto_test: # disabled -override_dh_auto_install: - python3 setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb - +execute_after_dh_auto_install: + # unpacking plugins cd debian/tmp/usr/lib/python*/*-packages/deluge/plugins/; \ for EGG in *.egg; \ do \ @@ -29,4 +26,5 @@ override_dh_auto_install: rm -f $${EGG}; \ done - find . -type d -name '__pycache__' | xargs rm -rf + # removing unused files + find debian/tmp -type d -name '__pycache__' | xargs rm -rf |