+#
+# WARNING: Do not upgrade to 1.1.x, breaks qbittorrent
+#
+%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.7
-Release: 1
-Epoch: 1
+Version: 1.0.11
+Release: 3
+Epoch: 2
License: BSD
Group: Libraries
-Source0: http://libtorrent.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: 4944aa8aae275d6893514c2141c7b27c
+Source0: https://github.com/arvidn/libtorrent/releases/download/libtorrent-%{tagver}/%{name}-%{version}.tar.gz
+# Source0-md5: f49e43286a64e8bbdef9ea59baa78b55
+Patch0: %{name}-boost.patch
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: boost-devel >= 1.36
+BuildRequires: boost-python-devel >= 1.36
BuildRequires: libstdc++-devel
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
%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.8
%files devel
%defattr(644,root,root,755)