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-devel
18 BuildRequires: python-devel-tools
19 BuildRequires: python-TwistedCore
20 BuildRequires: rpm-pythonprov
21 BuildRequires: sed >= 4.0
22 %pyrequires_eq python-modules
23 Requires: python-Crypto
24 Requires: python-TwistedCore
25 Requires: python-TwistedWeb
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 BitTorrent is a tool for distributing files. It's extremely easy to
31 use - downloads are started by clicking on hyperlinks. Whenever more
32 than one person is downloading at once they send pieces of the file(s)
33 to each other, thus relieving the central server's bandwidth burden.
34 Even with many simultaneous downloads, the upload burden on the
35 central server remains quite small, since each new downloader
36 introduces new upload capacity.
38 %description -l pl.UTF-8
39 BitTorrent to narzędzie do rozpowszechniania plików. Jest bardzo łatwe
40 w użyciu - ściąganie rozpoczyna się przez klikanie na hiperłącza.
41 Jeśli więcej niż jedna osoba ściąga dany plik, wysyłają części pliku
42 między sobą, łagodząc obciążenie łącza centralnego serwera. Nawet przy
43 wielu jednoczesnych połączeniach wykorzystanie łącza głównego serwera
44 pozostaje dość małe, ponieważ każdy nowy ściągający daje nowe
48 Summary: GUI for BitTorrent
49 Summary(pl.UTF-8): Graficzny interfejs użytkownika dla BitTorrenta
50 Group: X11/Applications
51 Requires: %{name} = %{version}-%{release}
52 Requires: python-wxPython
53 Requires(post,postun): desktop-file-utils
58 %description gui -l pl.UTF-8
59 Graficzny interfejs użytkownika dla BitTorrenta.
72 sed -i -e "s/'nb_NO'/'nb'/" BTL/language.py
73 sed -i -e "s/'nn_NO'/'nn'/" BTL/language.py
74 sed -i -e "s/'in'/'id'/" BTL/language.py
77 find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_mandir}/man1}
85 python ./setup.py install \
87 --root=$RPM_BUILD_ROOT
89 find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
90 install debian/* $RPM_BUILD_ROOT%{_mandir}/man1
92 rm -rf locale/piglatin
93 find locale -type f ! -name '*.mo' -exec rm "{}" ";"
94 cp -a locale/* $RPM_BUILD_ROOT%{_datadir}/locale
96 cp $RPM_BUILD_ROOT%{_pixmapsdir}/*-%{version}/logo/bittorrent_icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/bittorrent.png
97 cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
102 rm -rf $RPM_BUILD_ROOT
105 %update_desktop_database_post
108 %update_desktop_database_postun
110 %files -f bittorrent.lang
111 %defattr(644,root,root,755)
112 %doc LICENSE.txt README.txt credits.txt
113 %attr(755,root,root) %{_bindir}/bittorrent-console
114 %attr(755,root,root) %{_bindir}/bittorrent-curses
115 %attr(755,root,root) %{_bindir}/bittorrent-tracker
116 %attr(755,root,root) %{_bindir}/changetracker-console
117 %attr(755,root,root) %{_bindir}/launchmany-console
118 %attr(755,root,root) %{_bindir}/launchmany-curses
119 %attr(755,root,root) %{_bindir}/maketorrent-console
120 %attr(755,root,root) %{_bindir}/torrentinfo-console
121 %dir %{py_sitescriptdir}/BitTorrent
122 %{py_sitescriptdir}/BitTorrent/*.py[co]
123 %{py_sitescriptdir}/Zeroconf.py[co]
124 %{py_sitescriptdir}/khashmir
125 %{py_sitescriptdir}/BTL
126 %{py_sitescriptdir}/*.egg-info
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/bittorrent
132 %attr(755,root,root) %{_bindir}/maketorrent
133 %{py_sitescriptdir}/BitTorrent/GUI_wx
134 %{_pixmapsdir}/*-%{version}
135 %{_pixmapsdir}/bittorrent.png
136 %{_desktopdir}/%{name}.desktop