2012-05-10 14:33:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package libtorrent
|
|
|
|
#
|
2015-11-18 22:34:38 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-10 14:33:20 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2013-02-18 13:51:03 +01:00
|
|
|
|
2012-05-10 14:33:20 +02:00
|
|
|
|
2015-11-18 22:34:38 +01:00
|
|
|
|
2012-05-10 14:33:20 +02:00
|
|
|
Name: libtorrent
|
2015-11-18 22:34:38 +01:00
|
|
|
%define lname libtorrent19
|
|
|
|
Version: 0.13.6
|
2013-02-18 13:51:03 +01:00
|
|
|
Release: 0
|
2014-07-21 21:40:03 +02:00
|
|
|
Summary: A BitTorrent library written in C++
|
2013-02-18 13:51:03 +01:00
|
|
|
License: SUSE-GPL-2.0+-with-openssl-exception
|
|
|
|
Group: Productivity/Networking/File-Sharing
|
2015-11-18 22:34:38 +01:00
|
|
|
Url: http://github.com/rakshasa/libtorrent
|
2013-02-18 13:51:03 +01:00
|
|
|
|
|
|
|
#Git-Clone: git://github.com/rakshasa/libtorrent
|
2015-11-18 22:34:38 +01:00
|
|
|
Source: https://github.com/rakshasa/libtorrent/archive/%version.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2014-07-21 21:40:03 +02:00
|
|
|
BuildRequires: cppunit-devel
|
2012-05-10 14:33:20 +02:00
|
|
|
BuildRequires: gcc-c++
|
2015-11-18 22:34:38 +01:00
|
|
|
BuildRequires: libtool
|
2012-05-10 14:33:20 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkg-config
|
2015-11-18 22:34:38 +01:00
|
|
|
BuildRequires: zlib-devel
|
2012-05-10 14:33:20 +02:00
|
|
|
|
|
|
|
%description
|
2014-07-21 21:40:03 +02:00
|
|
|
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.
|
2012-05-10 14:33:20 +02:00
|
|
|
|
2015-11-18 22:34:38 +01:00
|
|
|
%package -n %lname
|
2014-07-21 21:40:03 +02:00
|
|
|
Summary: A BitTorrent library written in C++
|
2012-05-10 14:33:20 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-11-18 22:34:38 +01:00
|
|
|
%description -n %lname
|
2014-07-21 21:40:03 +02:00
|
|
|
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.
|
2012-05-10 14:33:20 +02:00
|
|
|
|
2013-02-18 13:51:03 +01:00
|
|
|
%package devel
|
2014-07-21 21:40:03 +02:00
|
|
|
Summary: Development files for libtorrent, a C++ BitTorrent library
|
2012-05-10 14:33:20 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-11-18 22:34:38 +01:00
|
|
|
Requires: %lname = %version
|
2012-05-10 14:33:20 +02:00
|
|
|
|
2013-02-18 13:51:03 +01:00
|
|
|
%description devel
|
2014-07-21 21:40:03 +02:00
|
|
|
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.
|
2012-05-10 14:33:20 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2013-02-18 13:51:03 +01:00
|
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2014-07-21 21:40:03 +02:00
|
|
|
%if 0%{?suse_version} >= 1220
|
|
|
|
export CXXFLAGS="$CXXFLAGS -std=gnu++11"
|
|
|
|
%endif
|
2015-11-18 22:34:38 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure --enable-ipv6 --with-posix-fallocate
|
2012-05-10 14:33:20 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2013-02-18 13:51:03 +01:00
|
|
|
make install DESTDIR="%buildroot"
|
2014-07-21 21:40:03 +02:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete
|
2012-05-10 14:33:20 +02:00
|
|
|
|
2015-11-18 22:34:38 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2012-05-10 14:33:20 +02:00
|
|
|
|
2015-11-18 22:34:38 +01:00
|
|
|
%files -n %lname
|
2012-05-10 14:33:20 +02:00
|
|
|
%defattr(-,root,root)
|
2015-11-18 22:34:38 +01:00
|
|
|
%_libdir/libtorrent.so.*
|
2012-05-10 14:33:20 +02:00
|
|
|
|
2014-07-21 21:40:03 +02:00
|
|
|
%files -n %name-devel
|
2012-05-10 14:33:20 +02:00
|
|
|
%defattr(-,root,root)
|
2015-11-18 22:34:38 +01:00
|
|
|
%_includedir/torrent/
|
|
|
|
%_libdir/libtorrent.so
|
2014-07-21 21:40:03 +02:00
|
|
|
%_libdir/pkgconfig/libtorrent.pc
|
2012-05-10 14:33:20 +02:00
|
|
|
|
|
|
|
%changelog
|