Summary: BitTorrent - a tool for distributing files Summary(pl): BitTorrent - narzędzie do rozpowszechniania plików Name: BitTorrent Version: 4.0.0 Release: 0.1 #license fix ? License: MIT / BitTorrent Open Source License Group: Applications/Communications Source0: http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz # Source0-md5: 67f449df351b66f408b72b6bd196952f Patch0: %{name}-man_pages.patch URL: http://www.bittorrent.com/ BuildRequires: python-devel BuildRequires: rpm-pythonprov BuildRequires: sed >= 4.0 BuildRequires: unzip %pyrequires_eq python-modules Obsoletes: BitTornado BuildArch: noarch 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. %package gui Summary: GUI for BitTorrent Summary: Graficzny interfejs użytkownika dla BitTorrenta Group: X11/Applications Requires: %{name} = %{version}-%{release} Requires: python-wxPython Obsoletes: BitTornado-gui %description gui wxWindows based GUI for BitTorrent. %description gui -l pl Bazujący na wxWindows graficzny interfejs użytkownika dla BitTorrenta. %prep %setup -q %patch0 -p1 %build find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_mandir}/man1 python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm install debian/* $RPM_BUILD_ROOT%{_mandir}/man1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc LICENSE.txt README.txt credits.txt %attr(755,root,root) %{_bindir}/btdownloadcurses.py %attr(755,root,root) %{_bindir}/btdownloadheadless.py %attr(755,root,root) %{_bindir}/btlaunchmany*.py %attr(755,root,root) %{_bindir}/btmaketorrent.py %attr(755,root,root) %{_bindir}/btr*.py %attr(755,root,root) %{_bindir}/btt*.py %attr(755,root,root) %{_bindir}/btshowmetainfo.py %{py_sitescriptdir}/BitTorrent %{_mandir}/man1/* %files gui %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/btdownloadgui.py %attr(755,root,root) %{_bindir}/btmaketorrentgui.py