forked from pool/libtorrent
81 lines
3.1 KiB
RPMSpec
81 lines
3.1 KiB
RPMSpec
|
#
|
||
|
# spec file for package libtorrent
|
||
|
#
|
||
|
# Copyright (c) 2012 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/
|
||
|
#
|
||
|
%define soname 9
|
||
|
|
||
|
Name: libtorrent
|
||
|
Version: 0.12.2
|
||
|
Release: 1.0
|
||
|
Url: http://libtorrent.rakshasa.no/
|
||
|
Source: %{name}-%{version}.tar.bz2
|
||
|
Patch1: libtorrent-gcc4.3-0.12.2.patch
|
||
|
Patch2: libtorrent-decls.diff
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: gcc-c++
|
||
|
BuildRequires: libsigc++2-devel
|
||
|
BuildRequires: openssl-devel
|
||
|
BuildRequires: pkg-config
|
||
|
Summary: A BitTorrent library written in C++ for *nix
|
||
|
License: SUSE-GPL-2.0+-with-openssl-exception
|
||
|
Group: Productivity/Networking/File Sharing
|
||
|
|
||
|
%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 transfering 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 -n %{name}%{soname}
|
||
|
Summary: A BitTorrent library written in C++ for *nix
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n %{name}%{soname}
|
||
|
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 transfering 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 -n %{name}-devel
|
||
|
Requires: %{name}%{soname} = %{version}
|
||
|
Summary: A BitTorrent library written in C++ for *nix
|
||
|
Group: Development/Libraries/C and C++
|
||
|
|
||
|
%description -n %{name}-devel
|
||
|
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 transfering 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.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch -P 1 -p0
|
||
|
%patch -P 2 -p1
|
||
|
|
||
|
%build
|
||
|
%configure --enable-ipv6 --with-posix-fallocate
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
%makeinstall
|
||
|
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
|