%global snapshot 20110601 %global revision 1232 Name: libtorrent License: GPLv2+ Group: System Environment/Libraries Version: 0.12.8 Release: 3%{?snapshot:.%{snapshot}svn%{revision}}%{?dist} Summary: BitTorrent library with a focus on high performance & good code URL: http://libtorrent.rakshasa.no/ %if %{?snapshot:1}0 Source0: %{name}-%{snapshot}.tar.bz2 %else Source0: http://libtorrent.rakshasa.no/downloads/%{name}-%{version}.tar.gz %endif Source1: %{name}-snapshot.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig BuildRequires: cppunit-devel BuildRequires: openssl-devel BuildRequires: libsigc++20-devel %description LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code. The library differentiates itself from other implementations by transferring directly from file pages to the network stack. On high-bandwidth connections it is able to seed at 3 times the speed of the official client. %package devel Summary: Libtorrent development environment Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Header and library definition files for developing applications with the libtorrent libraries. %prep %if %{?snapshot:1}0 %setup -q -n %{name}-%{snapshot} %__perl -pi -e ' s/(?<=AC_INIT\(libtorrent, )[^,]+/0.12.6/; s/(?<=AC_DEFINE\(PEER_NAME, )[^,]+/"-lt0C60-"/; s/(?<=AC_DEFINE\(PEER_VERSION, )[^,]+/"lt\\x0C\\x60"/; ' configure.ac ./autogen.sh %else %setup -q %endif %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING INSTALL README NEWS %{_libdir}/libtorrent.so.* %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/libtorrent.pc %{_includedir}/torrent %{_libdir}/*.so %exclude %{_libdir}/*.la %changelog * Wed Jun 01 2011 Marius FERARU - 0.12.8-3.20110601svn1232 - current svn build (r1232) * Thu Dec 09 2010 Marius FERARU - 0.12.7-2.20101209svn1189 - bumped release above Fedora's official build * Thu Dec 09 2010 Marius FERARU - 0.12.7-0.20101209svn1189 - current svn build (r1189) - present itself as the latest stable version, in order to avoid version based blacklisting * Wed May 19 2010 Marius FERARU - 0.12.7-0.20100519svn1170 - r1170 * Tue Apr 20 2010 Marius FERARU - 0.12.7-0.20100420svn1164 - r1164 * Sun Mar 14 2010 Marius FERARU - 0.12.7-0.20100314svn1143 - r1143 * Sun Mar 07 2010 Marius FERARU - 0.12.7-0.20100307svn1141 - r1141 - BR cppunit-devel * Fri Feb 19 2010 Marius FERARU - 0.12.6-9.20100219svn1135 - r1135 * Fri Feb 19 2010 Marius FERARU - 0.12.6-8.20100219svn1134 - r1134 * Mon Feb 15 2010 Marius FERARU - 0.12.6-7.20100215svn1130 - r1130 * Wed Dec 30 2009 Marius FERARU - 0.12.6-6.20091230svn1121 - new snapshot * Sat Nov 28 2009 Marius FERARU - 0.12.5-5.20091128svn1105 - SVN snapshot from 20091128 (revision 1105) * Sun Nov 15 2009 Marius FERARU - 0.12.5-4.20091115svn1102 - added SVN snapshot code * Fri Aug 21 2009 Tomas Mraz - 0.12.5-3 - rebuilt with new openssl * Sat Jul 25 2009 Fedora Release Engineering - 0.12.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 3 2009 Conrad Meyer - 0.12.5-1 - Bump version. * Fri Feb 27 2009 Conrad Meyer - 0.12.4-4 - Fix FTBFS. * Wed Feb 25 2009 Fedora Release Engineering - 0.12.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Jan 17 2009 Tomas Mraz - 0.12.4-2 - rebuild with new openssl * Wed Nov 26 2008 Conrad Meyer - 0.12.4-1 - Bump to 0.12.4. * Tue Nov 18 2008 Conrad Meyer - 0.12.3-1 - Bump to 0.12.3. * Thu Aug 7 2008 Tom "spot" Callaway - 0.11.8-5 - fix license tag * Sat Apr 5 2008 Christopher Aillon - 0.11.8-4 - Add missing #includes so this compiles against GCC 4.3 * Mon Feb 18 2008 Fedora Release Engineering - 0.11.8-3 - Autorebuild for GCC 4.3 * Fri Dec 07 2007 Release Engineering - 0.11.8-2 - Rebuild for deps * Tue Sep 18 2007 Marek Mahut - 0.11.8-1 - New upstream version * Tue Aug 28 2007 Fedora Release Engineering - 0.11.4-2 - Rebuild for selinux ppc32 issue. * Thu Jun 28 2007 Chris Chabot - 0.11.4-1 - New upstream version * Sun Nov 26 2006 Chris Chabot - 0.10.4-1 - New upstream version - Compile with -Os to work around a gcc 4.1 incompatibility * Mon Oct 02 2006 Chris Chabot - 0.10.2-3 - Bump EVR to fix broken upgrade path (BZ #208985) * Fri Sep 29 2006 Chris Chabot - 0.10.2-1 - New upstream release * Mon Sep 11 2006 Chris Chabot - 0.10.0-3 - FC6 rebuild, re-tag * Mon Sep 11 2006 Chris Chabot - 0.10.0-2 - FC6 rebuild * Sun Aug 13 2006 Chris Chabot - 0.10.0-1 - Upgrade to 0.10.0 * Sat Jun 17 2006 - Chris Chabot - 0.9.3-1 - Upgrade to new upstream version 0.9.3 * Sat Jan 14 2006 - Chris Chabot - 0.8.2-2 - Improved general summary & devel package description - Simplified devel package includedir files section - Removed openssl as requires, its implied by .so dependency - Correct devel package Group * Wed Jan 11 2006 - Chris Chabot - 0.8.2-1 - Initial version