1 Summary: BitTorrent - a tool for distributing files
2 Summary(pl.UTF-8): BitTorrent - narzędzie do rozpowszechniania plików
6 License: BitTorrent Open Source License
7 Group: Applications/Communications
8 Source0: http://download.bittorrent.com/dl/%{name}-%{version}.tar.gz
9 # Source0-md5: d8891cfa4c6bb796c8e948eace7694bc
10 Source1: %{name}.desktop
11 Patch0: %{name}-man_pages.patch
12 Patch1: %{name}-morei18n.patch
13 Patch2: %{name}-pl.patch
14 Patch3: %{name}-xgettext.patch
15 URL: http://www.bittorrent.com/
16 BuildRequires: gettext-devel
17 BuildRequires: python-TwistedCore
18 BuildRequires: python-devel
19 BuildRequires: rpm-pythonprov
20 BuildRequires: sed >= 4.0
21 %pyrequires_eq python-modules
22 Requires: python-Crypto
23 Requires: python-TwistedCore
24 Requires: python-TwistedWeb
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 BitTorrent is a tool for distributing files. It's extremely easy to
30 use - downloads are started by clicking on hyperlinks. Whenever more
31 than one person is downloading at once they send pieces of the file(s)
32 to each other, thus relieving the central server's bandwidth burden.
33 Even with many simultaneous downloads, the upload burden on the
34 central server remains quite small, since each new downloader
35 introduces new upload capacity.
37 %description -l pl.UTF-8
38 BitTorrent to narzędzie do rozpowszechniania plików. Jest bardzo łatwe
39 w użyciu - ściąganie rozpoczyna się przez klikanie na hiperłącza.
40 Jeśli więcej niż jedna osoba ściąga dany plik, wysyłają części pliku
41 między sobą, łagodząc obciążenie łącza centralnego serwera. Nawet przy
42 wielu jednoczesnych połączeniach wykorzystanie łącza głównego serwera
43 pozostaje dość małe, ponieważ każdy nowy ściągający daje nowe
47 Summary: GUI for BitTorrent
48 Summary(pl.UTF-8): Graficzny interfejs użytkownika dla BitTorrenta
49 Group: X11/Applications
50 Requires: %{name} = %{version}-%{release}
51 Requires: python-wxPython
52 Requires(post,postun): desktop-file-utils
57 %description gui -l pl.UTF-8
58 Graficzny interfejs użytkownika dla BitTorrenta.
71 sed -i -e "s/'nb_NO'/'nb'/" BTL/language.py
72 sed -i -e "s/'nn_NO'/'nn'/" BTL/language.py
73 sed -i -e "s/'in'/'id'/" BTL/language.py
76 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
84 python ./setup.py install \
86 --root=$RPM_BUILD_ROOT
88 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
89 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
91 rm -rf locale/piglatin
92 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
93 cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
95 cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
96 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
101 rm -rf $RPM_BUILD_ROOT
104 %update_desktop_database_post
107 %update_desktop_database_postun
109 %files -f bittorrent.lang
110 %defattr(644,root,root,755)
111 %doc LICENSE.txt README.txt credits.txt
112 %attr(755,root,root) %{_bindir}/bittorrent-console
113 %attr(755,root,root) %{_bindir}/bittorrent-curses
114 %attr(755,root,root) %{_bindir}/bittorrent-tracker
115 %attr(755,root,root) %{_bindir}/changetracker-console
116 %attr(755,root,root) %{_bindir}/launchmany-console
117 %attr(755,root,root) %{_bindir}/launchmany-curses
118 %attr(755,root,root) %{_bindir}/maketorrent-console
119 %attr(755,root,root) %{_bindir}/torrentinfo-console
120 %dir %{py_sitescriptdir}/BitTorrent
121 %{py_sitescriptdir}/BitTorrent/*.py[co]
122 %{py_sitescriptdir}/Zeroconf.py[co]
123 %{py_sitescriptdir}/khashmir
124 %{py_sitescriptdir}/BTL
125 %{py_sitescriptdir}/*.egg-info
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_bindir}/bittorrent
131 %attr(755,root,root) %{_bindir}/maketorrent
132 %{py_sitescriptdir}/BitTorrent/GUI_wx
133 %{_pixmapsdir}/*-%{version}
134 %{_pixmapsdir}/bittorrent.png
135 %{_desktopdir}/%{name}.desktop