1
0
libtorrent-rasterbar/libtorrent-rasterbar.spec

180 lines
5.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libtorrent-rasterbar
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%ifarch ppc64
%define _lto_cflags %{nil}
%endif
%define _name libtorrent
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%define libver 2_0
%define sover 2.0
%define _legacy 1
%bcond_with examples
%bcond_with tests
Name: libtorrent-rasterbar
Version: 2.0.5
Release: 0
Summary: A C++ implementation of the BitTorrent protocol
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://libtorrent.org/
Source: https://github.com/arvidn/%{_name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM libtorrent-rasterbar-boost_178.patch
Patch0: libtorrent-rasterbar-boost_178.patch
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
BuildRequires: cmake >= 3.12.0
BuildRequires: fdupes
BuildRequires: gcc-c++
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
BuildRequires: libboost_chrono-devel >= 1.66
BuildRequires: libboost_python3-devel >= 1.66
BuildRequires: libboost_random-devel >= 1.66
BuildRequires: libboost_system-devel >= 1.66
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
BuildRequires: pkgconfig(openssl) >= 1.0.0
%description
libtorrent-rasterbar is a C++ library that aims to be a good
alternative to all the other bittorrent implementations around.
It is a library and not a full featured client, although it comes
with a working example client.
This package holds the sample client and example files for
libtorrent-rasterbar.
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%package -n %{name}%{libver}
Summary: A C++ implementation of the BitTorrent protocol
Group: System/Libraries
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%description -n %{name}%{libver}
libtorrent-rasterbar is a C++ library that aims to be a good
alternative to all the other bittorrent implementations around.
It is a library and not a full featured client, although it comes
with a working example client.
%package -n python3-%{name}
Summary: Python Bindings for libtorrent-rasterbar
Group: Development/Libraries/Python
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
Conflicts: python3-%{name}-%{_legacy}
%description -n python3-%{name}
Python Bindings for the libtorrent-rasterbar package.
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%if %{with examples}
%package tools
Summary: Example tools from libtorrent-rasterbar
Group: Development/Libraries/C and C++
%description tools
Example tools from the libtorrent-rasterbar package.
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%endif
%package devel
Summary: Header files for libtorrent, a C++ implementation of the BitTorrent protocol
Group: Development/Libraries/C and C++
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
Requires: %{name}%{libver} = %{version}
Requires: gcc-c++
Requires: libboost_headers-devel
Requires: pkgconfig(openssl)
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
Conflicts: %{name}-%{_legacy}-devel
%description devel
libtorrent-rasterbar is a C++ library that aims to be a good
alternative to all the other bittorrent implementations around.
It is a library and not a full featured client, although it comes
with a working example client.
This package holds the development files for libtorrent-rasterbar.
%package doc
Summary: Documentation for libtorrent-rasterbar
Group: Documentation/HTML
BuildArch: noarch
%description doc
Documentation for the libtorrent-rasterbar package.
%prep
%autosetup -p1
%build
%cmake \
%if %{with tests}
-Dbuild_tests=ON \
%endif
%if %{with examples}
-Dbuild_examples=ON \
%endif
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
-Dpython-bindings=ON \
-Dpython-egg-info=ON \
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
-Dboost-python-module-name=python
%cmake_build
%install
%cmake_install
# Move doc to a separate package.
mkdir -p %{buildroot}%{_docdir}/%{name}/
cp -r docs/* %{buildroot}%{_docdir}/%{name}/
%if %{with examples}
install -Dm0755 build/examples/dump_torrent build/examples/make_torrent \
build/examples/simple_client -t %{buildroot}%{_bindir}
%endif
%fdupes %{buildroot}%{python3_sitearch}
%if %{with tests}
%check
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
export LD_LIBRARY_PATH=$PWD/build
ln -s build/web_server.py .
# test_flags until gh#arvidn/libtorrent#4985 is fixed
%ctest --verbose --exclude-regex "(test_flags|test_upnp)"
%endif
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%post -n %{name}%{libver} -p /sbin/ldconfig
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%postun -n %{name}%{libver} -p /sbin/ldconfig
%if %{with examples}
%files tools
%{_bindir}/dump_torrent
%{_bindir}/make_torrent
%{_bindir}/simple_client
%endif
Accepting request 835261 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.0 * dropped depenency on iconv * deprecate set_file_hash() in torrent creator, as it's superceded by v2 torrents * deprecate mutable access to info_section in torrent_info * removed deprecated lazy_entry/lazy_bdecode * stats_alert deprecated * remove bittyrant choking algorithm * update userdata in add_torrent_params to be type-safe and add to torrent_handle * add ip_filter to session_params * added support for wolfSSL for SHA-1 hash and HTTPS (no Torrents over SSL) * requires OpenSSL minimum version 1.0.0 with SNI support * deprecated save_state() and load_state() on session in favour of new write_session_params() and read_session_params() * added support for BitTorrent v2 (see docs/upgrade_to_2.0.html) * create_torrent() pad_file_limit parameter removed * create_torrent() merkle- and optimize-alignment flags removed * merkle_tree removed from add_torrent_params * announce_entry expose information per v1 and v2 info-hash announces * deprecated sha1_hash info_hash members on torrent_removed_alert, torrent_deleted_alert, torrent_delete_failed_alert and add_torrent_params * undeprecate error_file_metadata for torrent errors related to its metadata * remove support for adding a torrent under a UUID (used for previous RSS support) * remove deprecated feature to add torrents by file:// URL * remove deprecated feature to download .torrent file from URL * requires boost >= 1.66 to build * update networking API to networking TS compatible boost.asio * overhauled disk I/O subsystem to use memory mapped files (where available) * libtorrent now requires C++14 to build * added support for GnuTLS for HTTPS and torrents over SSL - Refreshlibtorrent-rasterbar-fix_pkgconfig_path.patch - Drop libtorrent-rasterbar-fix_library_version.patch OBS-URL: https://build.opensuse.org/request/show/835261 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=139
2020-09-17 16:29:19 +00:00
%files -n %{name}%{libver}
%license COPYING
%doc AUTHORS ChangeLog
%{_libdir}/%{name}.so.%{sover}*
%files -n python3-%{name}
%{python3_sitearch}/%{_name}*.so
%{python3_sitearch}/%{_name}.egg-info
%files devel
Accepting request 819847 from home:alois:branches:devel:libraries:c_c++ - Update to version 1.2.7 * add set_alert_fd in python binding, to supersede set_alert_notify * fix bug in part files > 2 GiB * add function to clear the peer list for a torrent * fix resume data functions to save/restore more torrent flags * limit number of concurrent HTTP announces * fix queue position for force_rechecking a torrent that is not auto-managed * improve rate-based choker documentation, and minor tweak * undeprecate upnp_ignore_nonrouters (but refering to devices on our subnet) * increase default tracker timeout * retry failed socks5 server connections * allow UPnP lease duration to be changed after device discovery version 1.2.6: * fix peer timeout logic * simplify proxy handling. A proxy now overrides listen_interfaces * fix issues when configured to use a non-default choking algorithm * fix issue in reading resume data * revert NXDOMAIN change from 1.2.4 * don't open any listen sockets if listen_interfaces is empty or misconfigured * fix bug in auto disk cache size logic * fix issue with outgoing_interfaces setting, where bind() would be called twice * add build option to disable share-mode * support validation of HTTPS trackers * deprecate strict super seeding mode * make UPnP port-mapping lease duration configurable * deprecate the bittyrant choking algorithm * add build option to disable streaming version 1.2.5: * announce port=1 instead of port=0, when there is no listen port * fix LSD over IPv6 * support TCP_NOTSENT_LOWAT * fix correct interface binding of local service discovery multicast * fix issue with knowing which interfaces to announce to trackers and DHT * undeprecate settings_pack::dht_upload_rate_limit OBS-URL: https://build.opensuse.org/request/show/819847 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=128
2020-07-10 18:13:58 +00:00
%{_datadir}/cmake/Modules/FindLibtorrentRasterbar.cmake
%{_includedir}/%{_name}/
%{_libdir}/cmake/LibtorrentRasterbar
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%files doc
%doc %{_docdir}/%{name}/
%changelog