Репозитории ALT
S: | 0.13.8-alt3 |
4.1: | 0.13-alt1 |
4.0: | 0.13-alt1.svn.r1876.M40.1 |
3.0: | 0.6.4-alt1 |
Группа :: Система/Библиотеки
Пакет: libtorrent
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
# LTO causes errors, disable it
%global optflags_lto %nil
%define _optlevel s
%define soname 21
Name: libtorrent
Epoch: 3
Version: 0.13.8
Release: alt3
Summary: libTorrent is a BitTorrent library written in C++ for *nix
Group: System/Libraries
License: GPLv2+
Url: https://github.com/rakshasa/libtorrent
# https://github.com/rakshasa/libtorrent.git
Source: %name-%version.tar
BuildRequires: gcc-c++ libsigc++2.0-devel libssl-devel
BuildRequires: cppunit-devel
BuildRequires: zlib-devel
%def_disable static
%description
libTorrent is designed to avoid redundant copying and storing of data
that other clients and libraries suffer from. libTorrent features:
* The client has full control over the polling of sockets.
* Sigc++ signals makes it easy for the client to react to events.
* Fast resume which checks the file modification time.
* Direct reading and writing from network to mmap'ed files.
* File hash check uses the same thread; client can control the rate;
non-blocking and preload to memory with the mincore and madvise.
* File handler: fine-grained use of file read/write permissions, allows
seeding of read-only files; allows torrents with unlimited number of
files; opens closed files when mapping chunks to memory, with graceful
error handling; support for files larger than 2 GB; different download
priorities for files in the torrent.
* Multi-tracker support.
* No dependency on any specific HTTP library, the client implements a
wrapper class.
* Dynamic request pipe size.
* Upload and download throttle.
* And much more...
%package -n %name%soname
Summary: Development libraries and header files for libTorrent
Group: System/Libraries
%description -n %name%soname
libTorrent is designed to avoid redundant copying and storing of data
that other clients and libraries suffer from. libTorrent features:
* The client has full control over the polling of sockets.
* Sigc++ signals makes it easy for the client to react to events.
* Fast resume which checks the file modification time.
* Direct reading and writing from network to mmap'ed files.
* File hash check uses the same thread; client can control the rate;
non-blocking and preload to memory with the mincore and madvise.
* File handler: fine-grained use of file read/write permissions, allows
seeding of read-only files; allows torrents with unlimited number of
files; opens closed files when mapping chunks to memory, with graceful
error handling; support for files larger than 2 GB; different download
priorities for files in the torrent.
* Multi-tracker support.
* No dependency on any specific HTTP library, the client implements a
wrapper class.
* Dynamic request pipe size.
* Upload and download throttle.
* And much more...
%package devel
Summary: Development libraries and header files for libTorrent
Group: Development/C
Requires: %name%soname = %EVR
Conflicts: libtorrent-rasterbar-devel
%description devel
The libtorrent-devel package contains libraries and header files needed
to develop applications using libTorrent.
%prep
%setup
%ifarch %e2k
sed -i "/private:/{N;s|private:||;s|$|private:|}" src/torrent/poll_select.h
%endif
mv -f COPYING COPYING.orig
ln -s $(relative %_licensedir/GPL-2 %_docdir/%name/COPYING) COPYING
%build
%autoreconf
%configure
%make_build
%install
%makeinstall_std
%check
%make_build check
%files -n %name%soname
%doc AUTHORS ChangeLog NEWS README
%doc --no-dereference COPYING
%_libdir/*.so.%{soname}
%_libdir/*.so.%{soname}.*
%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%changelog
…
Полный changelog можно просмотреть здесь
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
# LTO causes errors, disable it
%global optflags_lto %nil
%define _optlevel s
%define soname 21
Name: libtorrent
Epoch: 3
Version: 0.13.8
Release: alt3
Summary: libTorrent is a BitTorrent library written in C++ for *nix
Group: System/Libraries
License: GPLv2+
Url: https://github.com/rakshasa/libtorrent
# https://github.com/rakshasa/libtorrent.git
Source: %name-%version.tar
BuildRequires: gcc-c++ libsigc++2.0-devel libssl-devel
BuildRequires: cppunit-devel
BuildRequires: zlib-devel
%def_disable static
%description
libTorrent is designed to avoid redundant copying and storing of data
that other clients and libraries suffer from. libTorrent features:
* The client has full control over the polling of sockets.
* Sigc++ signals makes it easy for the client to react to events.
* Fast resume which checks the file modification time.
* Direct reading and writing from network to mmap'ed files.
* File hash check uses the same thread; client can control the rate;
non-blocking and preload to memory with the mincore and madvise.
* File handler: fine-grained use of file read/write permissions, allows
seeding of read-only files; allows torrents with unlimited number of
files; opens closed files when mapping chunks to memory, with graceful
error handling; support for files larger than 2 GB; different download
priorities for files in the torrent.
* Multi-tracker support.
* No dependency on any specific HTTP library, the client implements a
wrapper class.
* Dynamic request pipe size.
* Upload and download throttle.
* And much more...
%package -n %name%soname
Summary: Development libraries and header files for libTorrent
Group: System/Libraries
%description -n %name%soname
libTorrent is designed to avoid redundant copying and storing of data
that other clients and libraries suffer from. libTorrent features:
* The client has full control over the polling of sockets.
* Sigc++ signals makes it easy for the client to react to events.
* Fast resume which checks the file modification time.
* Direct reading and writing from network to mmap'ed files.
* File hash check uses the same thread; client can control the rate;
non-blocking and preload to memory with the mincore and madvise.
* File handler: fine-grained use of file read/write permissions, allows
seeding of read-only files; allows torrents with unlimited number of
files; opens closed files when mapping chunks to memory, with graceful
error handling; support for files larger than 2 GB; different download
priorities for files in the torrent.
* Multi-tracker support.
* No dependency on any specific HTTP library, the client implements a
wrapper class.
* Dynamic request pipe size.
* Upload and download throttle.
* And much more...
%package devel
Summary: Development libraries and header files for libTorrent
Group: Development/C
Requires: %name%soname = %EVR
Conflicts: libtorrent-rasterbar-devel
%description devel
The libtorrent-devel package contains libraries and header files needed
to develop applications using libTorrent.
%prep
%setup
%ifarch %e2k
sed -i "/private:/{N;s|private:||;s|$|private:|}" src/torrent/poll_select.h
%endif
mv -f COPYING COPYING.orig
ln -s $(relative %_licensedir/GPL-2 %_docdir/%name/COPYING) COPYING
%build
%autoreconf
%configure
%make_build
%install
%makeinstall_std
%check
%make_build check
%files -n %name%soname
%doc AUTHORS ChangeLog NEWS README
%doc --no-dereference COPYING
%_libdir/*.so.%{soname}
%_libdir/*.so.%{soname}.*
%files devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%changelog
…
Полный changelog можно просмотреть здесь