]>
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 |
60307c45 | 4 | Version: 1.1.9 |
b9108f4d | 5 | Release: 7 |
6876e0bc | 6 | License: GPL v3 |
8ef55120 | 7 | Group: X11/Applications/Networking |
488873ad | 8 | Source0: http://download.deluge-torrent.org/source/%{name}-%{version}.tar.bz2 |
60307c45 | 9 | # Source0-md5: 38b9dbf255ed9620760d546dbb757882 |
b5486ab8 | 10 | Patch0: %{name}-c++.patch |
e32279da | 11 | URL: http://deluge-torrent.org/ |
58e505c9 | 12 | BuildRequires: boost-devel >= 1.36.0 |
a7478bf1 | 13 | BuildRequires: boost-python-devel >= 1.36.0 |
8ef55120 | 14 | BuildRequires: desktop-file-utils |
15 | BuildRequires: libtool | |
a038d80f | 16 | BuildRequires: openssl-devel |
e32279da | 17 | BuildRequires: python-devel >= 1:2.5 |
6a6dbb98 | 18 | BuildRequires: python-setuptools |
e32279da | 19 | BuildRequires: rpm-pythonprov |
9c853ddd | 20 | BuildRequires: rpmbuild(macros) >= 1.311 |
ef91286c | 21 | BuildRequires: zlib-devel |
9c853ddd JB |
22 | Requires(post,postun): gtk+2 |
23 | Requires(post,postun): hicolor-icon-theme | |
8ef55120 | 24 | Requires: /bin/sh |
a8bb1686 | 25 | Requires: hicolor-icon-theme |
ef91286c | 26 | Requires: librsvg |
8ef55120 | 27 | Requires: python-dbus |
6fd2fbdc | 28 | Requires: python-gnome-extras-mozilla |
8ef55120 | 29 | Requires: python-pygtk-glade |
30 | Requires: python-pyxdg | |
d18e406a | 31 | Requires: python-setuptools |
8ef55120 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | Deluge is a new BitTorrent client, created using Python and GTK+. It | |
36 | is intended to bring a native, full-featured client to Linux GTK+ | |
37 | desktop environments such as GNOME and XFCE. It supports features such | |
38 | as DHT (Distributed Hash Tables) and UPnP (Universal Plug-n-Play) that | |
39 | allow one to more easily share BitTorrent data even from behind a | |
40 | router with virtually zero configuration of port-forwarding. | |
41 | ||
e32279da JB |
42 | %description -l pl.UTF-8 |
43 | Deluge to nowy klient BitTorrenta stworzony przy użyciu Pythona i | |
44 | GTK+. Jego celem jest dostarczenie natywnego, w pełni funkcjonalnego | |
45 | klienta dla środowisk GTK+ pod Linuksem, takich jak GNOME czy XFCE. | |
46 | Obsługuje m.in. DHT (Distributed Hash Tables) i UPnP (Universal | |
47 | Plug-n-Play), co pozwala łatwiej współdzielić dane BitTorrenta nawet | |
48 | zza routera praktycznie bez konfiguracji przekierowywania portów. | |
49 | ||
8ef55120 | 50 | %prep |
58e505c9 | 51 | %setup -q |
b5486ab8 | 52 | %patch0 -p1 |
8ef55120 | 53 | |
54 | %build | |
e32279da JB |
55 | %ifarch %{x8664} ppc64 sparc64 |
56 | CFLAGS="%{rpmcflags} -DAMD64" %{__python} setup.py build | |
8ef55120 | 57 | %else |
e32279da | 58 | CFLAGS="%{rpmcflags}" %{__python} setup.py build |
8ef55120 | 59 | %endif |
60 | ||
8ef55120 | 61 | %install |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT | |
64 | ||
6a6dbb98 | 65 | # move lang files into %{_datadir}/locale, find_lang does not work on |
a7478bf1 | 66 | # this. Looks really ugly, if you know a better way please do use it :) |
67 | install -d $RPM_BUILD_ROOT%{_localedir} | |
68 | mv -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/i18n/* $RPM_BUILD_ROOT%{_localedir} | |
69 | ||
70 | # unsupported(?) | |
7290717e | 71 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/iu |
c76be353 | 72 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/jv |
538f310d JB |
73 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/la |
74 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pms | |
7290717e | 75 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/si |
76 | ||
77 | %{__rm} $RPM_BUILD_ROOT%{_localedir}/deluge.pot | |
a7478bf1 | 78 | |
79 | # Remove *.py files. We don't package them. | |
80 | find $RPM_BUILD_ROOT%{py_sitedir}/%{name} -type f -name '*.py' -print0 | xargs -0 rm -f | |
81 | ||
7290717e | 82 | # Move svg icon to proper place |
83 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps | |
84 | mv -f $RPM_BUILD_ROOT%{_iconsdir}/scalable/apps/deluge.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/ | |
85 | ||
538f310d | 86 | %find_lang %{name} |
8ef55120 | 87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
a8bb1686 | 91 | %post |
92 | %update_icon_cache hicolor | |
93 | ||
94 | %postun | |
95 | %update_icon_cache hicolor | |
96 | ||
538f310d | 97 | %files -f %{name}.lang |
8ef55120 | 98 | %defattr(644,root,root,755) |
6876e0bc | 99 | %doc ChangeLog README |
538f310d JB |
100 | %attr(755,root,root) %{_bindir}/deluge |
101 | %attr(755,root,root) %{_bindir}/deluged | |
786e95e3 | 102 | %{_pixmapsdir}/%{name}.xpm |
4dd4c979 | 103 | %dir %{py_sitedir}/%{name} |
58e505c9 | 104 | %dir %{py_sitedir}/%{name}/core |
105 | %dir %{py_sitedir}/%{name}/data | |
106 | %dir %{py_sitedir}/%{name}/data/pixmaps | |
107 | %dir %{py_sitedir}/%{name}/data/pixmaps/flags | |
108 | %dir %{py_sitedir}/%{name}/plugins | |
109 | %dir %{py_sitedir}/%{name}/ui | |
7290717e | 110 | %dir %{py_sitedir}/%{name}/ui/console |
111 | %dir %{py_sitedir}/%{name}/ui/console/commands | |
58e505c9 | 112 | %dir %{py_sitedir}/%{name}/ui/gtkui |
113 | %dir %{py_sitedir}/%{name}/ui/gtkui/glade | |
58e505c9 | 114 | %dir %{py_sitedir}/%{name}/ui/webui |
115 | %dir %{py_sitedir}/%{name}/ui/webui/lib | |
116 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable | |
117 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django | |
118 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/core | |
119 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/utils | |
120 | %dir %{py_sitedir}/%{name}/ui/webui/lib/webpy022 | |
121 | %dir %{py_sitedir}/%{name}/ui/webui/lib/webpy022/wsgiserver | |
122 | %dir %{py_sitedir}/%{name}/ui/webui/scripts | |
123 | %dir %{py_sitedir}/%{name}/ui/webui/static | |
124 | %dir %{py_sitedir}/%{name}/ui/webui/static/images | |
6876e0bc | 125 | %dir %{py_sitedir}/%{name}/ui/webui/static/images/16 |
58e505c9 | 126 | %dir %{py_sitedir}/%{name}/ui/webui/templates |
7290717e | 127 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax |
128 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/render | |
129 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/render/html | |
130 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static | |
131 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/css | |
132 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/icons | |
133 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/icons/16 | |
134 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/icons/32 | |
5acd6fd0 | 135 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/images |
7290717e | 136 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/js |
137 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes | |
138 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/classic | |
139 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/classic/mime_icons | |
140 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/white | |
141 | %dir %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/white/mime_icons | |
58e505c9 | 142 | %dir %{py_sitedir}/%{name}/ui/webui/templates/classic |
143 | %dir %{py_sitedir}/%{name}/ui/webui/templates/white | |
4dd4c979 | 144 | %attr(755,root,root) %{py_sitedir}/%{name}/*.so |
58e505c9 | 145 | %{py_sitedir}/%{name}/*.py[co] |
146 | %{py_sitedir}/%{name}/core/*.py[co] | |
147 | %{py_sitedir}/%{name}/data/GeoIP.dat | |
58e505c9 | 148 | %{py_sitedir}/%{name}/data/pixmaps/*.ico |
149 | %{py_sitedir}/%{name}/data/pixmaps/*.png | |
150 | %{py_sitedir}/%{name}/data/pixmaps/*.svg | |
151 | %{py_sitedir}/%{name}/data/pixmaps/flags/*.png | |
152 | %{py_sitedir}/%{name}/plugins/*.py[co] | |
153 | %{py_sitedir}/%{name}/ui/*.py[co] | |
7290717e | 154 | %{py_sitedir}/%{name}/ui/console/*.py[co] |
155 | %{py_sitedir}/%{name}/ui/console/commands/*.py[co] | |
58e505c9 | 156 | %{py_sitedir}/%{name}/ui/gtkui/*.py[co] |
157 | %{py_sitedir}/%{name}/ui/gtkui/glade/*.glade | |
58e505c9 | 158 | %{py_sitedir}/%{name}/ui/webui/*.py[co] |
159 | %{py_sitedir}/%{name}/ui/webui/lib/*.py[co] | |
160 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/*.py[co] | |
161 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/*.py[co] | |
162 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/core/*.py[co] | |
163 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/utils/*.py[co] | |
164 | %{py_sitedir}/%{name}/ui/webui/lib/webpy022/*.py[co] | |
165 | %{py_sitedir}/%{name}/ui/webui/lib/webpy022/wsgiserver/*.py[co] | |
166 | %{py_sitedir}/%{name}/ui/webui/scripts/* | |
167 | %{py_sitedir}/%{name}/ui/webui/static/*.css | |
168 | %{py_sitedir}/%{name}/ui/webui/static/*.js | |
169 | %{py_sitedir}/%{name}/ui/webui/static/images/*.gif | |
170 | %{py_sitedir}/%{name}/ui/webui/static/images/*.jpg | |
171 | %{py_sitedir}/%{name}/ui/webui/static/images/*.png | |
6876e0bc | 172 | %{py_sitedir}/%{name}/ui/webui/static/images/16/*.png |
7290717e | 173 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/*.cfg |
174 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/*.css | |
175 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/*.html | |
176 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/*.js | |
177 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/render/html/*.html | |
178 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/css/*.css | |
179 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/icons/16/*.png | |
180 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/icons/32/*.png | |
181 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/images/*.gif | |
182 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/js/*.js | |
183 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/classic/*.css | |
184 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/classic/*.png | |
185 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/classic/mime_icons/*.png | |
186 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/white/*.css | |
187 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/white/*.png | |
188 | %{py_sitedir}/%{name}/ui/webui/templates/ajax/static/themes/white/mime_icons/*.png | |
58e505c9 | 189 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.cfg |
190 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.html | |
7290717e | 191 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.js |
58e505c9 | 192 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.txt |
193 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.cfg | |
194 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.css | |
195 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.html | |
e32279da | 196 | %{py_sitedir}/%{name}-%{version}-py*.egg-info |
8ef55120 | 197 | %{_desktopdir}/%{name}.desktop |
d9a27a6d | 198 | %{_pixmapsdir}/%{name}.png |
a8bb1686 | 199 | %{_iconsdir}/hicolor/16x16/apps/deluge.png |
a8bb1686 | 200 | %{_iconsdir}/hicolor/22x22/apps/deluge.png |
201 | %{_iconsdir}/hicolor/24x24/apps/deluge.png | |
a8bb1686 | 202 | %{_iconsdir}/hicolor/32x32/apps/deluge.png |
203 | %{_iconsdir}/hicolor/36x36/apps/deluge.png | |
204 | %{_iconsdir}/hicolor/48x48/apps/deluge.png | |
205 | %{_iconsdir}/hicolor/64x64/apps/deluge.png | |
206 | %{_iconsdir}/hicolor/72x72/apps/deluge.png | |
207 | %{_iconsdir}/hicolor/96x96/apps/deluge.png | |
7a3d5b74 JB |
208 | %{_iconsdir}/hicolor/128x128/apps/deluge.png |
209 | %{_iconsdir}/hicolor/192x192/apps/deluge.png | |
7290717e | 210 | %{_iconsdir}/hicolor/scalable/apps/deluge.svg |
538f310d JB |
211 | %{_mandir}/man1/deluge.1* |
212 | %{_mandir}/man1/deluged.1* |