5 Commits

View File

@ -1,6 +1,6 @@
%define pkgdir %(echo %version | tr . _)
Name: libtorrent-rasterbar
Version: 1.1.12
Version: 1.2.10
Release: 2mamba
Summary: A C++ implementation of the BitTorrent protocol with the goals of being efficient and easy to use
Group: System/Libraries
@ -8,19 +8,19 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.libtorrent.org/
Source: https://github.com/arvidn/libtorrent/releases/download/libtorrent_%{pkgdir}/libtorrent-rasterbar-%{version}.tar.gz
Source: https://github.com/arvidn/libtorrent.git/libtorrent-%{version}/libtorrent-%{version}.tar.bz2
#Source: https://github.com/arvidn/libtorrent/releases/download/libtorrent_%{pkgdir}/libtorrent-rasterbar-%{version}.tar.gz
Patch0: %{name}-0.13.1-boost-1.36.patch
Patch1: libtorrent-1.1.9-libboost-include.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libboost-devel
BuildRequires: libgcc
BuildRequires: libGeoIP-devel
BuildRequires: libopenssl-devel
BuildRequires: libpython-devel
BuildRequires: libpython3-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libboost-devel >= 1.69.0-2mamba
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -47,16 +47,21 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}
This package contains Python bindings for the libtorrent-rasterbar library.
%debug_package
%prep
%setup -q
%setup -q -n libtorrent-%{version}
#%patch1 -p1
./autotool.sh
%build
#./autotool.sh
%configure \
--enable-python-binding \
--with-libgeoip \
--with-boost-system
--with-boost-system \
CXXFLAGS="%{optflags} -std=c++14" \
PYTHON=%{__python3}
%make V=1 \
%ifarch x86_64
@ -85,14 +90,33 @@ This package contains Python bindings for the libtorrent-rasterbar library.
%{_libdir}/libtorrent-rasterbar.la
%{_libdir}/libtorrent-rasterbar.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/cmake/Modules/FindLibtorrentRasterbar.cmake
%doc ChangeLog NEWS
%files -n python-%{name}
%defattr(-,root,root)
%{python_sitearch}/libtorrent.so
%{python_sitearch}/python_libtorrent-*
%{python3_sitearch}/libtorrent.cpython-3*.so
%{python3_sitearch}/python_libtorrent-%{version}-py*.egg-info
%changelog
* Mon Sep 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.10-2mamba
- rebuilt with -std=c++14 to fix link with qbittorrent
* Sun Sep 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.10-1mamba
- update to 1.2.10
* Mon Apr 27 2020 Automatic Build System <autodist@mambasoft.it> 1.2.6-1mamba
- automatic version update by autodist
* Mon Mar 30 2020 Automatic Build System <autodist@mambasoft.it> 1.2.5-1mamba
- automatic version update by autodist
* Mon Feb 17 2020 Automatic Build System <autodist@mambasoft.it> 1.2.4-1mamba
- automatic version update by autodist
* Sat Feb 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.3-1mamba
- update to 1.2.3
* Tue Feb 12 2019 Automatic Build System <autodist@mambasoft.it> 1.1.12-2mamba
- automatic version update by autodist