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 Patch0: %{name}-man_pages.patch
11 Patch1: %{name}-morei18n.patch
12 URL: http://www.bittorrent.com/
13 BuildRequires: python-devel
14 BuildRequires: rpm-pythonprov
15 BuildRequires: sed >= 4.0
16 %pyrequires_eq python-modules
17 Requires: python-Crypto
18 Requires: python-TwistedCore
19 Requires: python-TwistedWeb
20 Requires: python-wxPython
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 BitTorrent is a tool for distributing files. It's extremely easy to
26 use - downloads are started by clicking on hyperlinks. Whenever more
27 than one person is downloading at once they send pieces of the file(s)
28 to each other, thus relieving the central server's bandwidth burden.
29 Even with many simultaneous downloads, the upload burden on the
30 central server remains quite small, since each new downloader
31 introduces new upload capacity.
34 BitTorrent to narzêdzie do rozpowszechniania plików. Jest bardzo ³atwe
35 w u¿yciu - ¶ci±ganie rozpoczyna siê przez klikanie na hiper³±cza.
36 Je¶li wiêcej ni¿ jedna osoba ¶ci±ga dany plik, wysy³aj± czê¶ci pliku
37 miêdzy sob±, ³agodz±c obci±¿enie ³±cza centralnego serwera. Nawet przy
38 wielu jednoczesnych po³±czeniach wykorzystanie ³±cza g³ównego serwera
39 pozostaje do¶æ ma³e, poniewa¿ ka¿dy nowy ¶ci±gaj±cy daje nowe
43 Summary: GUI for BitTorrent
44 Summary: Graficzny interfejs u¿ytkownika dla BitTorrenta
45 Group: X11/Applications
46 Requires: %{name} = %{version}-%{release}
47 Requires: python-pygtk-gtk >= 2.4.0
52 %description gui -l pl
53 Graficzny interfejs u¿ytkownika dla BitTorrenta.
62 sed -i -e "s/'nb_NO'/'nb' /;s/'gr'/'el'/;s/'he_IL'/'he' /" BitTorrent/__init__.py
65 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_mandir}/man1
73 python ./setup.py install \
75 --root=$RPM_BUILD_ROOT
77 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
78 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
80 rm -rf locale/{in,nn_NO,piglatin}
81 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
82 cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
87 rm -rf $RPM_BUILD_ROOT
89 %files -f bittorrent.lang
90 %defattr(644,root,root,755)
91 %doc LICENSE.txt README.txt credits.txt
92 %attr(755,root,root) %{_bindir}/bittorrent-console
93 %attr(755,root,root) %{_bindir}/bittorrent-curses
94 %attr(755,root,root) %{_bindir}/bittorrent-tracker
95 %attr(755,root,root) %{_bindir}/changetracker-console
96 %attr(755,root,root) %{_bindir}/launchmany-console
97 %attr(755,root,root) %{_bindir}/launchmany-curses
98 %attr(755,root,root) %{_bindir}/maketorrent-console
99 %attr(755,root,root) %{_bindir}/torrentinfo-console
100 %{py_sitescriptdir}/BitTorrent
101 %{py_sitescriptdir}/Zeroconf.py[co]
102 %{py_sitescriptdir}/khashmir
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/bittorrent
108 %attr(755,root,root) %{_bindir}/maketorrent
109 %{_pixmapsdir}/BitTorrent-%{version}