]> git.pld-linux.org Git - packages/BitTorrent.git/blob - BitTorrent.spec
- License: MIT or BitTorrent Open Source License ?
[packages/BitTorrent.git] / BitTorrent.spec
1 Summary:        BitTorrent - a tool for distributing files
2 Summary(pl):    BitTorrent - narzêdzie do rozpowszechniania plików
3 Name:           BitTorrent
4 Version:        4.0.0
5 Release:        0.1
6 #license fix ?
7 License:        MIT / BitTorrent Open Source License
8 Group:          Applications/Communications
9 Source0:        http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
10 # Source0-md5:  67f449df351b66f408b72b6bd196952f
11 Patch0:         %{name}-man_pages.patch
12 URL:            http://www.bittorrent.com/
13 BuildRequires:  python-devel
14 BuildRequires:  rpm-pythonprov 
15 BuildRequires:  sed >= 4.0
16 BuildRequires:  unzip
17 %pyrequires_eq  python-modules
18 Obsoletes:      BitTornado
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 BitTorrent is a tool for distributing files. It's extremely easy to
24 use - downloads are started by clicking on hyperlinks. Whenever more
25 than one person is downloading at once they send pieces of the file(s)
26 to each other, thus relieving the central server's bandwidth burden.
27 Even with many simultaneous downloads, the upload burden on the
28 central server remains quite small, since each new downloader
29 introduces new upload capacity.
30
31 %description -l pl
32 BitTorrent to narzêdzie do rozpowszechniania plików. Jest bardzo ³atwe
33 w u¿yciu - ¶ci±ganie rozpoczyna siê przez klikanie na hiper³±cza.
34 Je¶li wiêcej ni¿ jedna osoba ¶ci±ga dany plik, wysy³aj± czê¶ci pliku
35 miêdzy sob±, ³agodz±c obci±¿enie ³±cza centralnego serwera. Nawet przy
36 wielu jednoczesnych po³±czeniach wykorzystanie ³±cza g³ównego serwera
37 pozostaje do¶æ ma³e, poniewa¿ ka¿dy nowy ¶ci±gaj±cy daje nowe
38 mo¿liwo¶ci ¶ci±gania.
39
40 %package gui
41 Summary:        GUI for BitTorrent
42 Summary:        Graficzny interfejs u¿ytkownika dla BitTorrenta
43 Group:          X11/Applications
44 Requires:       %{name} = %{version}-%{release}
45 Requires:       python-wxPython
46 Obsoletes:      BitTornado-gui
47
48 %description gui
49 wxWindows based GUI for BitTorrent.
50
51 %description gui -l pl
52 Bazuj±cy na wxWindows graficzny interfejs u¿ytkownika dla BitTorrenta.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57
58 %build
59 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_mandir}/man1
64
65 python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
66 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
67 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc LICENSE.txt README.txt credits.txt 
75 %attr(755,root,root) %{_bindir}/btdownloadcurses.py
76 %attr(755,root,root) %{_bindir}/btdownloadheadless.py
77 %attr(755,root,root) %{_bindir}/btlaunchmany*.py
78 %attr(755,root,root) %{_bindir}/btmaketorrent.py
79 %attr(755,root,root) %{_bindir}/btr*.py
80 %attr(755,root,root) %{_bindir}/btt*.py
81 %attr(755,root,root) %{_bindir}/btshowmetainfo.py
82 %{py_sitescriptdir}/BitTorrent
83 %{_mandir}/man1/*
84
85 %files gui
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_bindir}/btdownloadgui.py
88 %attr(755,root,root) %{_bindir}/btmaketorrentgui.py
This page took 0.048817 seconds and 3 git commands to generate.