]>
Commit | Line | Data |
---|---|---|
58e505c9 | 1 | # |
2 | # TODO: | |
3 | # - fix building with libtorrent-rasterbar libs, for now it is | |
4 | # disabled. Deluge uses its internal libtorrent module | |
5 | # - lang files | |
6 | # | |
8ef55120 | 7 | Summary: A Python BitTorrent client with support for UPnP and DHT |
e32279da | 8 | Summary(pl.UTF-8): Klient BitTorrenta napisany w Pythonie ze wspraciem dla UPnP i DHT |
8ef55120 | 9 | Name: deluge |
58e505c9 | 10 | Version: 1.0.5 |
11 | Release: 0.1 | |
7a3d5b74 | 12 | License: GPL v2+ |
8ef55120 | 13 | Group: X11/Applications/Networking |
e602f812 | 14 | Source0: http://download.deluge-torrent.org/source/%{version}/%{name}-%{version}.tar.gz |
58e505c9 | 15 | # Source0-md5: 24fd36978b2713212cf1ae679f8066d5 |
16 | Patch0: %{name}-libtorrent.patch | |
e32279da | 17 | URL: http://deluge-torrent.org/ |
58e505c9 | 18 | BuildRequires: boost-devel >= 1.36.0 |
8ef55120 | 19 | BuildRequires: desktop-file-utils |
20 | BuildRequires: libtool | |
e32279da | 21 | BuildRequires: python-devel >= 1:2.5 |
e32279da | 22 | BuildRequires: rpm-pythonprov |
9c853ddd JB |
23 | BuildRequires: rpmbuild(macros) >= 1.311 |
24 | Requires(post,postun): gtk+2 | |
25 | Requires(post,postun): hicolor-icon-theme | |
8ef55120 | 26 | Requires: /bin/sh |
a8bb1686 | 27 | Requires: hicolor-icon-theme |
8ef55120 | 28 | Requires: python-dbus |
6fd2fbdc | 29 | Requires: python-gnome-extras-mozilla |
8ef55120 | 30 | Requires: python-pygtk-glade |
31 | Requires: python-pyxdg | |
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 |
d9a27a6d | 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 | ||
58e505c9 | 65 | #%%find_lang %{name} |
8ef55120 | 66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
a8bb1686 | 70 | %post |
71 | %update_icon_cache hicolor | |
72 | ||
73 | %postun | |
74 | %update_icon_cache hicolor | |
75 | ||
58e505c9 | 76 | #%%files -f %{name}.lang |
77 | %files | |
8ef55120 | 78 | %defattr(644,root,root,755) |
58e505c9 | 79 | %doc ChangeLog LICENSE README |
8ef55120 | 80 | %attr(755,root,root) %{_bindir}/%{name} |
58e505c9 | 81 | %attr(755,root,root) %{_bindir}/%{name}d |
4dd4c979 | 82 | %dir %{py_sitedir}/%{name} |
58e505c9 | 83 | %dir %{py_sitedir}/%{name}/core |
84 | %dir %{py_sitedir}/%{name}/data | |
85 | %dir %{py_sitedir}/%{name}/data/pixmaps | |
86 | %dir %{py_sitedir}/%{name}/data/pixmaps/flags | |
87 | %dir %{py_sitedir}/%{name}/plugins | |
88 | %dir %{py_sitedir}/%{name}/ui | |
89 | %dir %{py_sitedir}/%{name}/ui/gtkui | |
90 | %dir %{py_sitedir}/%{name}/ui/gtkui/glade | |
91 | %dir %{py_sitedir}/%{name}/ui/null | |
92 | %dir %{py_sitedir}/%{name}/ui/webui | |
93 | %dir %{py_sitedir}/%{name}/ui/webui/lib | |
94 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable | |
95 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django | |
96 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/core | |
97 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/utils | |
98 | %dir %{py_sitedir}/%{name}/ui/webui/lib/webpy022 | |
99 | %dir %{py_sitedir}/%{name}/ui/webui/lib/webpy022/wsgiserver | |
100 | %dir %{py_sitedir}/%{name}/ui/webui/scripts | |
101 | %dir %{py_sitedir}/%{name}/ui/webui/static | |
102 | %dir %{py_sitedir}/%{name}/ui/webui/static/images | |
103 | %dir %{py_sitedir}/%{name}/ui/webui/static/images/tango | |
104 | %dir %{py_sitedir}/%{name}/ui/webui/templates | |
105 | %dir %{py_sitedir}/%{name}/ui/webui/templates/classic | |
106 | %dir %{py_sitedir}/%{name}/ui/webui/templates/white | |
4dd4c979 | 107 | %attr(755,root,root) %{py_sitedir}/%{name}/*.so |
58e505c9 | 108 | %{py_sitedir}/%{name}/*.py[co] |
109 | %{py_sitedir}/%{name}/core/*.py[co] | |
110 | %{py_sitedir}/%{name}/data/GeoIP.dat | |
111 | %{py_sitedir}/%{name}/data/revision | |
112 | %{py_sitedir}/%{name}/data/pixmaps/*.ico | |
113 | %{py_sitedir}/%{name}/data/pixmaps/*.png | |
114 | %{py_sitedir}/%{name}/data/pixmaps/*.svg | |
115 | %{py_sitedir}/%{name}/data/pixmaps/flags/*.png | |
116 | %{py_sitedir}/%{name}/plugins/*.py[co] | |
117 | %{py_sitedir}/%{name}/ui/*.py[co] | |
118 | %{py_sitedir}/%{name}/ui/gtkui/*.py[co] | |
119 | %{py_sitedir}/%{name}/ui/gtkui/glade/*.glade | |
120 | %{py_sitedir}/%{name}/ui/null/*.py[co] | |
121 | %{py_sitedir}/%{name}/ui/webui/LICENSE | |
122 | %{py_sitedir}/%{name}/ui/webui/*.py[co] | |
123 | %{py_sitedir}/%{name}/ui/webui/lib/*.py[co] | |
124 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/*.py[co] | |
125 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/*.py[co] | |
126 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/core/*.py[co] | |
127 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/utils/*.py[co] | |
128 | %{py_sitedir}/%{name}/ui/webui/lib/webpy022/*.py[co] | |
129 | %{py_sitedir}/%{name}/ui/webui/lib/webpy022/wsgiserver/*.py[co] | |
130 | %{py_sitedir}/%{name}/ui/webui/scripts/* | |
131 | %{py_sitedir}/%{name}/ui/webui/static/*.css | |
132 | %{py_sitedir}/%{name}/ui/webui/static/*.js | |
133 | %{py_sitedir}/%{name}/ui/webui/static/images/*.gif | |
134 | %{py_sitedir}/%{name}/ui/webui/static/images/*.jpg | |
135 | %{py_sitedir}/%{name}/ui/webui/static/images/*.png | |
136 | %{py_sitedir}/%{name}/ui/webui/static/images/tango/*.png | |
137 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.cfg | |
138 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.html | |
139 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.txt | |
140 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.cfg | |
141 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.css | |
142 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.html | |
e32279da | 143 | %{py_sitedir}/%{name}-%{version}-py*.egg-info |
8ef55120 | 144 | %{_desktopdir}/%{name}.desktop |
d9a27a6d | 145 | %{_pixmapsdir}/%{name}.png |
a8bb1686 | 146 | %{_iconsdir}/hicolor/16x16/apps/deluge.png |
a8bb1686 | 147 | %{_iconsdir}/hicolor/22x22/apps/deluge.png |
148 | %{_iconsdir}/hicolor/24x24/apps/deluge.png | |
a8bb1686 | 149 | %{_iconsdir}/hicolor/32x32/apps/deluge.png |
150 | %{_iconsdir}/hicolor/36x36/apps/deluge.png | |
151 | %{_iconsdir}/hicolor/48x48/apps/deluge.png | |
152 | %{_iconsdir}/hicolor/64x64/apps/deluge.png | |
153 | %{_iconsdir}/hicolor/72x72/apps/deluge.png | |
154 | %{_iconsdir}/hicolor/96x96/apps/deluge.png | |
7a3d5b74 JB |
155 | %{_iconsdir}/hicolor/128x128/apps/deluge.png |
156 | %{_iconsdir}/hicolor/192x192/apps/deluge.png | |
75b196a5 | 157 | #{_iconsdir}/hicolor/256x256/apps/deluge.png |