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