Name: libtorrent
License: GPLv2+
Version: 0.13.8
Release: 1
Summary: BitTorrent library with a focus on high performance & good code
URL: https://github.com/rakshasa/libtorrent/
Source0: http://rtorrent.net/downloads/libtorrent-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libsigc++20-devel
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: zlib-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 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 devel
Summary: Libtorrent development environment
Requires: %{name} = %{version}-%{release}
%description devel
Header and library definition files for developing applications
with the libtorrent libraries.
%prep
%setup -q
%build
# Shipped generated versions of autocrap scripts have a hard dependency on an
# obsolete version of automake that Fedora does not ship anymore; regenerate:
sh autogen.sh
%configure --with-posix-fallocate
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%ldconfig_scriptlets
%files
%doc AUTHORS INSTALL README
%license COPYING
%{_libdir}/libtorrent.so.*
%files devel
%{_libdir}/pkgconfig/libtorrent.pc
%{_includedir}/torrent
%{_libdir}/*.so
%changelog
* Tue Dec 17 2021 haomimi<haomimi@uniontech.com> - 0.13.8
- package init