]> git.pld-linux.org Git - packages/BitTorrent.git/blob - BitTorrent.spec
a494e3dc3b32a892421ed54a718d7f5ff1a8feaf
[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.2.2
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:  2a85715b8ef0335ecc9e8ad91860231b
10 Patch0:         %{name}-man_pages.patch
11 Patch1:         %{name}-morei18n.patch
12 URL:            http://www.bittorrent.com/
13 BuildRequires:  python-devel
14 BuildRequires:  rpm-pythonprov
15 BuildRequires:  sed >= 4.0
16 %pyrequires_eq  python-modules
17 Requires:       python-Crypto
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-pygtk-gtk >= 2.4.0
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 %patch1 -p1
56
57 mv -f po/{gr,el}.po
58 mv -f po/he{_IL,}.po
59 mv -f po/nb{_NO,}.po
60 rm -rf locale
61 sed -i -e "s/'nb_NO'/'nb'   /;s/'gr'/'el'/;s/'he_IL'/'he'   /" BitTorrent/__init__.py
62
63 %build
64 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_mandir}/man1
69
70 python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
71 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
72 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
73
74 %find_lang bittorrent
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files -f bittorrent.lang
80 %defattr(644,root,root,755)
81 %doc LICENSE.txt README.txt credits.txt 
82 %attr(755,root,root) %{_bindir}/bittorrent-console
83 %attr(755,root,root) %{_bindir}/bittorrent-curses
84 %attr(755,root,root) %{_bindir}/bittorrent-tracker
85 %attr(755,root,root) %{_bindir}/changetracker-console
86 %attr(755,root,root) %{_bindir}/launchmany-console
87 %attr(755,root,root) %{_bindir}/launchmany-curses
88 %attr(755,root,root) %{_bindir}/maketorrent-console
89 %attr(755,root,root) %{_bindir}/torrentinfo-console
90 %{py_sitescriptdir}/BitTorrent
91 %{py_sitescriptdir}/khashmir
92 %{_mandir}/man1/*
93
94 %files gui
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_bindir}/bittorrent
97 %attr(755,root,root) %{_bindir}/maketorrent
98 %{_pixmapsdir}/BitTorrent-%{version}
This page took 1.071446 seconds and 2 git commands to generate.