| |
@@ -1,6 +1,6 @@
|
| |
Name: deluge
|
| |
Version: 2.0.3
|
| |
- Release: 8%{?dist}
|
| |
+ Release: 9%{?dist}
|
| |
Summary: A GTK+ BitTorrent client with support for DHT, UPnP, and PEX
|
| |
License: GPLv3 with exceptions
|
| |
URL: http://deluge-torrent.org/
|
| |
@@ -11,6 +11,11 @@
|
| |
|
| |
# https://git.deluge-torrent.org/deluge/patch/?id=eeeb7fb69b73cca40a27662997f2d21cec6ed33f
|
| |
Patch0: deluge-2.0.3-gtk-status.patch
|
| |
+ # https://git.deluge-torrent.org/deluge/commit/?h=develop&id=351664ec071daa04161577c6a1c949ed0f2c3206
|
| |
+ # https://git.deluge-torrent.org/deluge/commit/?h=develop&id=5e06aee5c8846f94bd5fcc209132dacf06de781f
|
| |
+ Patch1: deluge-2.0.3-logging-fix-python-3.8-compatibility.patch
|
| |
+ # https://git.deluge-torrent.org/deluge/commit/?h=develop&id=5e06aee5c8846f94bd5fcc209132dacf06de781f
|
| |
+ Patch2: deluge-2.0.3-fix-cmp-function-for-none-types.patch
|
| |
|
| |
BuildArch: noarch
|
| |
BuildRequires: desktop-file-utils
|
| |
@@ -20,6 +25,7 @@
|
| |
BuildRequires: intltool
|
| |
BuildRequires: rb_libtorrent-python3
|
| |
BuildRequires: libappstream-glib
|
| |
+ BuildRequires: systemd-rpm-macros
|
| |
|
| |
## add Requires to make into Meta package
|
| |
Requires: %{name}-common = %{version}-%{release}
|
| |
@@ -41,17 +47,9 @@
|
| |
%package common
|
| |
Summary: Files common to Deluge sub packages
|
| |
License: GPLv3 with exceptions
|
| |
- Requires: python3-setuptools
|
| |
- Requires: python3-pyOpenSSL
|
| |
- Requires: python3-chardet
|
| |
- Requires: python3-pygame
|
| |
- Requires: python3-setproctitle
|
| |
- Requires: python3-pyxdg
|
| |
Requires: rb_libtorrent-python3
|
| |
- Requires: python3-twisted
|
| |
- Requires: python3-GeoIP
|
| |
- Requires: python3-rencode
|
| |
Requires: python3-service-identity
|
| |
+ Recommends: python3-GeoIP
|
| |
|
| |
|
| |
%description common
|
| |
@@ -70,6 +68,8 @@
|
| |
Requires: python3-gobject
|
| |
Requires: libappindicator-gtk3
|
| |
Requires: librsvg2
|
| |
+ Recommends: python3-dbus
|
| |
+ Recommends: python3-pygame
|
| |
|
| |
%description gtk
|
| |
Deluge bittorent client GTK graphical user interface
|
| |
@@ -104,10 +104,6 @@
|
| |
License: GPLv3 with exceptions
|
| |
Requires: %{name}-common = %{version}-%{release}
|
| |
Requires(pre): shadow-utils
|
| |
- Requires(post): systemd
|
| |
- Requires(preun): systemd
|
| |
- Requires(postun): systemd
|
| |
- BuildRequires: systemd
|
| |
|
| |
%description daemon
|
| |
Files for the Deluge daemon
|
| |
@@ -116,17 +112,17 @@
|
| |
%autosetup -p1
|
| |
|
| |
%build
|
| |
- CFLAGS="%{optflags}" %{__python3} setup.py build
|
| |
+ %py3_build
|
| |
|
| |
%install
|
| |
+ %py3_install
|
| |
+
|
| |
# http://dev.deluge-torrent.org/ticket/2034
|
| |
mkdir -p %{buildroot}%{_unitdir}
|
| |
install -m644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}-daemon.service
|
| |
install -m644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}-web.service
|
| |
mkdir -p %{buildroot}/var/lib/%{name}
|
| |
|
| |
- %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
| |
-
|
| |
desktop-file-install \
|
| |
--dir %{buildroot}%{_datadir}/applications \
|
| |
--copy-name-to-generic-name \
|
| |
@@ -189,13 +185,13 @@
|
| |
%{python3_sitelib}/%{name}/ui/data
|
| |
# if someone decides to only install images
|
| |
%dir %{python3_sitelib}/%{name}
|
| |
- %{_datadir}/icons/hicolor/*/apps/%{name}*
|
| |
- %{_datadir}/pixmaps/%{name}.*
|
| |
|
| |
%files gtk
|
| |
%{_bindir}/%{name}
|
| |
%{_bindir}/%{name}-gtk
|
| |
%{_datadir}/applications/%{name}.desktop
|
| |
+ %{_datadir}/icons/hicolor/*/apps/%{name}*
|
| |
+ %{_datadir}/pixmaps/%{name}.*
|
| |
%{_metainfodir}/%{name}.appdata.xml
|
| |
%{python3_sitelib}/%{name}/ui/gtk3
|
| |
%{_mandir}/man?/%{name}-gtk*
|
| |
@@ -245,6 +241,13 @@
|
| |
%systemd_postun_with_restart deluge-web.service
|
| |
|
| |
%changelog
|
| |
+ * Sat Jul 11 2020 Aleksei Bavshin <alebastr89@gmail.com> - 2.0.3-9
|
| |
+ - Add patch for Python 3.8 logging API changes
|
| |
+ - Add patch for 'NoneType' cmp error (#1775962, #1812790, #1830593, #1836670)
|
| |
+ - Change optional deps to Recommends and move pygame to the deluge-gtk.
|
| |
+ - Remove duplicates of autogenerated Requires.
|
| |
+ - Use python packaging macros
|
| |
+
|
| |
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.0.3-8
|
| |
- Rebuilt for Python 3.9
|
| |
|
| |
Thanks for maintaining the deluge package!
I did some changes to reduce footprint of deluge-daemon + deluge-web installation by ~150Mb (about half the size of container image built from fedora-minimal). I also added patches for a couple of annoying Python 3 bugs and removed duplicates of automatically picked Requires.
Let me know if you have any questions/suggestions on these changes.
One thing I didn't do is to install upstream systemd services from
deluge-2.0.3/packaging/systemd
. I prepared the commit with this change, but I don't quite agree with defaultUMask=007
and the way upstream injectsUser
into the service.Maybe it's worth patching service files before installing, but this gives a little benefit over continuing with existing downstream files.