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