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