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