]>
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 |
786e95e3 | 4 | Version: 1.0.6 |
58e505c9 | 5 | Release: 0.1 |
7a3d5b74 | 6 | License: GPL v2+ |
8ef55120 | 7 | Group: X11/Applications/Networking |
e602f812 | 8 | Source0: http://download.deluge-torrent.org/source/%{version}/%{name}-%{version}.tar.gz |
786e95e3 | 9 | # Source0-md5: 96be98b4e7f8c66ec243e8148b897291 |
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(?) | |
66 | rm -rf $RPM_BUILD_ROOT%{_localedir}/la | |
67 | rm -rf $RPM_BUILD_ROOT%{_localedir}/pms | |
68 | ||
69 | # Remove *.py files. We don't package them. | |
70 | find $RPM_BUILD_ROOT%{py_sitedir}/%{name} -type f -name '*.py' -print0 | xargs -0 rm -f | |
71 | ||
58e505c9 | 72 | #%%find_lang %{name} |
8ef55120 | 73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
a8bb1686 | 77 | %post |
78 | %update_icon_cache hicolor | |
79 | ||
80 | %postun | |
81 | %update_icon_cache hicolor | |
82 | ||
58e505c9 | 83 | #%%files -f %{name}.lang |
84 | %files | |
8ef55120 | 85 | %defattr(644,root,root,755) |
58e505c9 | 86 | %doc ChangeLog LICENSE README |
8ef55120 | 87 | %attr(755,root,root) %{_bindir}/%{name} |
58e505c9 | 88 | %attr(755,root,root) %{_bindir}/%{name}d |
786e95e3 | 89 | %{_mandir}/man1/%{name}.1.gz |
90 | %{_mandir}/man1/%{name}d.1.gz | |
91 | %{_pixmapsdir}/%{name}.xpm | |
4dd4c979 | 92 | %dir %{py_sitedir}/%{name} |
58e505c9 | 93 | %dir %{py_sitedir}/%{name}/core |
94 | %dir %{py_sitedir}/%{name}/data | |
95 | %dir %{py_sitedir}/%{name}/data/pixmaps | |
96 | %dir %{py_sitedir}/%{name}/data/pixmaps/flags | |
97 | %dir %{py_sitedir}/%{name}/plugins | |
98 | %dir %{py_sitedir}/%{name}/ui | |
99 | %dir %{py_sitedir}/%{name}/ui/gtkui | |
100 | %dir %{py_sitedir}/%{name}/ui/gtkui/glade | |
101 | %dir %{py_sitedir}/%{name}/ui/null | |
102 | %dir %{py_sitedir}/%{name}/ui/webui | |
103 | %dir %{py_sitedir}/%{name}/ui/webui/lib | |
104 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable | |
105 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django | |
106 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/core | |
107 | %dir %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/utils | |
108 | %dir %{py_sitedir}/%{name}/ui/webui/lib/webpy022 | |
109 | %dir %{py_sitedir}/%{name}/ui/webui/lib/webpy022/wsgiserver | |
110 | %dir %{py_sitedir}/%{name}/ui/webui/scripts | |
111 | %dir %{py_sitedir}/%{name}/ui/webui/static | |
112 | %dir %{py_sitedir}/%{name}/ui/webui/static/images | |
113 | %dir %{py_sitedir}/%{name}/ui/webui/static/images/tango | |
114 | %dir %{py_sitedir}/%{name}/ui/webui/templates | |
115 | %dir %{py_sitedir}/%{name}/ui/webui/templates/classic | |
116 | %dir %{py_sitedir}/%{name}/ui/webui/templates/white | |
4dd4c979 | 117 | %attr(755,root,root) %{py_sitedir}/%{name}/*.so |
58e505c9 | 118 | %{py_sitedir}/%{name}/*.py[co] |
119 | %{py_sitedir}/%{name}/core/*.py[co] | |
120 | %{py_sitedir}/%{name}/data/GeoIP.dat | |
121 | %{py_sitedir}/%{name}/data/revision | |
122 | %{py_sitedir}/%{name}/data/pixmaps/*.ico | |
123 | %{py_sitedir}/%{name}/data/pixmaps/*.png | |
124 | %{py_sitedir}/%{name}/data/pixmaps/*.svg | |
125 | %{py_sitedir}/%{name}/data/pixmaps/flags/*.png | |
126 | %{py_sitedir}/%{name}/plugins/*.py[co] | |
127 | %{py_sitedir}/%{name}/ui/*.py[co] | |
128 | %{py_sitedir}/%{name}/ui/gtkui/*.py[co] | |
129 | %{py_sitedir}/%{name}/ui/gtkui/glade/*.glade | |
130 | %{py_sitedir}/%{name}/ui/null/*.py[co] | |
58e505c9 | 131 | %{py_sitedir}/%{name}/ui/webui/*.py[co] |
132 | %{py_sitedir}/%{name}/ui/webui/lib/*.py[co] | |
133 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/*.py[co] | |
134 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/*.py[co] | |
135 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/core/*.py[co] | |
136 | %{py_sitedir}/%{name}/ui/webui/lib/newforms_portable/django/utils/*.py[co] | |
137 | %{py_sitedir}/%{name}/ui/webui/lib/webpy022/*.py[co] | |
138 | %{py_sitedir}/%{name}/ui/webui/lib/webpy022/wsgiserver/*.py[co] | |
139 | %{py_sitedir}/%{name}/ui/webui/scripts/* | |
140 | %{py_sitedir}/%{name}/ui/webui/static/*.css | |
141 | %{py_sitedir}/%{name}/ui/webui/static/*.js | |
142 | %{py_sitedir}/%{name}/ui/webui/static/images/*.gif | |
143 | %{py_sitedir}/%{name}/ui/webui/static/images/*.jpg | |
144 | %{py_sitedir}/%{name}/ui/webui/static/images/*.png | |
145 | %{py_sitedir}/%{name}/ui/webui/static/images/tango/*.png | |
146 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.cfg | |
147 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.html | |
148 | %{py_sitedir}/%{name}/ui/webui/templates/classic/*.txt | |
149 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.cfg | |
150 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.css | |
151 | %{py_sitedir}/%{name}/ui/webui/templates/white/*.html | |
e32279da | 152 | %{py_sitedir}/%{name}-%{version}-py*.egg-info |
8ef55120 | 153 | %{_desktopdir}/%{name}.desktop |
d9a27a6d | 154 | %{_pixmapsdir}/%{name}.png |
a8bb1686 | 155 | %{_iconsdir}/hicolor/16x16/apps/deluge.png |
a8bb1686 | 156 | %{_iconsdir}/hicolor/22x22/apps/deluge.png |
157 | %{_iconsdir}/hicolor/24x24/apps/deluge.png | |
a8bb1686 | 158 | %{_iconsdir}/hicolor/32x32/apps/deluge.png |
159 | %{_iconsdir}/hicolor/36x36/apps/deluge.png | |
160 | %{_iconsdir}/hicolor/48x48/apps/deluge.png | |
161 | %{_iconsdir}/hicolor/64x64/apps/deluge.png | |
162 | %{_iconsdir}/hicolor/72x72/apps/deluge.png | |
163 | %{_iconsdir}/hicolor/96x96/apps/deluge.png | |
7a3d5b74 JB |
164 | %{_iconsdir}/hicolor/128x128/apps/deluge.png |
165 | %{_iconsdir}/hicolor/192x192/apps/deluge.png | |
75b196a5 | 166 | #{_iconsdir}/hicolor/256x256/apps/deluge.png |
a7478bf1 | 167 | %{_localedir}/*/LC_MESSAGES/%{name}.mo |