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