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