]> git.pld-linux.org Git - packages/BitTorrent.git/blob - BitTorrent.spec
- initial revision
[packages/BitTorrent.git] / BitTorrent.spec
1
2 %include /usr/lib/rpm/macros.python
3
4 Summary:        BitTorrent is a tool for distributing files.
5 Name:           BitTorrent
6 Version:        3.1
7 Release:        0.1
8 License:        MIT
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)
15
16 %description
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
24 upload capacity.
25
26 %prep
27 %setup -q
28
29 %build
30 find -type f | xargs perl -pi -e 's/python2/python/g'
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT
35
36 ./setup.py install --prefix=$RPM_BUILD_ROOT/%{_prefix}
37 chmod a-x $RPM_BUILD_ROOT/%{_bindir}/btdownloadlibrary.py
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
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
This page took 0.06554 seconds and 3 git commands to generate.