-Summary: BitTornado is an improved bittorrent client
-Summary(pl): BitTornado jest ulepszym klientem bittorrenta
+Summary: BitTornado - an improved bittorrent client
+Summary(pl.UTF-8): BitTornado - ulepszony klient bittorrenta
Name: BitTornado
-Version: 0.3.7
-Release: 1
+Version: 0.3.18
+Release: 2
License: MIT
Group: Applications/Communications
-Source0: http://e.scarywater.net/bt/download/%{name}-%{version}.tar.gz
-# Source0-md5: ffeccfa4ee6a5732ea036332ccf34e92
+Source0: http://download2.bittornado.com/download/%{name}-%{version}.tar.gz
+# Source0-md5: faeb137036cfaaeab91afc7f62c7dc30
URL: http://bittornado.com/
BuildRequires: python-devel
-BuildRequires: rpm-pythonprov
+BuildRequires: rpm-pythonprov
BuildRequires: sed >= 4.0
-BuildRequires: unzip
-Requires: python-modules
+%pyrequires_eq python-modules
+Obsoletes: BitTorrent < 4.2.0
BuildArch: noarch
-Obsoletes: BitTorrent
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-BitTornado is an improved bittorrent client that was built on the original
-BitTorrent. This client features an enhanced console/curses mode, lots of new
-features under the hood, and is generally one of the most advanced clients out
-there. It allows you to limit your bandwidth consumption, and provides more
-control over your torrents. It does everything the original bittorrent does,
-plus more.
+BitTornado is an improved bittorrent client that was built on the
+original BitTorrent. This client features an enhanced console/curses
+mode, lots of new features under the hood, and is generally one of the
+most advanced clients out there. It allows you to limit your bandwidth
+consumption, and provides more control over your torrents. It does
+everything the original bittorrent does, plus more.
-%description -l pl
-BitTornado jest ulepszonym klientem bittorrenta zbudowanym bazuj±c na oryginalnym BitTorrent. Klient charakteryzuje siê rozszerzon± obs³ug± konsoli, kilkoma nowymi w³a¶ciwo¶ciami i jest generalnie jednym z bardziej zaawansowanych klientów bittorrenta. Pozwala ograniczaæ przepustowo¶æ oraz udostêpnia du¿± kontrolê nad torrentami. Umie wszystko co umia³ oryginalny klient bittorrenta i jeszcze troszkê wiêcej.
+%description -l pl.UTF-8
+BitTornado jest ulepszonym klientem bittorrenta zbudowanym bazując na
+oryginalnym BitTorrent. Klient charakteryzuje się rozszerzoną obsługą
+konsoli, kilkoma nowymi właściwościami i jest generalnie jednym z
+bardziej zaawansowanych klientów bittorrenta. Pozwala ograniczać
+przepustowość oraz udostępnia dużą kontrolę nad torrentami. Umie
+wszystko co umiał oryginalny klient bittorrenta i jeszcze troszkę
+więcej.
%package gui
Summary: GUI for BitTornado
-Summary: Graficzny interfejs u¿ytkownika dla BitTornado
+Summary(pl.UTF-8): Graficzny interfejs użytkownika dla BitTornado
Group: X11/Applications
Requires: %{name} = %{version}-%{release}
-Requires: python-wxPython
-Obsoletes: BitTorrent-gui
+Requires: python-wxPython >= 2.5.2
+Obsoletes: BitTorrent-gui < 4.2.0
%description gui
wxWindows based GUI for BitTorrent.
-%description gui -l pl
-Bazuj±cy na wxWindows graficzny interfejs u¿ytkownika dla BitTorrenta.
+%description gui -l pl.UTF-8
+Bazujący na wxWindows graficzny interfejs użytkownika dla BitTorrenta.
%prep
%setup -q -n %{name}-CVS
+# enabled Psyco
+%{__sed} -i 's,^psyco = 0,psyco = 1,' BitTornado/PSYCO.py
%build
find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
+install docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.txt
+%doc *.txt
%attr(755,root,root) %{_bindir}/btcompletedir.py
%attr(755,root,root) %{_bindir}/btdownloadcurses.py
%attr(755,root,root) %{_bindir}/btdownloadheadless.py
%attr(755,root,root) %{_bindir}/btshowmetainfo.py
%attr(755,root,root) %{_bindir}/btsethttpseeds.py
%attr(755,root,root) %{_bindir}/btcopyannounce.py
-%{py_sitescriptdir}/%{name}/
+%{py_sitescriptdir}/%{name}
+%{_mandir}/man1/*.bittornado.1*
+%{_mandir}/man1/btcopyannounce.1*
+%{_mandir}/man1/btsethttpseeds.1*
%files gui
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/btcompletedirgui.py
%attr(755,root,root) %{_bindir}/btmaketorrentgui.py
%attr(755,root,root) %{_bindir}/bt-t-make.py
+%{_mandir}/man1/btmaketorrentgui.1*