1 Summary: BitTorrent - a tool for distributing files
2 Summary(pl): BitTorrent - narzêdzie do rozpowszechniania plików
6 License: BitTorrent Open Source License
7 Group: Applications/Communications
8 Source0: http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
9 # Source0-md5: 6616f6ae8a8460804ce43b3cf4b6f73b
10 Source1: %{name}.desktop
11 Patch0: %{name}-man_pages.patch
12 Patch1: %{name}-morei18n.patch
13 URL: http://www.bittorrent.com/
14 BuildRequires: python-devel
15 BuildRequires: rpm-pythonprov
16 BuildRequires: sed >= 4.0
17 %pyrequires_eq python-modules
18 Requires: python-Crypto
19 Requires: python-TwistedCore
20 Requires: python-TwistedWeb
21 Requires: python-wxPython
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 BitTorrent is a tool for distributing files. It's extremely easy to
27 use - downloads are started by clicking on hyperlinks. Whenever more
28 than one person is downloading at once they send pieces of the file(s)
29 to each other, thus relieving the central server's bandwidth burden.
30 Even with many simultaneous downloads, the upload burden on the
31 central server remains quite small, since each new downloader
32 introduces new upload capacity.
35 BitTorrent to narzêdzie do rozpowszechniania plików. Jest bardzo ³atwe
36 w u¿yciu - ¶ci±ganie rozpoczyna siê przez klikanie na hiper³±cza.
37 Je¶li wiêcej ni¿ jedna osoba ¶ci±ga dany plik, wysy³aj± czê¶ci pliku
38 miêdzy sob±, ³agodz±c obci±¿enie ³±cza centralnego serwera. Nawet przy
39 wielu jednoczesnych po³±czeniach wykorzystanie ³±cza g³ównego serwera
40 pozostaje do¶æ ma³e, poniewa¿ ka¿dy nowy ¶ci±gaj±cy daje nowe
44 Summary: GUI for BitTorrent
45 Summary: Graficzny interfejs u¿ytkownika dla BitTorrenta
46 Group: X11/Applications
47 Requires: %{name} = %{version}-%{release}
48 Requires: python-pygtk-gtk >= 2.4.0
53 %description gui -l pl
54 Graficzny interfejs u¿ytkownika dla BitTorrenta.
63 sed -i -e "s/'nb_NO'/'nb' /;s/'gr'/'el'/;s/'he_IL'/'he' /" BitTorrent/__init__.py
66 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
74 python ./setup.py install \
76 --root=$RPM_BUILD_ROOT
78 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
79 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
81 rm -rf locale/{in,nn_NO,piglatin}
82 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
83 cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
85 cp $RPM_BUILD_ROOT%{_pixmapsdir}/BitTorrent-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
86 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
91 rm -rf $RPM_BUILD_ROOT
94 %update_desktop_database_post
97 %update_desktop_database_postun
99 %files -f bittorrent.lang
100 %defattr(644,root,root,755)
101 %doc LICENSE.txt README.txt credits.txt
102 %attr(755,root,root) %{_bindir}/bittorrent-console
103 %attr(755,root,root) %{_bindir}/bittorrent-curses
104 %attr(755,root,root) %{_bindir}/bittorrent-tracker
105 %attr(755,root,root) %{_bindir}/changetracker-console
106 %attr(755,root,root) %{_bindir}/launchmany-console
107 %attr(755,root,root) %{_bindir}/launchmany-curses
108 %attr(755,root,root) %{_bindir}/maketorrent-console
109 %attr(755,root,root) %{_bindir}/torrentinfo-console
110 %{py_sitescriptdir}/BitTorrent
111 %{py_sitescriptdir}/Zeroconf.py[co]
112 %{py_sitescriptdir}/khashmir
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_bindir}/bittorrent
118 %attr(755,root,root) %{_bindir}/maketorrent
119 %{_pixmapsdir}/BitTorrent-%{version}
120 %{_pixmapsdir}/bittorrent.png
121 %{_desktopdir}/%{name}.desktop