]> git.pld-linux.org Git - packages/deluge.git/blame - deluge.spec
- up to 0.5.9.0
[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
e602f812 4Version: 0.5.9.0
5855a341 5Release: 0.9
7a3d5b74 6License: GPL v2+
8ef55120 7Group: X11/Applications/Networking
e602f812 8Source0: http://download.deluge-torrent.org/source/%{version}/%{name}-%{version}.tar.gz
9# Source0-md5: de5088e092e680c5619e0939250b86d8
8ef55120 10#Source1: %{name}-fixed-setup.py
d9a27a6d 11Patch0: %{name}-pld.patch
e32279da 12URL: http://deluge-torrent.org/
10a4ddcc 13BuildRequires: boost-devel >= 1.35.0
8ef55120 14BuildRequires: desktop-file-utils
15BuildRequires: libtool
e32279da 16BuildRequires: python-devel >= 1:2.5
8ef55120 17BuildRequires: rb_libtorrent-devel
e32279da 18BuildRequires: rpm-pythonprov
9c853ddd
JB
19BuildRequires: rpmbuild(macros) >= 1.311
20Requires(post,postun): gtk+2
21Requires(post,postun): hicolor-icon-theme
8ef55120 22Requires: /bin/sh
a8bb1686 23Requires: hicolor-icon-theme
8ef55120 24Requires: python-dbus
6fd2fbdc 25Requires: python-gnome-extras-mozilla
8ef55120 26Requires: python-pygtk-glade
27Requires: python-pyxdg
28Requires: rb_libtorrent
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Deluge is a new BitTorrent client, created using Python and GTK+. It
33is intended to bring a native, full-featured client to Linux GTK+
34desktop environments such as GNOME and XFCE. It supports features such
35as DHT (Distributed Hash Tables) and UPnP (Universal Plug-n-Play) that
36allow one to more easily share BitTorrent data even from behind a
37router with virtually zero configuration of port-forwarding.
38
e32279da
JB
39%description -l pl.UTF-8
40Deluge to nowy klient BitTorrenta stworzony przy użyciu Pythona i
41GTK+. Jego celem jest dostarczenie natywnego, w pełni funkcjonalnego
42klienta dla środowisk GTK+ pod Linuksem, takich jak GNOME czy XFCE.
43Obsługuje m.in. DHT (Distributed Hash Tables) i UPnP (Universal
44Plug-n-Play), co pozwala łatwiej współdzielić dane BitTorrenta nawet
45zza 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
63rm -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(?)
72rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/la
73
8ef55120 74%find_lang %{name}
75
76%clean
77rm -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}
This page took 0.061989 seconds and 4 git commands to generate.