]> git.pld-linux.org Git - packages/BitTorrent.git/blob - BitTorrent.spec
407fa6bdd24375df98fcc094237cc248d3d97fed
[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.4
5 Release:        2
6 License:        BitTorrent Open Source License
7 Group:          Applications/Communications
8 Source0:        http://www.bittorrent.com/dl/%{name}-%{version}.tar.gz
9 # Source0-md5:  6616f6ae8a8460804ce43b3cf4b6f73b
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 Requires:       python-TwistedWeb
21 Requires:       python-wxPython
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 BitTorrent is a tool for distributing files. It's extremely easy to
27 use - downloads are started by clicking on hyperlinks. Whenever more
28 than one person is downloading at once they send pieces of the file(s)
29 to each other, thus relieving the central server's bandwidth burden.
30 Even with many simultaneous downloads, the upload burden on the
31 central server remains quite small, since each new downloader
32 introduces new upload capacity.
33
34 %description -l pl
35 BitTorrent to narzêdzie do rozpowszechniania plików. Jest bardzo ³atwe
36 w u¿yciu - ¶ci±ganie rozpoczyna siê przez klikanie na hiper³±cza.
37 Je¶li wiêcej ni¿ jedna osoba ¶ci±ga dany plik, wysy³aj± czê¶ci pliku
38 miêdzy sob±, ³agodz±c obci±¿enie ³±cza centralnego serwera. Nawet przy
39 wielu jednoczesnych po³±czeniach wykorzystanie ³±cza g³ównego serwera
40 pozostaje do¶æ ma³e, poniewa¿ ka¿dy nowy ¶ci±gaj±cy daje nowe
41 mo¿liwo¶ci ¶ci±gania.
42
43 %package gui
44 Summary:        GUI for BitTorrent
45 Summary:        Graficzny interfejs u¿ytkownika dla BitTorrenta
46 Group:          X11/Applications
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       python-pygtk-gtk >= 2.4.0
49
50 %description gui
51 GUI for BitTorrent.
52
53 %description gui -l pl
54 Graficzny interfejs u¿ytkownika dla BitTorrenta.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59 %patch1 -p1
60
61 mv -f po/nb{_NO,}.po
62 rm -rf locale
63 sed -i -e "s/'nb_NO'/'nb'   /;s/'gr'/'el'/;s/'he_IL'/'he'   /" BitTorrent/__init__.py
64
65 %build
66 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
67
68 sh makei18n.sh
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
73
74 python ./setup.py install \
75         --optimize=2 \
76         --root=$RPM_BUILD_ROOT
77
78 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
79 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
80
81 rm -rf locale/{in,nn_NO,piglatin}
82 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
83 cp -a locale/*  $RPM_BUILD_ROOT%{_datadir}/locale
84
85 cp $RPM_BUILD_ROOT%{_pixmapsdir}/BitTorrent-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
86 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
87
88 %find_lang bittorrent
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post gui
94 %update_desktop_database_post
95
96 %postun gui
97 %update_desktop_database_postun
98
99 %files -f bittorrent.lang
100 %defattr(644,root,root,755)
101 %doc LICENSE.txt README.txt credits.txt 
102 %attr(755,root,root) %{_bindir}/bittorrent-console
103 %attr(755,root,root) %{_bindir}/bittorrent-curses
104 %attr(755,root,root) %{_bindir}/bittorrent-tracker
105 %attr(755,root,root) %{_bindir}/changetracker-console
106 %attr(755,root,root) %{_bindir}/launchmany-console
107 %attr(755,root,root) %{_bindir}/launchmany-curses
108 %attr(755,root,root) %{_bindir}/maketorrent-console
109 %attr(755,root,root) %{_bindir}/torrentinfo-console
110 %{py_sitescriptdir}/BitTorrent
111 %{py_sitescriptdir}/Zeroconf.py[co]
112 %{py_sitescriptdir}/khashmir
113 %{_mandir}/man1/*
114
115 %files gui
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_bindir}/bittorrent
118 %attr(755,root,root) %{_bindir}/maketorrent
119 %{_pixmapsdir}/BitTorrent-%{version}
120 %{_pixmapsdir}/bittorrent.png
121 %{_desktopdir}/%{name}.desktop
This page took 0.03508 seconds and 2 git commands to generate.