X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=libtorrent-rasterbar.spec;h=0abc5ea025f7a507b7c8f08649cf34087fc8a353;hb=e77971ddc538fbf727619ff75f838e1ed7503740;hp=87fe5f266e2cff6a47329c82a9156233d58c9d42;hpb=e2e85b7efd396c81c705aa7796e6525c1cdef6f2;p=packages%2Flibtorrent-rasterbar.git diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index 87fe5f2..0abc5ea 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -1,29 +1,33 @@ +# 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.14.7 +Version: 1.2.7 Release: 3 +Epoch: 2 License: BSD Group: Libraries -Source0: http://downloads.sourceforge.net/libtorrent/%{name}-%{version}.tar.gz -# Source0-md5: 6959f719245d82758235fd73d93373b2 +#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 -BuildRequires: automake -BuildRequires: boost-devel >= 1.35.0 -BuildRequires: boost-python-devel -BuildRequires: libstdc++-devel -BuildRequires: libtool +BuildRequires: autoconf >= 2.63 +BuildRequires: automake >= 1:1.11 +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-ng +BuildRequires: util-linux BuildRequires: which BuildRequires: zlib-devel Obsoletes: rb_libtorrent @@ -62,8 +66,9 @@ Summary: Header files for %{name} library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} License: BSD, zlib/libpng License, Boost Software License Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: boost-devel +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: boost-devel >= 1.58 +Requires: libstdc++-devel >= 6:4.7 Requires: openssl-devel Obsoletes: rb_libtorrent-devel @@ -92,7 +97,7 @@ License. Summary: Static %{name} library Summary(pl.UTF-8): Statyczna biblioteka %{name} Group: Development/Libraries -Requires: %{name}-devel = %{version}-%{release} +Requires: %{name}-devel = %{epoch}:%{version}-%{release} Obsoletes: rb_libtorrent-static %description static @@ -106,16 +111,18 @@ Statyczna biblioteka libtorrent-rasterbar. %package -n python-libtorrent-rasterbar Summary: Python bindings for libtorrent-rasterbar +Summary(pl.UTF-8): Wiązania Pythona do biblioteki libtorrent-rasterbar Group: Libraries/Python -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{epoch}:%{version}-%{release} %description -n python-libtorrent-rasterbar Python bindings for libtorrent-rasterbar. +%description -n python-libtorrent-rasterbar -l pl.UTF-8 +Wiązania Pythona do biblioteki libtorrent-rasterbar. + %prep %setup -q -%patch0 -p1 -%{__sed} -i 's/ACLOCAL_AMFLAGS = -I m4/#ACLOCAL_AMFLAGS = -I m4/' Makefile.am ## Some of the sources and docs are executable, which makes rpmlint against ## the resulting -debuginfo and -devel packages, respectively, quite angry. :] @@ -123,7 +130,7 @@ find src docs -type f | xargs chmod a-x find -type f -regex '.*\.[hc]pp' | xargs chmod a-x ## The RST files are the sources used to create the final HTML files; and are ## not needed. -rm -f docs/*.rst +%{__rm} docs/*.rst %build %{__libtoolize} @@ -132,30 +139,27 @@ rm -f docs/*.rst %{__automake} %configure \ LIBS="-lpthread -lrt" \ + --disable-silent-rules \ --enable-python-binding \ - --with-boost-system=boost_system \ + --with-asio=system \ + --with-boost-libdir=%{_libdir} \ --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} %install rm -rf $RPM_BUILD_ROOT -## Ensure that we preserve our timestamps properly. -#export CPPROG="%{__cp} -p" -#make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p" + %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -## Do the renaming due to the somewhat limited %{_bindir} namespace. -rename client torrent_client $RPM_BUILD_ROOT%{_bindir}/* - %clean rm -rf $RPM_BUILD_ROOT @@ -164,16 +168,18 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc AUTHORS ChangeLog COPYING README -%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so* +%doc AUTHORS ChangeLog COPYING +%attr(755,root,root) %{_libdir}/libtorrent-rasterbar.so.*.*.* +%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) @@ -181,5 +187,5 @@ rm -rf $RPM_BUILD_ROOT %files -n python-libtorrent-rasterbar %defattr(644,root,root,755) -%{py_sitedir}/libtorrent.so +%attr(755,root,root) %{py_sitedir}/libtorrent.so %{py_sitedir}/python_libtorrent-*.egg-info