]> git.pld-linux.org Git - packages/libtorrent-rasterbar.git/blobdiff - libtorrent-rasterbar.spec
rebuild with openssl 3.0.0
[packages/libtorrent-rasterbar.git] / libtorrent-rasterbar.spec
index caeea0f750474214f5d98db680bb70b7dae7d315..0abc5ea025f7a507b7c8f08649cf34087fc8a353 100644 (file)
@@ -1,27 +1,30 @@
+# 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
@@ -64,7 +67,8 @@ Summary(pl.UTF-8):    Pliki nagłówkowe biblioteki %{name}
 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
 
@@ -119,7 +123,6 @@ Wiązania Pythona do biblioteki libtorrent-rasterbar.
 
 %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. :]
@@ -138,16 +141,16 @@ find -type f -regex '.*\.[hc]pp' | xargs chmod a-x
        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}
 
@@ -165,17 +168,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %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)
This page took 0.082662 seconds and 4 git commands to generate.