-Summary: BitTorrent client written in the C++
-Summary(pl): Klient BitTorrenta napisany w C++
+Summary: Enhanced CTorrent - BitTorrent client written in the C++
+Summary(pl.UTF-8): Enhanced CTorrent - Klient BitTorrenta napisany w C++
Name: ctorrent
-Version: 1.3.4
-Release: 1
+Version: 3.3.2
+Release: 4
License: GPL
Group: Applications/Networking
-Source0: http://dl.sourceforge.net/ctorrent/%{name}-%{version}.tar.bz2
-# Source0-md5: 823010ec78215d476537c9eba9381cdd
-URL: http://ctorrent.sourceforge.net/
+Source0: http://www.rahul.net/dholmes/ctorrent/ctorrent-dnh%{version}.tar.gz
+# Source0-md5: 59b23dd05ff70791cd6449effa7fc3b6
+Patch0: %{name}-m4.patch
+Patch1: ctorrent-CVE-2009-1759.patch
+URL: http://www.rahul.net/dholmes/ctorrent/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
BuildRequires: libstdc++-devel
BuildRequires: openssl-devel >= 0.9.7d
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
CTorrent can help you do exactly this, assuming you are downloading
from the BitTorrent network.
-%description -l pl
-CTorrent jest programem dla konsoli, co oznacza ¿e nie wymaga ¿adnych
-komponentów graficznych (takich jak serwer X) na maszynie, na której
-bêdzie uruchamiany, mo¿na go uruchomiæ nawet zdalnie je¶li zajdzie
-taka potrzeba. Jest sporo osób, które u¿ywaj± serwerów tylko
-z konsol± i chc± u¿ywaæ ich do ¶ci±gania plików w tle.
-CTorrent pomaga dok³adnie w tym zadaniu, zak³adaj±c i¿
-u¿ywa siê sieci BitTorrent.
+%description -l pl.UTF-8
+CTorrent jest programem dla konsoli, co oznacza że nie wymaga żadnych
+komponentów graficznych (takich jak serwer X) na maszynie, na której
+będzie uruchamiany, można go uruchomić nawet zdalnie jeśli zajdzie
+taka potrzeba. Jest sporo osób, które używają serwerów tylko
+z konsolą i chcą używać ich do ściągania plików w tle.
+CTorrent pomaga dokładnie w tym zadaniu, zakładając iż
+używa się sieci BitTorrent.
%prep
-%setup -q
+%setup -q -n %{name}-dnh%{version}
+%patch0 -p1
+%patch1 -p0
%build
-%configure
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ CPPFLAGS="-I/usr/include/openssl"
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README
+%doc AUTHORS NEWS README UserGuide README-DNH.TXT ChangeLog
%attr(755,root,root) %{_bindir}/ctorrent