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