]>
Commit | Line | Data |
---|---|---|
8ef55120 | 1 | Summary: A Python BitTorrent client with support for UPnP and DHT |
e32279da | 2 | Summary(pl.UTF-8): Klient BitTorrenta napisany w Pythonie ze wspraciem dla UPnP i DHT |
8ef55120 | 3 | Name: deluge |
78268ee7 | 4 | Version: 2.1.1 |
1b1dcb95 | 5 | Release: 2 |
6876e0bc | 6 | License: GPL v3 |
8ef55120 | 7 | Group: X11/Applications/Networking |
78268ee7 JR |
8 | Source0: https://ftp.osuosl.org/pub/deluge/source/2.1/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 2f132a55217fd250967678c9a555bad5 | |
1b1dcb95 JB |
10 | Patch0: %{name}-no-wheel.patch |
11 | URL: https://deluge-torrent.org/ | |
78268ee7 | 12 | BuildRequires: closure-compiler |
1b1dcb95 JB |
13 | BuildRequires: intltool |
14 | BuildRequires: python3 >= 1:3.6 | |
78268ee7 | 15 | BuildRequires: python3-setuptools |
e32279da | 16 | BuildRequires: rpm-pythonprov |
8f2b3446 | 17 | BuildRequires: rpmbuild(macros) >= 1.710 |
1b1dcb95 JB |
18 | BuildRequires: tar >= 1:1.22 |
19 | BuildRequires: xz | |
4592f8b3 | 20 | Requires(post,postun): gtk-update-icon-cache |
9c853ddd | 21 | Requires(post,postun): hicolor-icon-theme |
8ef55120 | 22 | Requires: /bin/sh |
78268ee7 | 23 | Requires: GConf2 |
a8bb1686 | 24 | Requires: hicolor-icon-theme |
78268ee7 | 25 | Requires: libappindicator-gtk3 |
b999ba99 | 26 | # for svg pixbuf loader |
ef91286c | 27 | Requires: librsvg |
78268ee7 JR |
28 | Requires: python3-Mako |
29 | Requires: python3-pyasn1 | |
30 | Requires: python3-twisted >= 17.1 | |
31 | Requires: python3-chardet | |
32 | Requires: python3-dbus | |
33 | Requires: python3-distro | |
34 | Requires: python3-libtorrent-rasterbar >= 1.2.0 | |
35 | Requires: python3-ifaddr | |
36 | Requires: python3-pillow | |
37 | Requires: python3-pyOpenSSL | |
38 | Requires: python3-pycairo | |
39 | Requires: python3-pygobject3 | |
40 | Requires: python3-pyxdg | |
41 | Requires: python3-service_identity | |
42 | Requires: python3-setproctitle | |
43 | Requires: python3-setuptools | |
44 | Requires: python3-zope.interface | |
b999ba99 | 45 | Requires: xdg-utils |
46 | Suggests: GeoIP-db-Country | |
78268ee7 JR |
47 | Suggests: libnotify |
48 | Suggests: python3-pygame | |
49 | BuildArch: noarch | |
8ef55120 | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
52 | %description | |
53 | Deluge is a new BitTorrent client, created using Python and GTK+. It | |
54 | is intended to bring a native, full-featured client to Linux GTK+ | |
55 | desktop environments such as GNOME and XFCE. It supports features such | |
56 | as DHT (Distributed Hash Tables) and UPnP (Universal Plug-n-Play) that | |
57 | allow one to more easily share BitTorrent data even from behind a | |
58 | router with virtually zero configuration of port-forwarding. | |
59 | ||
e32279da JB |
60 | %description -l pl.UTF-8 |
61 | Deluge to nowy klient BitTorrenta stworzony przy użyciu Pythona i | |
62 | GTK+. Jego celem jest dostarczenie natywnego, w pełni funkcjonalnego | |
63 | klienta dla środowisk GTK+ pod Linuksem, takich jak GNOME czy XFCE. | |
64 | Obsługuje m.in. DHT (Distributed Hash Tables) i UPnP (Universal | |
65 | Plug-n-Play), co pozwala łatwiej współdzielić dane BitTorrenta nawet | |
66 | zza routera praktycznie bez konfiguracji przekierowywania portów. | |
67 | ||
8ef55120 | 68 | %prep |
1fc6e2c4 | 69 | %setup -q |
1b1dcb95 | 70 | %patch0 -p1 |
8ef55120 | 71 | |
72 | %build | |
78268ee7 | 73 | %py3_build |
8ef55120 | 74 | |
8ef55120 | 75 | %install |
76 | rm -rf $RPM_BUILD_ROOT | |
1b1dcb95 | 77 | |
78268ee7 | 78 | %py3_install --skip-build |
8ef55120 | 79 | |
1b1dcb95 JB |
80 | # nap,pms not supported in glibc (as for 2.14-15) |
81 | # iu,te,tlh,ur empty (as of deluge 2.1.1) | |
82 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{name}/i18n/{iu,nap,pms,te,tlh,ur} | |
78268ee7 JR |
83 | |
84 | # move lang files into %{_localedir}, find_lang does not work on | |
a7478bf1 | 85 | # this. Looks really ugly, if you know a better way please do use it :) |
86 | install -d $RPM_BUILD_ROOT%{_localedir} | |
78268ee7 JR |
87 | for f in $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{name}/i18n/[a-z]* ; do |
88 | [ -d "$f" ] || continue | |
89 | %{__mv} $f $RPM_BUILD_ROOT%{_localedir} | |
90 | ln -sr $RPM_BUILD_ROOT%{_localedir}/$(basename $f) $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{name}/i18n/ | |
91 | done | |
a7478bf1 | 92 | |
538f310d | 93 | %find_lang %{name} |
8ef55120 | 94 | |
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
a8bb1686 | 98 | %post |
99 | %update_icon_cache hicolor | |
100 | ||
101 | %postun | |
102 | %update_icon_cache hicolor | |
103 | ||
538f310d | 104 | %files -f %{name}.lang |
8ef55120 | 105 | %defattr(644,root,root,755) |
78268ee7 | 106 | %doc CHANGELOG.md README.md |
538f310d | 107 | %attr(755,root,root) %{_bindir}/deluge |
b999ba99 | 108 | %attr(755,root,root) %{_bindir}/deluge-console |
109 | %attr(755,root,root) %{_bindir}/deluge-gtk | |
110 | %attr(755,root,root) %{_bindir}/deluge-web | |
538f310d | 111 | %attr(755,root,root) %{_bindir}/deluged |
78268ee7 JR |
112 | %dir %{py3_sitescriptdir}/%{name} |
113 | %dir %{py3_sitescriptdir}/%{name}/core | |
114 | %dir %{py3_sitescriptdir}/%{name}/i18n | |
115 | %dir %{py3_sitescriptdir}/%{name}/plugins | |
116 | %dir %{py3_sitescriptdir}/%{name}/ui | |
117 | %dir %{py3_sitescriptdir}/%{name}/ui/console | |
118 | %dir %{py3_sitescriptdir}/%{name}/ui/console/cmdline | |
119 | %dir %{py3_sitescriptdir}/%{name}/ui/console/cmdline/commands | |
120 | %dir %{py3_sitescriptdir}/%{name}/ui/console/modes | |
121 | %dir %{py3_sitescriptdir}/%{name}/ui/console/modes/preferences | |
122 | %dir %{py3_sitescriptdir}/%{name}/ui/console/modes/torrentlist | |
123 | %dir %{py3_sitescriptdir}/%{name}/ui/console/utils | |
124 | %dir %{py3_sitescriptdir}/%{name}/ui/console/widgets | |
125 | %dir %{py3_sitescriptdir}/%{name}/ui/data | |
126 | %dir %{py3_sitescriptdir}/%{name}/ui/data/pixmaps | |
127 | %dir %{py3_sitescriptdir}/%{name}/ui/data/pixmaps/flags | |
128 | %dir %{py3_sitescriptdir}/%{name}/ui/gtk3 | |
129 | %dir %{py3_sitescriptdir}/%{name}/ui/gtk3/glade | |
130 | %dir %{py3_sitescriptdir}/%{name}/ui/web | |
131 | %{py3_sitescriptdir}/%{name}/__pycache__ | |
132 | %{py3_sitescriptdir}/%{name}/*.py | |
133 | %{py3_sitescriptdir}/%{name}/core/__pycache__ | |
134 | %{py3_sitescriptdir}/%{name}/core/*.py | |
135 | %{py3_sitescriptdir}/%{name}/i18n/__pycache__ | |
136 | %{py3_sitescriptdir}/%{name}/i18n/*.py | |
137 | %{py3_sitescriptdir}/%{name}/i18n/[a-z][a-z] | |
138 | %{py3_sitescriptdir}/%{name}/i18n/[a-z][a-z][a-z] | |
139 | %{py3_sitescriptdir}/%{name}/i18n/[a-z][a-z]_[A-Z][A-Z] | |
140 | %{py3_sitescriptdir}/%{name}/plugins/__pycache__ | |
141 | %{py3_sitescriptdir}/%{name}/plugins/*.py | |
142 | %{py3_sitescriptdir}/%{name}/plugins/*.egg | |
143 | %{py3_sitescriptdir}/%{name}/ui/__pycache__ | |
144 | %{py3_sitescriptdir}/%{name}/ui/*.py | |
145 | %{py3_sitescriptdir}/%{name}/ui/console/__pycache__ | |
146 | %{py3_sitescriptdir}/%{name}/ui/console/*.py | |
147 | %{py3_sitescriptdir}/%{name}/ui/console/cmdline/__pycache__ | |
148 | %{py3_sitescriptdir}/%{name}/ui/console/cmdline/*.py | |
149 | %{py3_sitescriptdir}/%{name}/ui/console/cmdline/commands/__pycache__ | |
150 | %{py3_sitescriptdir}/%{name}/ui/console/cmdline/commands/*.py | |
151 | %{py3_sitescriptdir}/%{name}/ui/console/modes/__pycache__ | |
152 | %{py3_sitescriptdir}/%{name}/ui/console/modes/*.py | |
153 | %{py3_sitescriptdir}/%{name}/ui/console/modes/preferences/__pycache__ | |
154 | %{py3_sitescriptdir}/%{name}/ui/console/modes/preferences/*.py | |
155 | %{py3_sitescriptdir}/%{name}/ui/console/modes/torrentlist/__pycache__ | |
156 | %{py3_sitescriptdir}/%{name}/ui/console/modes/torrentlist/*.py | |
157 | %{py3_sitescriptdir}/%{name}/ui/console/utils/__pycache__ | |
158 | %{py3_sitescriptdir}/%{name}/ui/console/utils/*.py | |
159 | %{py3_sitescriptdir}/%{name}/ui/console/widgets/__pycache__ | |
160 | %{py3_sitescriptdir}/%{name}/ui/console/widgets/*.py | |
161 | %{py3_sitescriptdir}/%{name}/ui/data/pixmaps/*.gif | |
162 | %{py3_sitescriptdir}/%{name}/ui/data/pixmaps/*.ico | |
163 | %{py3_sitescriptdir}/%{name}/ui/data/pixmaps/*.png | |
164 | %{py3_sitescriptdir}/%{name}/ui/data/pixmaps/*.svg | |
165 | %{py3_sitescriptdir}/%{name}/ui/data/pixmaps/flags/*.png | |
166 | %{py3_sitescriptdir}/%{name}/ui/gtk3/__pycache__ | |
167 | %{py3_sitescriptdir}/%{name}/ui/gtk3/*.py | |
168 | %{py3_sitescriptdir}/%{name}/ui/gtk3/glade/*.ui | |
169 | %{py3_sitescriptdir}/%{name}/ui/web/__pycache__ | |
170 | %{py3_sitescriptdir}/%{name}/ui/web/*.py | |
171 | %{py3_sitescriptdir}/%{name}/ui/web/css | |
172 | %{py3_sitescriptdir}/%{name}/ui/web/icons | |
173 | %{py3_sitescriptdir}/%{name}/ui/web/images | |
174 | %{py3_sitescriptdir}/%{name}/ui/web/index.html | |
175 | %{py3_sitescriptdir}/%{name}/ui/web/js | |
176 | %{py3_sitescriptdir}/%{name}/ui/web/render | |
177 | %{py3_sitescriptdir}/%{name}/ui/web/themes | |
178 | %{py3_sitescriptdir}/%{name}-*-py*.egg-info | |
1b1dcb95 | 179 | %{_datadir}/appdata/deluge.appdata.xml |
8ef55120 | 180 | %{_desktopdir}/%{name}.desktop |
d9a27a6d | 181 | %{_pixmapsdir}/%{name}.png |
78268ee7 JR |
182 | %{_iconsdir}/hicolor/*x*/apps/deluge.png |
183 | %{_iconsdir}/hicolor/*x*/apps/deluge-panel.png | |
7290717e | 184 | %{_iconsdir}/hicolor/scalable/apps/deluge.svg |
538f310d JB |
185 | %{_mandir}/man1/deluge.1* |
186 | %{_mandir}/man1/deluged.1* | |
b999ba99 | 187 | %{_mandir}/man1/deluge-console.1* |
188 | %{_mandir}/man1/deluge-gtk.1* | |
189 | %{_mandir}/man1/deluge-web.1* |