]> git.pld-linux.org Git - packages/deluge.git/blame - deluge.spec
- pl desc, cleanup
[packages/deluge.git] / deluge.spec
CommitLineData
8ef55120 1Summary: A Python BitTorrent client with support for UPnP and DHT
e32279da 2Summary(pl.UTF-8): Klient BitTorrenta napisany w Pythonie ze wspraciem dla UPnP i DHT
8ef55120 3Name: deluge
4dd4c979 4Version: 0.5.0
8ef55120 5Release: 0.1
6License: GPL
7Group: X11/Applications/Networking
8ef55120 8Source0: http://deluge-torrent.org/downloads/%{name}-%{version}.tar.gz
4dd4c979 9# Source0-md5: d83e6ee573ac9e2e8d11bc3f446da3f8
8ef55120 10#Source1: %{name}-fixed-setup.py
e32279da 11URL: http://deluge-torrent.org/
8ef55120 12BuildRequires: boost-program_options-devel
13BuildRequires: boost-regex-devel
14BuildRequires: desktop-file-utils
15BuildRequires: libtool
e32279da 16BuildRequires: python-devel >= 1:2.5
8ef55120 17BuildRequires: rb_libtorrent-devel
e32279da 18BuildRequires: rpm-pythonprov
8ef55120 19Requires: /bin/sh
20Requires: python-dbus
21Requires: python-pygtk-glade
22Requires: python-pyxdg
23Requires: rb_libtorrent
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Deluge is a new BitTorrent client, created using Python and GTK+. It
28is intended to bring a native, full-featured client to Linux GTK+
29desktop environments such as GNOME and XFCE. It supports features such
30as DHT (Distributed Hash Tables) and UPnP (Universal Plug-n-Play) that
31allow one to more easily share BitTorrent data even from behind a
32router with virtually zero configuration of port-forwarding.
33
e32279da
JB
34%description -l pl.UTF-8
35Deluge to nowy klient BitTorrenta stworzony przy użyciu Pythona i
36GTK+. Jego celem jest dostarczenie natywnego, w pełni funkcjonalnego
37klienta dla środowisk GTK+ pod Linuksem, takich jak GNOME czy XFCE.
38Obsługuje m.in. DHT (Distributed Hash Tables) i UPnP (Universal
39Plug-n-Play), co pozwala łatwiej współdzielić dane BitTorrenta nawet
40zza routera praktycznie bez konfiguracji przekierowywania portów.
41
8ef55120 42%prep
43%setup -q
8ef55120 44
45%build
46## We forcibly don't store the installation directory during the build, so
47## we need to ensure that it is properly inserted into the code as required.
48%{__sed} -i -e "s:INSTALL_PREFIX = '@datadir@':INSTALL_PREFIX = '%{_usr}':" \
49 src/dcommon.py
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
57rm -rf $RPM_BUILD_ROOT
58%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
59
60## ...then strip the unneeded shebang lines from some of the plugins...
4dd4c979
ER
61# this seems, wrong, we don't pkg the .py
62# and if we do chmod -x on files should not fill autodeps
63#sed -i 1d $RPM_BUILD_ROOT%{py_sitedir}/%{name}/{delugegtk.py,delugeplugins.py}
8ef55120 64
65%find_lang %{name}
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files -f %{name}.lang
71%defattr(644,root,root,755)
72%doc LICENSE
73%attr(755,root,root) %{_bindir}/%{name}
4dd4c979 74%dir %{py_sitedir}/%{name}
8ef55120 75%{py_sitedir}/%{name}/*.py[co]
4dd4c979 76%attr(755,root,root) %{py_sitedir}/%{name}/*.so
e32279da 77%{py_sitedir}/%{name}-%{version}-py*.egg-info
8ef55120 78%{_desktopdir}/%{name}.desktop
8ef55120 79%{_pixmapsdir}/%{name}.xpm
4dd4c979 80%{_datadir}/%{name}
This page took 0.378421 seconds and 4 git commands to generate.