]> git.pld-linux.org Git - packages/BitTorrent.git/blob - BitTorrent.spec
- ver. 4.20.7
[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.20.7
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:  285f238330992fda6688f70ab377f2c3
10 Source1:        %{name}.desktop
11 Patch0:         %{name}-man_pages.patch
12 Patch1:         %{name}-morei18n.patch
13 URL:            http://www.bittorrent.com/
14 BuildRequires:  python-devel
15 BuildRequires:  rpm-pythonprov
16 BuildRequires:  sed >= 4.0
17 %pyrequires_eq  python-modules
18 Requires:       python-Crypto
19 Requires:       python-TwistedCore
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-pygtk-gtk >= 2.4.0
47
48 %description gui
49 GUI for BitTorrent.
50
51 %description gui -l pl
52 Graficzny interfejs u¿ytkownika dla BitTorrenta.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58
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 sh makei18n.sh
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
71
72 python ./setup.py install \
73         --optimize=2 \
74         --root=$RPM_BUILD_ROOT
75
76 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
77 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
78
79 rm -rf locale/{in,nn_NO,piglatin}
80 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
81 cp -a locale/*  $RPM_BUILD_ROOT%{_datadir}/locale
82
83 cp $RPM_BUILD_ROOT%{_pixmapsdir}/BitTorrent-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
84 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
85
86 %find_lang bittorrent
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post gui
92 %update_desktop_database_post
93
94 %postun gui
95 %update_desktop_database_postun
96
97 %files -f bittorrent.lang
98 %defattr(644,root,root,755)
99 %doc LICENSE.txt README.txt credits.txt 
100 %attr(755,root,root) %{_bindir}/bittorrent-console
101 %attr(755,root,root) %{_bindir}/bittorrent-curses
102 %attr(755,root,root) %{_bindir}/bittorrent-tracker
103 %attr(755,root,root) %{_bindir}/changetracker-console
104 %attr(755,root,root) %{_bindir}/launchmany-console
105 %attr(755,root,root) %{_bindir}/launchmany-curses
106 %attr(755,root,root) %{_bindir}/maketorrent-console
107 %attr(755,root,root) %{_bindir}/torrentinfo-console
108 %{py_sitescriptdir}/BitTorrent
109 %{py_sitescriptdir}/Zeroconf.py[co]
110 %{py_sitescriptdir}/khashmir
111 %{_mandir}/man1/*
112
113 %files gui
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_bindir}/bittorrent
116 %attr(755,root,root) %{_bindir}/maketorrent
117 %{_pixmapsdir}/BitTorrent-%{version}
118 %{_pixmapsdir}/bittorrent.png
119 %{_desktopdir}/%{name}.desktop
This page took 0.084364 seconds and 3 git commands to generate.