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