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