]>
Commit | Line | Data |
---|---|---|
8ef55120 | 1 | Summary: A Python BitTorrent client with support for UPnP and DHT |
e32279da | 2 | Summary(pl.UTF-8): Klient BitTorrenta napisany w Pythonie ze wspraciem dla UPnP i DHT |
8ef55120 | 3 | Name: deluge |
954b056b | 4 | Version: 1.2.2 |
5 | Release: 1 | |
6876e0bc | 6 | License: GPL v3 |
8ef55120 | 7 | Group: X11/Applications/Networking |
61a04cc4 | 8 | Source0: http://download.deluge-torrent.org/source/%{name}-%{version}.tar.bz2 |
954b056b | 9 | # Source0-md5: 535f65ef9854073189c9fb604a673c9f |
e32279da | 10 | URL: http://deluge-torrent.org/ |
e32279da | 11 | BuildRequires: python-devel >= 1:2.5 |
b999ba99 | 12 | BuildRequires: python-libtorrent-rasterbar |
6a6dbb98 | 13 | BuildRequires: python-setuptools |
e32279da | 14 | BuildRequires: rpm-pythonprov |
9c853ddd JB |
15 | BuildRequires: rpmbuild(macros) >= 1.311 |
16 | Requires(post,postun): gtk+2 | |
17 | Requires(post,postun): hicolor-icon-theme | |
8ef55120 | 18 | Requires: /bin/sh |
a8bb1686 | 19 | Requires: hicolor-icon-theme |
b999ba99 | 20 | # for svg pixbuf loader |
ef91286c | 21 | Requires: librsvg |
b999ba99 | 22 | Requires: python-Mako |
23 | Requires: python-TwistedCore >= 8.1 | |
24 | Requires: python-TwistedWeb >= 8.1 | |
25 | Requires: python-chardet | |
8ef55120 | 26 | Requires: python-dbus |
bd7508ad | 27 | Requires: python-libtorrent-rasterbar >= 0.14.9 |
b999ba99 | 28 | Requires: python-pyOpenSSL |
29 | Requires: python-pygame | |
30 | Requires: python-pygtk-glade >= 2:2.12 | |
31 | Requires: python-pygtk-gtk >= 2:2.12 | |
32 | Requires: python-pynotify | |
8ef55120 | 33 | Requires: python-pyxdg |
d18e406a | 34 | Requires: python-setuptools |
b999ba99 | 35 | Requires: xdg-utils |
36 | Suggests: GeoIP-db-Country | |
8ef55120 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | Deluge is a new BitTorrent client, created using Python and GTK+. It | |
41 | is intended to bring a native, full-featured client to Linux GTK+ | |
42 | desktop environments such as GNOME and XFCE. It supports features such | |
43 | as DHT (Distributed Hash Tables) and UPnP (Universal Plug-n-Play) that | |
44 | allow one to more easily share BitTorrent data even from behind a | |
45 | router with virtually zero configuration of port-forwarding. | |
46 | ||
e32279da JB |
47 | %description -l pl.UTF-8 |
48 | Deluge to nowy klient BitTorrenta stworzony przy użyciu Pythona i | |
49 | GTK+. Jego celem jest dostarczenie natywnego, w pełni funkcjonalnego | |
50 | klienta dla środowisk GTK+ pod Linuksem, takich jak GNOME czy XFCE. | |
51 | Obsługuje m.in. DHT (Distributed Hash Tables) i UPnP (Universal | |
52 | Plug-n-Play), co pozwala łatwiej współdzielić dane BitTorrenta nawet | |
53 | zza routera praktycznie bez konfiguracji przekierowywania portów. | |
54 | ||
8ef55120 | 55 | %prep |
1fc6e2c4 | 56 | %setup -q |
8ef55120 | 57 | |
58 | %build | |
e32279da JB |
59 | %ifarch %{x8664} ppc64 sparc64 |
60 | CFLAGS="%{rpmcflags} -DAMD64" %{__python} setup.py build | |
8ef55120 | 61 | %else |
e32279da | 62 | CFLAGS="%{rpmcflags}" %{__python} setup.py build |
8ef55120 | 63 | %endif |
64 | ||
8ef55120 | 65 | %install |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT | |
68 | ||
6a6dbb98 | 69 | # move lang files into %{_datadir}/locale, find_lang does not work on |
a7478bf1 | 70 | # this. Looks really ugly, if you know a better way please do use it :) |
71 | install -d $RPM_BUILD_ROOT%{_localedir} | |
b999ba99 | 72 | mv -f $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/i18n/* $RPM_BUILD_ROOT%{_localedir} |
73 | # clean *.py files from the package, macro doesn't catch those | |
74 | find $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name} -name '*.py' -exec %{__rm} {} \; | |
a7478bf1 | 75 | |
76 | # unsupported(?) | |
7290717e | 77 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/iu |
538f310d JB |
78 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/la |
79 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pms | |
7290717e | 80 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/si |
81 | ||
82 | %{__rm} $RPM_BUILD_ROOT%{_localedir}/deluge.pot | |
a7478bf1 | 83 | |
7290717e | 84 | # Move svg icon to proper place |
85 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps | |
86 | mv -f $RPM_BUILD_ROOT%{_iconsdir}/scalable/apps/deluge.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/ | |
87 | ||
538f310d | 88 | %find_lang %{name} |
8ef55120 | 89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
a8bb1686 | 93 | %post |
94 | %update_icon_cache hicolor | |
95 | ||
96 | %postun | |
97 | %update_icon_cache hicolor | |
98 | ||
538f310d | 99 | %files -f %{name}.lang |
8ef55120 | 100 | %defattr(644,root,root,755) |
6876e0bc | 101 | %doc ChangeLog README |
538f310d | 102 | %attr(755,root,root) %{_bindir}/deluge |
b999ba99 | 103 | %attr(755,root,root) %{_bindir}/deluge-console |
104 | %attr(755,root,root) %{_bindir}/deluge-gtk | |
105 | %attr(755,root,root) %{_bindir}/deluge-web | |
538f310d | 106 | %attr(755,root,root) %{_bindir}/deluged |
786e95e3 | 107 | %{_pixmapsdir}/%{name}.xpm |
b999ba99 | 108 | %dir %{py_sitescriptdir}/%{name} |
109 | %dir %{py_sitescriptdir}/%{name}/core | |
110 | %dir %{py_sitescriptdir}/%{name}/data | |
111 | %dir %{py_sitescriptdir}/%{name}/data/pixmaps | |
112 | %dir %{py_sitescriptdir}/%{name}/data/pixmaps/flags | |
113 | %dir %{py_sitescriptdir}/%{name}/plugins | |
114 | %dir %{py_sitescriptdir}/%{name}/ui | |
115 | %dir %{py_sitescriptdir}/%{name}/ui/console | |
116 | %dir %{py_sitescriptdir}/%{name}/ui/console/commands | |
117 | %dir %{py_sitescriptdir}/%{name}/ui/gtkui | |
118 | %dir %{py_sitescriptdir}/%{name}/ui/gtkui/glade | |
119 | %dir %{py_sitescriptdir}/%{name}/ui/web | |
120 | %{py_sitescriptdir}/%{name}/*.py[co] | |
121 | %{py_sitescriptdir}/%{name}/core/*.py[co] | |
122 | %{py_sitescriptdir}/%{name}/data/pixmaps/*.ico | |
123 | %{py_sitescriptdir}/%{name}/data/pixmaps/*.png | |
124 | %{py_sitescriptdir}/%{name}/data/pixmaps/*.svg | |
125 | %{py_sitescriptdir}/%{name}/data/pixmaps/flags/*.png | |
126 | %{py_sitescriptdir}/%{name}/plugins/*.py[co] | |
127 | %{py_sitescriptdir}/%{name}/plugins/*.egg | |
128 | %{py_sitescriptdir}/%{name}/ui/*.py[co] | |
129 | %{py_sitescriptdir}/%{name}/ui/console/*.py[co] | |
130 | %{py_sitescriptdir}/%{name}/ui/console/commands/*.py[co] | |
131 | %{py_sitescriptdir}/%{name}/ui/gtkui/*.py[co] | |
132 | %{py_sitescriptdir}/%{name}/ui/gtkui/glade/*.glade | |
133 | %{py_sitescriptdir}/%{name}/ui/web/*.js | |
134 | %{py_sitescriptdir}/%{name}/ui/web/*.py[co] | |
135 | %{py_sitescriptdir}/%{name}/ui/web/css | |
136 | %{py_sitescriptdir}/%{name}/ui/web/icons | |
137 | %{py_sitescriptdir}/%{name}/ui/web/images | |
138 | %{py_sitescriptdir}/%{name}/ui/web/index.html | |
139 | %{py_sitescriptdir}/%{name}/ui/web/js | |
140 | %{py_sitescriptdir}/%{name}/ui/web/render | |
141 | %{py_sitescriptdir}/%{name}/ui/web/themes | |
142 | %{py_sitescriptdir}/%{name}-*-py*.egg-info | |
8ef55120 | 143 | %{_desktopdir}/%{name}.desktop |
d9a27a6d | 144 | %{_pixmapsdir}/%{name}.png |
a8bb1686 | 145 | %{_iconsdir}/hicolor/16x16/apps/deluge.png |
a8bb1686 | 146 | %{_iconsdir}/hicolor/22x22/apps/deluge.png |
147 | %{_iconsdir}/hicolor/24x24/apps/deluge.png | |
a8bb1686 | 148 | %{_iconsdir}/hicolor/32x32/apps/deluge.png |
149 | %{_iconsdir}/hicolor/36x36/apps/deluge.png | |
150 | %{_iconsdir}/hicolor/48x48/apps/deluge.png | |
151 | %{_iconsdir}/hicolor/64x64/apps/deluge.png | |
152 | %{_iconsdir}/hicolor/72x72/apps/deluge.png | |
153 | %{_iconsdir}/hicolor/96x96/apps/deluge.png | |
7a3d5b74 JB |
154 | %{_iconsdir}/hicolor/128x128/apps/deluge.png |
155 | %{_iconsdir}/hicolor/192x192/apps/deluge.png | |
b999ba99 | 156 | %{_iconsdir}/hicolor/256x256/apps/deluge.png |
7290717e | 157 | %{_iconsdir}/hicolor/scalable/apps/deluge.svg |
538f310d JB |
158 | %{_mandir}/man1/deluge.1* |
159 | %{_mandir}/man1/deluged.1* | |
b999ba99 | 160 | %{_mandir}/man1/deluge-console.1* |
161 | %{_mandir}/man1/deluge-gtk.1* | |
162 | %{_mandir}/man1/deluge-web.1* |