+# WARNING: qbittorrent 4.1.x uses 1.1.x/1.2.x, not 2.x
+#
+%define tagver %(echo %{version} | tr . _)
Summary: A C++ BitTorrent library
Summary(hu.UTF-8): C++ BitTorrent könyvtár
Summary(pl.UTF-8): Biblioteka BitTorrenta napisana w C++
Name: libtorrent-rasterbar
-Version: 0.15.6
+Version: 1.2.7
Release: 3
-Epoch: 1
+Epoch: 2
License: BSD
Group: Libraries
-Source0: http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: 53c64fe121c7fd0383f90dc653930f4a
+#Source0Download: https://github.com/arvidn/libtorrent/releases
+Source0: https://github.com/arvidn/libtorrent/releases/download/libtorrent_%{tagver}/%{name}-%{version}.tar.gz
+# Source0-md5: 0c5e9d3c141704d1801f6da65c4554fe
URL: http://www.rasterbar.com/products/libtorrent/
-Patch0: bashizm.patch
BuildRequires: GeoIP-devel
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.11
-BuildRequires: boost-devel >= 1.35.0
-BuildRequires: boost-python-devel
-BuildRequires: libstdc++-devel
+BuildRequires: boost-devel >= 1.58
+BuildRequires: boost-python-devel >= 1.58
+BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: libtool >= 2:2.2.6
BuildRequires: openssl-devel
BuildRequires: pkgconfig >= 1:0.20
-BuildRequires: python-devel
-BuildRequires: python-modules
+BuildRequires: python-devel >= 1:2.4
+BuildRequires: python-modules >= 1:2.4
BuildRequires: rpm-pythonprov
BuildRequires: sed >= 4.0
BuildRequires: util-linux
License: BSD, zlib/libpng License, Boost Software License
Group: Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: boost-devel
+Requires: boost-devel >= 1.58
+Requires: libstdc++-devel >= 6:4.7
Requires: openssl-devel
Obsoletes: rb_libtorrent-devel
%prep
%setup -q
-%patch0 -p1
## Some of the sources and docs are executable, which makes rpmlint against
## the resulting -debuginfo and -devel packages, respectively, quite angry. :]
LIBS="-lpthread -lrt" \
--disable-silent-rules \
--enable-python-binding \
+ --with-asio=system \
--with-boost-libdir=%{_libdir} \
- --with-boost-system=boost_system \
--with-boost-filesystem=boost_filesystem \
- --with-boost-thread=boost_thread \
- --with-boost-regex=boost_regex \
--with-boost-program-options=boost_program_options \
- --with-asio=system \
- --with-zlib=system \
+ --with-boost-regex=boost_regex \
+ --with-boost-system=boost_system \
+ --with-boost-thread=boost_thread \
--with-libgeoip=system \
- --with-ssl
+ --with-ssl \
+ --with-zlib=system
%{__make}
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog COPYING README
+%doc AUTHORS ChangeLog COPYING
%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtorrent-rasterbar.so.6
+%attr(755,root,root) %ghost %{_libdir}/libtorrent-rasterbar.so.10
%files devel
%defattr(644,root,root,755)
%doc docs/
%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so
%{_libdir}/libtorrent-rasterbar.la
-%{_pkgconfigdir}/libtorrent-rasterbar.pc
%{_includedir}/libtorrent
+%{_pkgconfigdir}/libtorrent-rasterbar.pc
+%{_datadir}/cmake/Modules/FindLibtorrentRasterbar.cmake
%files static
%defattr(644,root,root,755)