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: 43935e080fade4726fa07bb2565f5f48
10 Source1: %{name}.desktop
11 Patch0: %{name}-man_pages.patch
12 Patch1: %{name}-morei18n.patch
13 Patch2: %{name}-pl.patch
14 URL: http://www.bittorrent.com/
15 BuildRequires: python-devel
16 BuildRequires: python-devel-tools
17 BuildRequires: python-TwistedCore
18 BuildRequires: rpm-pythonprov
19 BuildRequires: sed >= 4.0
20 %pyrequires_eq python-modules
21 Requires: python-Crypto
22 Requires: python-TwistedCore
23 Requires: python-TwistedWeb
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 BitTorrent is a tool for distributing files. It's extremely easy to
29 use - downloads are started by clicking on hyperlinks. Whenever more
30 than one person is downloading at once they send pieces of the file(s)
31 to each other, thus relieving the central server's bandwidth burden.
32 Even with many simultaneous downloads, the upload burden on the
33 central server remains quite small, since each new downloader
34 introduces new upload capacity.
36 %description -l pl.UTF-8
37 BitTorrent to narzędzie do rozpowszechniania plików. Jest bardzo łatwe
38 w użyciu - ściąganie rozpoczyna się przez klikanie na hiperłącza.
39 Jeśli więcej niż jedna osoba ściąga dany plik, wysyłają części pliku
40 między sobą, łagodząc obciążenie łącza centralnego serwera. Nawet przy
41 wielu jednoczesnych połączeniach wykorzystanie łącza głównego serwera
42 pozostaje dość małe, ponieważ każdy nowy ściągający daje nowe
46 Summary: GUI for BitTorrent
47 Summary(pl.UTF-8): Graficzny interfejs użytkownika dla BitTorrenta
48 Group: X11/Applications
49 Requires: %{name} = %{version}-%{release}
50 Requires: python-wxPython
55 %description gui -l pl.UTF-8
56 Graficzny interfejs użytkownika dla BitTorrenta.
66 sed -i -e "s/'nb_NO'/'nb' /;s/'gr'/'el'/;s/'he_IL'/'he' /" BitTorrent/__init__.py
69 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
77 python ./setup.py install \
79 --root=$RPM_BUILD_ROOT
81 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
82 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
84 rm -rf locale/{in,nn_NO,piglatin}
85 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
86 cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
88 cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
89 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
94 rm -rf $RPM_BUILD_ROOT
97 %update_desktop_database_post
100 %update_desktop_database_postun
102 %files -f bittorrent.lang
103 %defattr(644,root,root,755)
104 %doc LICENSE.txt README.txt credits.txt
105 %attr(755,root,root) %{_bindir}/bittorrent-console
106 %attr(755,root,root) %{_bindir}/bittorrent-curses
107 %attr(755,root,root) %{_bindir}/bittorrent-tracker
108 %attr(755,root,root) %{_bindir}/changetracker-console
109 %attr(755,root,root) %{_bindir}/launchmany-console
110 %attr(755,root,root) %{_bindir}/launchmany-curses
111 %attr(755,root,root) %{_bindir}/maketorrent-console
112 %attr(755,root,root) %{_bindir}/torrentinfo-console
113 %dir %{py_sitescriptdir}/BitTorrent
114 %{py_sitescriptdir}/BitTorrent/*.py[co]
115 %{py_sitescriptdir}/Zeroconf.py[co]
116 %{py_sitescriptdir}/khashmir
117 %{py_sitescriptdir}/BTL
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_bindir}/bittorrent
123 %attr(755,root,root) %{_bindir}/maketorrent
124 %{py_sitescriptdir}/BitTorrent/GUI_wx
125 %{_pixmapsdir}/*-%{version}
126 %{_pixmapsdir}/bittorrent.png
127 %{_desktopdir}/%{name}.desktop