2 %include /usr/lib/rpm/macros.python
4 Summary: BitTorrent is a tool for distributing files.
9 Group: Applications/Communications
10 Source0: %{name}-%{version}.tar.gz
11 #Patch0: %{name}-what.patch
12 URL: http://bitconjurer.org/BitTorrent/
13 Requires: python-wxPython
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 BitTorrent is a tool for distributing files. It's extremely
18 easy to use - downloads are started by clicking on hyperlinks.
19 Whenever more than one person is downloading at once
20 they send pieces of the file(s) to each other, thus relieving
21 the central server's bandwidth burden. Even with many
22 simultaneous downloads, the upload burden on the central server
23 remains quite small, since each new downloader introduces new
30 find -type f | xargs perl -pi -e 's/python2/python/g'
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT
36 ./setup.py install --prefix=$RPM_BUILD_ROOT/%{_prefix}
37 chmod a-x $RPM_BUILD_ROOT/%{_bindir}/btdownloadlibrary.py
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
44 %doc FAQ.txt INSTALL.unix.txt LICENSE.txt README.txt credits.txt todo.txt
45 %attr(755,root,root) %{_bindir}/btdownloadgui.py
46 %attr(755,root,root) %{_bindir}/btdownloadheadless.py
47 %attr(755,root,root) %{_bindir}/btdownloadprefetched.py
48 %attr(755,root,root) %{_bindir}/btmakemetafile.py
49 %attr(755,root,root) %{_bindir}/bttrack.py
50 %{_bindir}/btdownloadlibrary.py
51 %{py_sitedir}/BitTorrent