--- /var/cvs-specs/SPECS/rb_libtorrent.spec	2008-05-21 03:12:24.000000000 +0200
+++ rb_libtorrent.spec	2008-08-03 13:38:39.000000000 +0200
@@ -2,19 +2,19 @@
 Summary:	A C++ BitTorrent library
 Summary(pl.UTF-8):	Biblioteka BitTorrenta napisana w C++
 Name:		rb_libtorrent
-Version:	0.13
+Version:	0.13.1
 Release:	1
 License:	BSD
 Group:		Libraries
-Source0:	http://dl.sourceforge.net/libtorrent/libtorrent-%{version}.tar.gz
-# Source0-md5:	571a91a98c7426321681dd9f767a87de
-Patch0:		%{name}-boost_1_35.patch
+Source0:	http://dl.sourceforge.net/libtorrent/libtorrent-rasterbar-%{version}.tar.gz
+# Source0-md5:	9d6b112fedc5861402647ff72e95dba0
+## Patch0:		%{name}-boost_1_35.patch
 URL:		http://www.rasterbar.com/products/libtorrent/
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	boost-devel >= 1.35.0
 BuildRequires:	libstdc++-devel
-BuildRequires:	sed >= 4.0
+## BuildRequires:	sed >= 4.0
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -77,27 +77,21 @@
 Statyczna biblioteka rb_libtorrent.
 
 %prep
-%setup -q -n "libtorrent-%{version}"
-%patch0 -p1
+%setup -q -n "libtorrent-rasterbar-%{version}"
+## %patch0 -p1
 ## Some of the sources and docs are executable, which makes rpmlint against
 ## the resulting -debuginfo and -devel packages, respectively, quite angry. :]
 find src docs -type f | xargs chmod a-x
 find -type f -regex '.*\.[hc]pp' | xargs chmod a-x
-## The RST files are the sources used to create the final HTML files; and are
-## not needed.
-rm -f docs/*.rst
-## Fix the installed pkgconfig file: we don't need linkage that the
 ## libtorrent DSO already takes care of.
-%{__sed} -i -e 's/^Libs:.*$/Libs: -L${libdir} -ltorrent/' libtorrent.pc.in
+## %{__sed} -i -e 's/^Libs:.*$/Libs: -L${libdir} -ltorrent/' libtorrent.pc.in
 
 %build
-%{__aclocal} -I m4
-%{__autoconf}
-%{__automake}
 %configure \
-	--enable-examples \
-	--with-zlib=system
-
+	--with-zlib=system --with-zlib=system\
+	--with-boost-system=boost_system --with-boost-date-time=boost_date_time\
+	--with-boost-filesystem=boost_filesystem --with-boost-thread=boost_thread\
+	--with-boost-regex=boost_regex --with-boost-program-options=boost_program_options
 %{__make}
 
 %install
@@ -108,11 +102,8 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-## Do the renaming due to the somewhat limited %{_bindir} namespace.
-rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/*
-
 %clean
-rm -rf $RPM_BUILD_ROOT
+# rm -rf $RPM_BUILD_ROOT
 
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
@@ -120,21 +111,20 @@
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog COPYING README
-%attr(755,root,root) %{_bindir}/*torrent*
 #%%attr(755,root,root) %{_libdir}/libtorrent.so.*.*.*
-%attr(755,root,root) %{_libdir}/libtorrent-0.13.so
+%attr(755,root,root) %{_libdir}/*
 
 %files devel
 %defattr(644,root,root,755)
 %doc docs/
-%attr(755,root,root) %{_libdir}/libtorrent.so
-%{_libdir}/libtorrent.la
-%{_pkgconfigdir}/libtorrent.pc
+%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so
+%{_libdir}/libtorrent-rasterbar.la
+%{_pkgconfigdir}/libtorrent-rasterbar.pc
 %{_includedir}/libtorrent
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libtorrent.a
+%{_libdir}/libtorrent-rasterbar.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
