]>
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 |
3c35bc1c | 4 | Version: 0.5.8.1 |
397ef3fa | 5 | Release: 2 |
7a3d5b74 | 6 | License: GPL v2+ |
8ef55120 | 7 | Group: X11/Applications/Networking |
026bcc87 | 8 | Source0: http://download.deluge-torrent.org/tarball/%{version}/%{name}-%{version}.tar.gz |
3c35bc1c | 9 | # Source0-md5: 19c1ac3ba6910f52b5918b56526e74a0 |
8ef55120 | 10 | #Source1: %{name}-fixed-setup.py |
d9a27a6d | 11 | Patch0: %{name}-pld.patch |
e32279da | 12 | URL: http://deluge-torrent.org/ |
2bff7aa4 | 13 | BuildRequires: boost-array-devel |
2bff7aa4 | 14 | BuildRequires: boost-date_time-devel |
9c853ddd | 15 | BuildRequires: boost-filesystem-devel |
8ef55120 | 16 | BuildRequires: boost-program_options-devel |
17 | BuildRequires: boost-regex-devel | |
18 | BuildRequires: desktop-file-utils | |
19 | BuildRequires: libtool | |
e32279da | 20 | BuildRequires: python-devel >= 1:2.5 |
8ef55120 | 21 | BuildRequires: rb_libtorrent-devel |
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 | |
32 | Requires: rb_libtorrent | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Deluge is a new BitTorrent client, created using Python and GTK+. It | |
37 | is intended to bring a native, full-featured client to Linux GTK+ | |
38 | desktop environments such as GNOME and XFCE. It supports features such | |
39 | as DHT (Distributed Hash Tables) and UPnP (Universal Plug-n-Play) that | |
40 | allow one to more easily share BitTorrent data even from behind a | |
41 | router with virtually zero configuration of port-forwarding. | |
42 | ||
e32279da JB |
43 | %description -l pl.UTF-8 |
44 | Deluge to nowy klient BitTorrenta stworzony przy użyciu Pythona i | |
45 | GTK+. Jego celem jest dostarczenie natywnego, w pełni funkcjonalnego | |
46 | klienta dla środowisk GTK+ pod Linuksem, takich jak GNOME czy XFCE. | |
47 | Obsługuje m.in. DHT (Distributed Hash Tables) i UPnP (Universal | |
48 | Plug-n-Play), co pozwala łatwiej współdzielić dane BitTorrenta nawet | |
49 | zza routera praktycznie bez konfiguracji przekierowywania portów. | |
50 | ||
8ef55120 | 51 | %prep |
a8bb1686 | 52 | %setup -q -n %{name}-torrent-%{version} |
d9a27a6d | 53 | %patch0 -p1 |
8ef55120 | 54 | |
55 | %build | |
56 | ## We forcibly don't store the installation directory during the build, so | |
57 | ## we need to ensure that it is properly inserted into the code as required. | |
58 | %{__sed} -i -e "s:INSTALL_PREFIX = '@datadir@':INSTALL_PREFIX = '%{_usr}':" \ | |
d9a27a6d | 59 | src/common.py |
e32279da JB |
60 | %ifarch %{x8664} ppc64 sparc64 |
61 | CFLAGS="%{rpmcflags} -DAMD64" %{__python} setup.py build | |
8ef55120 | 62 | %else |
e32279da | 63 | CFLAGS="%{rpmcflags}" %{__python} setup.py build |
8ef55120 | 64 | %endif |
65 | ||
8ef55120 | 66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT | |
69 | ||
70 | ## ...then strip the unneeded shebang lines from some of the plugins... | |
4dd4c979 ER |
71 | # this seems, wrong, we don't pkg the .py |
72 | # and if we do chmod -x on files should not fill autodeps | |
73 | #sed -i 1d $RPM_BUILD_ROOT%{py_sitedir}/%{name}/{delugegtk.py,delugeplugins.py} | |
8ef55120 | 74 | |
75 | %find_lang %{name} | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
a8bb1686 | 80 | %post |
81 | %update_icon_cache hicolor | |
82 | ||
83 | %postun | |
84 | %update_icon_cache hicolor | |
85 | ||
8ef55120 | 86 | %files -f %{name}.lang |
87 | %defattr(644,root,root,755) | |
88 | %doc LICENSE | |
89 | %attr(755,root,root) %{_bindir}/%{name} | |
4dd4c979 | 90 | %dir %{py_sitedir}/%{name} |
8ef55120 | 91 | %{py_sitedir}/%{name}/*.py[co] |
4dd4c979 | 92 | %attr(755,root,root) %{py_sitedir}/%{name}/*.so |
e32279da | 93 | %{py_sitedir}/%{name}-%{version}-py*.egg-info |
8ef55120 | 94 | %{_desktopdir}/%{name}.desktop |
d9a27a6d | 95 | %{_pixmapsdir}/%{name}.png |
a8bb1686 | 96 | %{_iconsdir}/hicolor/16x16/apps/deluge.png |
a8bb1686 | 97 | %{_iconsdir}/hicolor/22x22/apps/deluge.png |
98 | %{_iconsdir}/hicolor/24x24/apps/deluge.png | |
a8bb1686 | 99 | %{_iconsdir}/hicolor/32x32/apps/deluge.png |
100 | %{_iconsdir}/hicolor/36x36/apps/deluge.png | |
101 | %{_iconsdir}/hicolor/48x48/apps/deluge.png | |
102 | %{_iconsdir}/hicolor/64x64/apps/deluge.png | |
103 | %{_iconsdir}/hicolor/72x72/apps/deluge.png | |
104 | %{_iconsdir}/hicolor/96x96/apps/deluge.png | |
7a3d5b74 JB |
105 | %{_iconsdir}/hicolor/128x128/apps/deluge.png |
106 | %{_iconsdir}/hicolor/192x192/apps/deluge.png | |
107 | %{_iconsdir}/hicolor/256x256/apps/deluge.png | |
4dd4c979 | 108 | %{_datadir}/%{name} |