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