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