|
@@ -1,33 +1,33 @@
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
-Name: libtorrent-rasterbar
|
|
|
-Version: 1.0.9
|
|
|
-Release: 2%{?_dist_release}
|
|
|
-Summary: A C++ BitTorrent library aiming to be the best alternative
|
|
|
-Summary(ja): 最良の代替手段となることを目指す C++ BitTorrent ライブラリ
|
|
|
+Name: libtorrent-rasterbar
|
|
|
+Version: 1.1.6
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Summary: A C++ BitTorrent library aiming to be the best alternative
|
|
|
+Summary(ja): 最良の代替手段となることを目指す C++ BitTorrent ライブラリ
|
|
|
|
|
|
-Group: System Environment/Libraries
|
|
|
-License: BSD
|
|
|
-URL: http://www.rasterbar.com/products/libtorrent/
|
|
|
+Group: System Environment/Libraries
|
|
|
+License: BSD
|
|
|
+URL: http://www.rasterbar.com/products/libtorrent/
|
|
|
|
|
|
-Source0: http://downloads.sourceforge.net/libtorrent/libtorrent-rasterbar-%{version}.tar.gz
|
|
|
+Source0: http://downloads.sourceforge.net/libtorrent/libtorrent-rasterbar-%{version}.tar.gz
|
|
|
# https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1/libtorrent-rasterbar-%{version}.tar.gz
|
|
|
|
|
|
-Source1: %{name}-COPYING.Boost
|
|
|
-Source2: %{name}-COPYING.zlib
|
|
|
+Source1: %{name}-COPYING.Boost
|
|
|
+Source2: %{name}-COPYING.zlib
|
|
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
-BuildRequires: asio-devel
|
|
|
-BuildRequires: libboost-devel libboost-filesystem libboost-program-options libboost-chrono
|
|
|
-BuildRequires: libboost-python libboost-regex libboost-system libboost-thread libboost-random
|
|
|
-BuildRequires: libtool
|
|
|
-BuildRequires: python-devel
|
|
|
-BuildRequires: python-setuptools
|
|
|
-BuildRequires: zlib-devel
|
|
|
+BuildRequires: asio-devel
|
|
|
+BuildRequires: libboost-devel libboost-filesystem libboost-program-options libboost-chrono
|
|
|
+BuildRequires: libboost-python libboost-regex libboost-system libboost-thread libboost-random
|
|
|
+BuildRequires: libtool
|
|
|
+BuildRequires: python-devel
|
|
|
+BuildRequires: python-setuptools
|
|
|
+BuildRequires: zlib-devel
|
|
|
## Necessary for 'rename'...
|
|
|
-BuildRequires: util-linux
|
|
|
+BuildRequires: util-linux
|
|
|
|
|
|
## The following is taken from it's website listing...mostly.
|
|
|
%description
|
|
@@ -36,24 +36,24 @@ the other BitTorrent implementations around. It is a library and not a full
|
|
|
featured client, although it comes with a few working example clients.
|
|
|
|
|
|
Its main goals are to be very efficient (in terms of CPU and memory usage) as
|
|
|
-well as being very easy to use both as a user and developer.
|
|
|
+well as being very easy to use both as a user and developer.
|
|
|
|
|
|
|
|
|
-%package devel
|
|
|
-Summary: Development files for %{name}
|
|
|
-Summary(ja): %{name} の開発ファイル
|
|
|
-Group: Development/Libraries
|
|
|
-License: BSD and zlib and Boost
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
-Requires: pkgconfig
|
|
|
+%package devel
|
|
|
+Summary: Development files for %{name}
|
|
|
+Summary(ja): %{name} の開発ファイル
|
|
|
+Group: Development/Libraries
|
|
|
+License: BSD and zlib and Boost
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+Requires: pkgconfig
|
|
|
## Same include directory. :(
|
|
|
-Conflicts: libtorrent-devel
|
|
|
+Conflicts: libtorrent-devel
|
|
|
## Needed for various headers used via #include directives...
|
|
|
-Requires: asio-devel
|
|
|
-Requires: libboost-devel
|
|
|
-Requires: openssl-devel
|
|
|
+Requires: asio-devel
|
|
|
+Requires: libboost-devel
|
|
|
+Requires: openssl-devel
|
|
|
|
|
|
-%description devel
|
|
|
+%description devel
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
developing applications that use %{name}.
|
|
|
|
|
@@ -64,28 +64,28 @@ licenses, as well as the comments blocks in the source code for which license
|
|
|
a given source or header file is released under.
|
|
|
|
|
|
|
|
|
-%package examples
|
|
|
-Summary: Example clients using %{name}
|
|
|
-Summary(ja): %{name} で使用する模範クライアント
|
|
|
-Group: Applications/Internet
|
|
|
-License: BSD
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
+%package examples
|
|
|
+Summary: Example clients using %{name}
|
|
|
+Summary(ja): %{name} で使用する模範クライアント
|
|
|
+Group: Applications/Internet
|
|
|
+License: BSD
|
|
|
+Requires:%{name} = %{version}-%{release}
|
|
|
|
|
|
-%description examples
|
|
|
+%description examples
|
|
|
The %{name}-examples package contains example clients which intend to
|
|
|
show how to make use of its various features. (Due to potential
|
|
|
namespace conflicts, a couple of the examples had to be renamed. See the
|
|
|
included documentation for more details.)
|
|
|
|
|
|
|
|
|
-%package python
|
|
|
-Summary: Python bindings for %{name}
|
|
|
-Summary(ja): %{name} の Python バインディング
|
|
|
-Group: System Environment/Libraries
|
|
|
-License: Boost
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
+%package python
|
|
|
+Summary: Python bindings for %{name}
|
|
|
+Summary(ja): %{name} の Python バインディング
|
|
|
+Group: System Environment/Libraries
|
|
|
+License: Boost
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
-%description python
|
|
|
+%description python
|
|
|
The %{name}-python package contains Python language bindings (the 'libtorrent'
|
|
|
module) that allow it to be used from within Python applications.
|
|
|
|
|
@@ -95,99 +95,80 @@ module) that allow it to be used from within Python applications.
|
|
|
|
|
|
## The RST files are the sources used to create the final HTML files; and are
|
|
|
## not needed.
|
|
|
-rm -f docs/*.rst
|
|
|
+%{__rm} -f docs/*.rst
|
|
|
+
|
|
|
## Ensure that we get the licenses installed appropriately.
|
|
|
-install -p -m 0644 COPYING COPYING.BSD
|
|
|
-install -p -m 0644 %{SOURCE1} COPYING.Boost
|
|
|
-install -p -m 0644 %{SOURCE2} COPYING.zlib
|
|
|
+%{__install} -p -m 0644 COPYING COPYING.BSD
|
|
|
+%{__install} -p -m 0644 %{SOURCE1} COPYING.Boost
|
|
|
+%{__install} -p -m 0644 %{SOURCE2} COPYING.zlib
|
|
|
+
|
|
|
## Finally, ensure that everything is UTF-8, as it should be.
|
|
|
iconv -t UTF-8 -f ISO_8859-15 AUTHORS -o AUTHORS.iconv
|
|
|
-mv AUTHORS.iconv AUTHORS
|
|
|
+%{__mv} AUTHORS.iconv AUTHORS
|
|
|
|
|
|
|
|
|
%build
|
|
|
-## XXX: Even with the --with-asio=system configure option, the stuff in
|
|
|
-## the local include directory overrides that of the system. We don't like
|
|
|
-## local copies of system code. :)
|
|
|
-rm -rf include/libtorrent/asio*
|
|
|
-%configure --disable-static \
|
|
|
- --enable-examples \
|
|
|
- --enable-python-binding \
|
|
|
- --with-boost-libdir=%{_libdir}
|
|
|
-
|
|
|
-# --with-boost-filesystem=boost_filesystem-gcc41-mt-1_36 \
|
|
|
-# --with-boost-program_options=boost_program_options-gcc41-mt-1_36 \
|
|
|
-# --with-boost-python=mt \
|
|
|
-# --with-boost-regex=boost_regex-gcc41-mt-1_36 \
|
|
|
-# --with-boost-system=boost_system-gcc41-mt-1_36 \
|
|
|
-# --with-boost-thread=boost_thread-gcc41-mt-1_36 \
|
|
|
-# --with-zlib=system
|
|
|
-## Use the system libtool to ensure that we don't get unnecessary RPATH
|
|
|
-## hacks in our final build.
|
|
|
-make %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool
|
|
|
-pushd bindings/python
|
|
|
- ## Fix the interpreter for the example clients
|
|
|
- sed -i -e 's:^#!/bin/python$:#!/usr/bin/python:' {simple_,}client.py
|
|
|
-popd
|
|
|
+%configure --disable-static \
|
|
|
+ --enable-examples \
|
|
|
+ --enable-tests \
|
|
|
+ --enable-python-binding \
|
|
|
+ CXXFLAGS="-std=c++11"
|
|
|
|
|
|
-
|
|
|
-%check
|
|
|
-make check
|
|
|
+# ## Use the system libtool to ensure that we don't get unnecessary RPATH
|
|
|
+# ## hacks in our final build.
|
|
|
+# %{__make} %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
%install
|
|
|
-rm -rf %{buildroot}
|
|
|
-## Ensure that we preserve our timestamps properly.
|
|
|
-export CPPROG="%{__cp} -p"
|
|
|
-make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
|
|
|
-## Do the renaming due to the somewhat limited %%_bindir namespace.
|
|
|
-rename client torrent_client %{buildroot}%{_bindir}/*
|
|
|
-
|
|
|
-## Install the python binding module.
|
|
|
-pushd bindings/python
|
|
|
- %{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
-popd
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
|
|
|
+# ## Ensure that we preserve our timestamps properly.
|
|
|
+# export CPPROG="%{__cp} -p"
|
|
|
+# %{__make} install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
|
|
|
+%{__make} install DESTDIR=%{buildroot}
|
|
|
+%{__rm} %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
-%clean
|
|
|
-rm -rf %{buildroot}
|
|
|
+## Do the renaming due to the somewhat limited %%_bindir namespace.
|
|
|
+rename client torrent_client %{buildroot}%{_bindir}/*
|
|
|
|
|
|
+%check
|
|
|
+%{__make} check
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
+%clean
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
|
|
|
+%post -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
+%postun -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc AUTHORS ChangeLog COPYING
|
|
|
-%exclude %{_libdir}/*.la
|
|
|
%{_libdir}/libtorrent-rasterbar.so.*
|
|
|
-## Unfortunately (even with the "--disable-static" option to the %%configure
|
|
|
-## invocation) our use of the system libtool creates static libraries at build
|
|
|
-## time, so we must exclude them here.
|
|
|
-%exclude %{_libdir}/*.a
|
|
|
|
|
|
-%files devel
|
|
|
+%files devel
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc COPYING.Boost COPYING.BSD COPYING.zlib docs/
|
|
|
+%doc COPYING.Boost COPYING.BSD COPYING.zlib docs/
|
|
|
%{_libdir}/pkgconfig/libtorrent-rasterbar.pc
|
|
|
%{_includedir}/libtorrent/
|
|
|
%{_libdir}/libtorrent-rasterbar.so
|
|
|
|
|
|
%files examples
|
|
|
+%{_bindir}/bt_get*
|
|
|
%{_bindir}/*torrent*
|
|
|
%{_bindir}/connection_tester
|
|
|
#%{_bindir}/enum_if
|
|
|
#%{_bindir}/fragmentation_test
|
|
|
#%{_bindir}/parse_hash_fails
|
|
|
-%{_bindir}/parse_request_log
|
|
|
-%{_bindir}/rss_reader
|
|
|
+# %{_bindir}/parse_request_log
|
|
|
+# %{_bindir}/rss_reader
|
|
|
+%{_bindir}/stats_counters
|
|
|
%{_bindir}/upnp_test
|
|
|
#%{_bindir}/utp_test
|
|
|
-
|
|
|
-%files python
|
|
|
+
|
|
|
+%files python
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc AUTHORS ChangeLog COPYING.Boost bindings/python/{simple_,}client.py
|
|
|
%{python_sitearch}/python_libtorrent-%{version}-py?.?.egg-info
|
|
@@ -195,6 +176,11 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Jan 18 2018 Toshiaki Ara <ara_t@384.jp> - 1.1.6-1
|
|
|
+- new upstream release
|
|
|
+- add configure option: --enable-tests and CXXFLAGS="-std=c++11"
|
|
|
+- delete old comments
|
|
|
+
|
|
|
* Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.9-2
|
|
|
- rebuild with gcc-5.4.0
|
|
|
|