# # spec file for package libtorrent # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: libtorrent Version: 0.13.4 Release: 0 %define soname 18 Summary: A BitTorrent library written in C++ License: SUSE-GPL-2.0+-with-openssl-exception Group: Productivity/Networking/File-Sharing URL: http://libtorrent.rakshasa.no/ #Git-Clone: git://github.com/rakshasa/libtorrent Source: http://libtorrent.rakshasa.no/downloads/%name-%version.tar.gz BuildRoot: %_tmppath/%name-%version-build BuildRequires: cppunit-devel BuildRequires: gcc-c++ #BuildRequires: libxmlrpc-c-devel BuildRequires: openssl-devel BuildRequires: pkg-config %description LibTorrent is a BitTorrent library written in C++. It transfers directly from file pages to the network stack, and achieves 3x higher seed speeds than the official client on high-bandwidth links. %package -n %name%soname Summary: A BitTorrent library written in C++ Group: System/Libraries %description -n %name%soname LibTorrent is a BitTorrent library written in C++. It transfers directly from file pages to the network stack, and achieves 3x higher seed speeds than the official client on high-bandwidth links. %package devel Requires: %name%soname = %version Summary: Development files for libtorrent, a C++ BitTorrent library Group: Development/Libraries/C and C++ %description devel LibTorrent is a BitTorrent library written in C++. It transfers directly from file pages to the network stack, and achieves 3x higher seed speeds than the official client on high-bandwidth links. %prep %setup -q %build export CFLAGS="%optflags -fno-strict-aliasing" export CXXFLAGS="$CFLAGS" %if 0%{?suse_version} >= 1220 export CXXFLAGS="$CXXFLAGS -std=gnu++11" %endif %configure --enable-ipv6 --with-posix-fallocate --with-xmlrpc-c make %{?_smp_mflags} %install make install DESTDIR="%buildroot" find "%buildroot" -type f -name "*.la" -delete %post -n %name%soname -p /sbin/ldconfig %postun -n %name%soname -p /sbin/ldconfig %files -n %name%soname %defattr(-,root,root) %_libdir/%name.so.%{soname}* %files -n %name-devel %defattr(-,root,root) %_includedir/torrent %_libdir/%name.so %_libdir/pkgconfig/libtorrent.pc %changelog