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