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