%include /usr/lib/rpm/macros.python Summary: BitTorrent - a tool for distributing files Summary(pl): BitTorrent - narzędzie do rozpowszechniania plików Name: BitTorrent Version: 3.3 Release: 1 License: MIT Group: Applications/Communications #Source0Download: http://bitconjurer.org/BitTorrent/download.html Source0: http://bitconjurer.org/BitTorrent/%{name}-%{version}.tar.gz # Source0-md5: 1ecf1fc40b4972470313f9ae728206e8 URL: http://bitconjurer.org/BitTorrent/ Requires: python-wxPython BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description BitTorrent is a tool for distributing files. It's extremely easy to use - downloads are started by clicking on hyperlinks. Whenever more than one person is downloading at once they send pieces of the file(s) to each other, thus relieving the central server's bandwidth burden. Even with many simultaneous downloads, the upload burden on the central server remains quite small, since each new downloader introduces new upload capacity. %description -l pl BitTorrent to narzędzie do rozpowszechniania plików. Jest bardzo łatwe w użyciu - ściąganie rozpoczyna się przez klikanie na hiperłącza. Jeśli więcej niż jedna osoba ściąga dany plik, wysyłają części pliku między sobą, łagodząc obciążenie łącza centralnego serwera. Nawet przy wielu jednoczesnych połączeniach wykorzystanie łącza głównego serwera pozostaje dość małe, ponieważ każdy nowy ściągający daje nowe możliwości ściągania. %prep %setup -q %build find -type f | xargs perl -pi -e 's/python2/python/g' %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT ./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix} chmod a-x $RPM_BUILD_ROOT%{_bindir}/btdownloadlibrary.py %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc INSTALL.unix.txt LICENSE.txt README.txt credits.txt %attr(755,root,root) %{_bindir}/* %{py_sitedir}/BitTorrent