]>
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 |
e6a11a6e | 4 | Version: 1.3.4 |
d03c3621 | 5 | Release: 1 |
6876e0bc | 6 | License: GPL v3 |
8ef55120 | 7 | Group: X11/Applications/Networking |
e6a11a6e AF |
8 | Source0: http://download.deluge-torrent.org/source/%{name}-%{version}.tar.lzma |
9 | # Source0-md5: 1e9412024e5fda26356c54c28617941d | |
e32279da | 10 | URL: http://deluge-torrent.org/ |
e32279da | 11 | BuildRequires: python-devel >= 1:2.5 |
b999ba99 | 12 | BuildRequires: python-libtorrent-rasterbar |
6a6dbb98 | 13 | BuildRequires: python-setuptools |
e32279da | 14 | BuildRequires: rpm-pythonprov |
9c853ddd | 15 | BuildRequires: rpmbuild(macros) >= 1.311 |
4592f8b3 | 16 | Requires(post,postun): gtk-update-icon-cache |
9c853ddd | 17 | Requires(post,postun): hicolor-icon-theme |
8ef55120 | 18 | Requires: /bin/sh |
a8bb1686 | 19 | Requires: hicolor-icon-theme |
b999ba99 | 20 | # for svg pixbuf loader |
ef91286c | 21 | Requires: librsvg |
b999ba99 | 22 | Requires: python-Mako |
23 | Requires: python-TwistedCore >= 8.1 | |
34eb8c25 | 24 | Requires: python-TwistedCore-ssl >= 8.1 |
b999ba99 | 25 | Requires: python-TwistedWeb >= 8.1 |
26 | Requires: python-chardet | |
8ef55120 | 27 | Requires: python-dbus |
bd7508ad | 28 | Requires: python-libtorrent-rasterbar >= 0.14.9 |
b999ba99 | 29 | Requires: python-pyOpenSSL |
30 | Requires: python-pygame | |
31 | Requires: python-pygtk-glade >= 2:2.12 | |
32 | Requires: python-pygtk-gtk >= 2:2.12 | |
33 | Requires: python-pynotify | |
8ef55120 | 34 | Requires: python-pyxdg |
d18e406a | 35 | Requires: python-setuptools |
b999ba99 | 36 | Requires: xdg-utils |
37 | Suggests: GeoIP-db-Country | |
8ef55120 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | Deluge is a new BitTorrent client, created using Python and GTK+. It | |
42 | is intended to bring a native, full-featured client to Linux GTK+ | |
43 | desktop environments such as GNOME and XFCE. It supports features such | |
44 | as DHT (Distributed Hash Tables) and UPnP (Universal Plug-n-Play) that | |
45 | allow one to more easily share BitTorrent data even from behind a | |
46 | router with virtually zero configuration of port-forwarding. | |
47 | ||
e32279da JB |
48 | %description -l pl.UTF-8 |
49 | Deluge to nowy klient BitTorrenta stworzony przy użyciu Pythona i | |
50 | GTK+. Jego celem jest dostarczenie natywnego, w pełni funkcjonalnego | |
51 | klienta dla środowisk GTK+ pod Linuksem, takich jak GNOME czy XFCE. | |
52 | Obsługuje m.in. DHT (Distributed Hash Tables) i UPnP (Universal | |
53 | Plug-n-Play), co pozwala łatwiej współdzielić dane BitTorrenta nawet | |
54 | zza routera praktycznie bez konfiguracji przekierowywania portów. | |
55 | ||
8ef55120 | 56 | %prep |
1fc6e2c4 | 57 | %setup -q |
8ef55120 | 58 | |
59 | %build | |
e32279da JB |
60 | %ifarch %{x8664} ppc64 sparc64 |
61 | CFLAGS="%{rpmcflags} -DAMD64" %{__python} setup.py build | |
8ef55120 | 62 | %else |
e32279da | 63 | CFLAGS="%{rpmcflags}" %{__python} setup.py build |
8ef55120 | 64 | %endif |
65 | ||
8ef55120 | 66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT | |
69 | ||
6a6dbb98 | 70 | # move lang files into %{_datadir}/locale, find_lang does not work on |
a7478bf1 | 71 | # this. Looks really ugly, if you know a better way please do use it :) |
72 | install -d $RPM_BUILD_ROOT%{_localedir} | |
b999ba99 | 73 | mv -f $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/i18n/* $RPM_BUILD_ROOT%{_localedir} |
74 | # clean *.py files from the package, macro doesn't catch those | |
75 | find $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name} -name '*.py' -exec %{__rm} {} \; | |
a7478bf1 | 76 | |
d03c3621 AF |
77 | # not supported in glibc (as for 2.14-15) |
78 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{pms,lb} | |
a7478bf1 | 79 | |
7290717e | 80 | # Move svg icon to proper place |
81 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps | |
82 | mv -f $RPM_BUILD_ROOT%{_iconsdir}/scalable/apps/deluge.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/ | |
83 | ||
538f310d | 84 | %find_lang %{name} |
8ef55120 | 85 | |
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
a8bb1686 | 89 | %post |
90 | %update_icon_cache hicolor | |
91 | ||
92 | %postun | |
93 | %update_icon_cache hicolor | |
94 | ||
538f310d | 95 | %files -f %{name}.lang |
8ef55120 | 96 | %defattr(644,root,root,755) |
6876e0bc | 97 | %doc ChangeLog README |
538f310d | 98 | %attr(755,root,root) %{_bindir}/deluge |
b999ba99 | 99 | %attr(755,root,root) %{_bindir}/deluge-console |
100 | %attr(755,root,root) %{_bindir}/deluge-gtk | |
101 | %attr(755,root,root) %{_bindir}/deluge-web | |
538f310d | 102 | %attr(755,root,root) %{_bindir}/deluged |
786e95e3 | 103 | %{_pixmapsdir}/%{name}.xpm |
b999ba99 | 104 | %dir %{py_sitescriptdir}/%{name} |
105 | %dir %{py_sitescriptdir}/%{name}/core | |
106 | %dir %{py_sitescriptdir}/%{name}/data | |
107 | %dir %{py_sitescriptdir}/%{name}/data/pixmaps | |
108 | %dir %{py_sitescriptdir}/%{name}/data/pixmaps/flags | |
109 | %dir %{py_sitescriptdir}/%{name}/plugins | |
110 | %dir %{py_sitescriptdir}/%{name}/ui | |
111 | %dir %{py_sitescriptdir}/%{name}/ui/console | |
112 | %dir %{py_sitescriptdir}/%{name}/ui/console/commands | |
113 | %dir %{py_sitescriptdir}/%{name}/ui/gtkui | |
114 | %dir %{py_sitescriptdir}/%{name}/ui/gtkui/glade | |
115 | %dir %{py_sitescriptdir}/%{name}/ui/web | |
116 | %{py_sitescriptdir}/%{name}/*.py[co] | |
117 | %{py_sitescriptdir}/%{name}/core/*.py[co] | |
d03c3621 | 118 | %{py_sitescriptdir}/%{name}/data/pixmaps/*.gif |
b999ba99 | 119 | %{py_sitescriptdir}/%{name}/data/pixmaps/*.ico |
120 | %{py_sitescriptdir}/%{name}/data/pixmaps/*.png | |
121 | %{py_sitescriptdir}/%{name}/data/pixmaps/*.svg | |
122 | %{py_sitescriptdir}/%{name}/data/pixmaps/flags/*.png | |
123 | %{py_sitescriptdir}/%{name}/plugins/*.py[co] | |
124 | %{py_sitescriptdir}/%{name}/plugins/*.egg | |
125 | %{py_sitescriptdir}/%{name}/ui/*.py[co] | |
126 | %{py_sitescriptdir}/%{name}/ui/console/*.py[co] | |
127 | %{py_sitescriptdir}/%{name}/ui/console/commands/*.py[co] | |
128 | %{py_sitescriptdir}/%{name}/ui/gtkui/*.py[co] | |
129 | %{py_sitescriptdir}/%{name}/ui/gtkui/glade/*.glade | |
130 | %{py_sitescriptdir}/%{name}/ui/web/*.js | |
131 | %{py_sitescriptdir}/%{name}/ui/web/*.py[co] | |
132 | %{py_sitescriptdir}/%{name}/ui/web/css | |
133 | %{py_sitescriptdir}/%{name}/ui/web/icons | |
134 | %{py_sitescriptdir}/%{name}/ui/web/images | |
135 | %{py_sitescriptdir}/%{name}/ui/web/index.html | |
136 | %{py_sitescriptdir}/%{name}/ui/web/js | |
137 | %{py_sitescriptdir}/%{name}/ui/web/render | |
138 | %{py_sitescriptdir}/%{name}/ui/web/themes | |
139 | %{py_sitescriptdir}/%{name}-*-py*.egg-info | |
8ef55120 | 140 | %{_desktopdir}/%{name}.desktop |
d9a27a6d | 141 | %{_pixmapsdir}/%{name}.png |
a8bb1686 | 142 | %{_iconsdir}/hicolor/16x16/apps/deluge.png |
a8bb1686 | 143 | %{_iconsdir}/hicolor/22x22/apps/deluge.png |
144 | %{_iconsdir}/hicolor/24x24/apps/deluge.png | |
a8bb1686 | 145 | %{_iconsdir}/hicolor/32x32/apps/deluge.png |
146 | %{_iconsdir}/hicolor/36x36/apps/deluge.png | |
147 | %{_iconsdir}/hicolor/48x48/apps/deluge.png | |
148 | %{_iconsdir}/hicolor/64x64/apps/deluge.png | |
149 | %{_iconsdir}/hicolor/72x72/apps/deluge.png | |
150 | %{_iconsdir}/hicolor/96x96/apps/deluge.png | |
7a3d5b74 JB |
151 | %{_iconsdir}/hicolor/128x128/apps/deluge.png |
152 | %{_iconsdir}/hicolor/192x192/apps/deluge.png | |
b999ba99 | 153 | %{_iconsdir}/hicolor/256x256/apps/deluge.png |
7290717e | 154 | %{_iconsdir}/hicolor/scalable/apps/deluge.svg |
538f310d JB |
155 | %{_mandir}/man1/deluge.1* |
156 | %{_mandir}/man1/deluged.1* | |
b999ba99 | 157 | %{_mandir}/man1/deluge-console.1* |
158 | %{_mandir}/man1/deluge-gtk.1* | |
159 | %{_mandir}/man1/deluge-web.1* |