Browse Source

libtorrent-rasterbar: update to 1.1.6

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11402 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 7 years ago
parent
commit
0c7a67c3ae
1 changed files with 90 additions and 104 deletions
  1. 90 104
      lib/libt/libtorrent-rasterbar/libtorrent-rasterbar-vl.spec

+ 90 - 104
lib/libt/libtorrent-rasterbar/libtorrent-rasterbar-vl.spec

@@ -1,33 +1,33 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %{!?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)")}
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 
-Name:		libtorrent-rasterbar
+Name:    libtorrent-rasterbar
-Version:	1.0.9
+Version: 1.1.6
-Release:	2%{?_dist_release}
+Release: 1%{?_dist_release}
-Summary:	A C++ BitTorrent library aiming to be the best alternative
+Summary: A C++ BitTorrent library aiming to be the best alternative
-Summary(ja):	最良の代替手段となることを目指す C++ BitTorrent ライブラリ
+Summary(ja): 最良の代替手段となることを目指す C++ BitTorrent ライブラリ
 
 
-Group:		System Environment/Libraries
+Group:   System Environment/Libraries
-License:	BSD
+License: BSD
-URL:		http://www.rasterbar.com/products/libtorrent/
+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
 # https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1/libtorrent-rasterbar-%{version}.tar.gz
 
 
-Source1:	%{name}-COPYING.Boost
+Source1: %{name}-COPYING.Boost
-Source2:	%{name}-COPYING.zlib
+Source2: %{name}-COPYING.zlib
 
 
-BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 
-BuildRequires:	asio-devel
+BuildRequires: asio-devel
-BuildRequires:	libboost-devel libboost-filesystem libboost-program-options libboost-chrono
+BuildRequires: libboost-devel libboost-filesystem libboost-program-options libboost-chrono
-BuildRequires:	libboost-python libboost-regex libboost-system libboost-thread libboost-random
+BuildRequires: libboost-python libboost-regex libboost-system libboost-thread libboost-random
-BuildRequires:	libtool
+BuildRequires: libtool
-BuildRequires:	python-devel
+BuildRequires: python-devel
-BuildRequires:	python-setuptools
+BuildRequires: python-setuptools
-BuildRequires:	zlib-devel
+BuildRequires: zlib-devel
 ## Necessary for 'rename'...
 ## Necessary for 'rename'...
-BuildRequires:	util-linux
+BuildRequires: util-linux
 
 
 ## The following is taken from it's website listing...mostly.
 ## The following is taken from it's website listing...mostly.
 %description
 %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.
 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
 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
+%package  devel
-Summary:	Development files for %{name}
+Summary: Development files for %{name}
-Summary(ja):	%{name} の開発ファイル
+Summary(ja): %{name} の開発ファイル
-Group:		Development/Libraries
+Group:    Development/Libraries
-License:	BSD and zlib and Boost
+License:  BSD and zlib and Boost
-Requires:	%{name} = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
-Requires:	pkgconfig
+Requires: pkgconfig
 ## Same include directory. :(
 ## Same include directory. :(
-Conflicts:	libtorrent-devel
+Conflicts:  libtorrent-devel
 ## Needed for various headers used via #include directives...
 ## Needed for various headers used via #include directives...
-Requires:	asio-devel
+Requires: asio-devel
-Requires:	libboost-devel
+Requires: libboost-devel
-Requires:	openssl-devel
+Requires: openssl-devel
 
 
-%description	devel
+%description  devel
 The %{name}-devel package contains libraries and header files for
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 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.
 a given source or header file is released under.
 
 
 
 
-%package	examples
+%package examples
-Summary:	Example clients using %{name}
+Summary: Example clients using %{name}
-Summary(ja):	%{name} で使用する模範クライアント
+Summary(ja): %{name} で使用する模範クライアント
-Group:		Applications/Internet
+Group:   Applications/Internet
-License:	BSD
+License: BSD
-Requires:	%{name} = %{version}-%{release}
+Requires:%{name} = %{version}-%{release}
 
 
-%description	examples
+%description examples
 The %{name}-examples package contains example clients which intend to
 The %{name}-examples package contains example clients which intend to
 show how to make use of its various features. (Due to potential
 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
 namespace conflicts, a couple of the examples had to be renamed. See the
 included documentation for more details.)
 included documentation for more details.)
 
 
 
 
-%package	python
+%package python
-Summary:	Python bindings for %{name}
+Summary: Python bindings for %{name}
-Summary(ja):	%{name} の Python バインディング
+Summary(ja): %{name} の Python バインディング
-Group:		System Environment/Libraries
+Group:    System Environment/Libraries
-License:	Boost
+License:  Boost
-Requires:	%{name} = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
 
 
-%description	python
+%description python
 The %{name}-python package contains Python language bindings (the 'libtorrent'
 The %{name}-python package contains Python language bindings (the 'libtorrent'
 module) that allow it to be used from within Python applications.
 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
 ## The RST files are the sources used to create the final HTML files; and are
 ## not needed.
 ## not needed.
-rm -f docs/*.rst
+%{__rm} -f docs/*.rst
+
 ## Ensure that we get the licenses installed appropriately.
 ## Ensure that we get the licenses installed appropriately.
-install -p -m 0644 COPYING COPYING.BSD
+%{__install} -p -m 0644 COPYING COPYING.BSD
-install -p -m 0644 %{SOURCE1} COPYING.Boost
+%{__install} -p -m 0644 %{SOURCE1} COPYING.Boost
-install -p -m 0644 %{SOURCE2} COPYING.zlib
+%{__install} -p -m 0644 %{SOURCE2} COPYING.zlib
+
 ## Finally, ensure that everything is UTF-8, as it should be.
 ## Finally, ensure that everything is UTF-8, as it should be.
 iconv -t UTF-8 -f ISO_8859-15 AUTHORS -o AUTHORS.iconv
 iconv -t UTF-8 -f ISO_8859-15 AUTHORS -o AUTHORS.iconv
-mv AUTHORS.iconv AUTHORS
+%{__mv} AUTHORS.iconv AUTHORS
 
 
 
 
 %build
 %build
-## XXX: Even with the --with-asio=system configure option, the stuff in
+%configure --disable-static \
-## the local include directory overrides that of the system. We don't like
+           --enable-examples \
-## local copies of system code. :)
+           --enable-tests \
-rm -rf include/libtorrent/asio*
+           --enable-python-binding \
-%configure --disable-static				\
+           CXXFLAGS="-std=c++11"
-	--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
 
 
-
+# ## Use the system libtool to ensure that we don't get unnecessary RPATH
-%check
+# ## hacks in our final build.
-make check
+# %{__make} %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool
+%{__make} %{?_smp_mflags}
 
 
 
 
 %install
 %install
-rm -rf %{buildroot}
+%{__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 
 
 
+# ## 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
+## Do the renaming due to the somewhat limited %%_bindir namespace.
-rm -rf %{buildroot}
+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
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING
 %doc AUTHORS ChangeLog COPYING
-%exclude %{_libdir}/*.la
 %{_libdir}/libtorrent-rasterbar.so.*
 %{_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,-)
 %defattr(-,root,root,-)
-%doc COPYING.Boost COPYING.BSD COPYING.zlib docs/ 
+%doc COPYING.Boost COPYING.BSD COPYING.zlib docs/
 %{_libdir}/pkgconfig/libtorrent-rasterbar.pc
 %{_libdir}/pkgconfig/libtorrent-rasterbar.pc
 %{_includedir}/libtorrent/
 %{_includedir}/libtorrent/
 %{_libdir}/libtorrent-rasterbar.so
 %{_libdir}/libtorrent-rasterbar.so
 
 
 %files examples
 %files examples
+%{_bindir}/bt_get*
 %{_bindir}/*torrent*
 %{_bindir}/*torrent*
 %{_bindir}/connection_tester
 %{_bindir}/connection_tester
 #%{_bindir}/enum_if
 #%{_bindir}/enum_if
 #%{_bindir}/fragmentation_test
 #%{_bindir}/fragmentation_test
 #%{_bindir}/parse_hash_fails
 #%{_bindir}/parse_hash_fails
-%{_bindir}/parse_request_log
+# %{_bindir}/parse_request_log
-%{_bindir}/rss_reader
+# %{_bindir}/rss_reader
+%{_bindir}/stats_counters
 %{_bindir}/upnp_test
 %{_bindir}/upnp_test
 #%{_bindir}/utp_test
 #%{_bindir}/utp_test
-   
+
-%files	python
+%files python
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING.Boost bindings/python/{simple_,}client.py
 %doc AUTHORS ChangeLog COPYING.Boost bindings/python/{simple_,}client.py
 %{python_sitearch}/python_libtorrent-%{version}-py?.?.egg-info
 %{python_sitearch}/python_libtorrent-%{version}-py?.?.egg-info
@@ -195,6 +176,11 @@ rm -rf %{buildroot}
 
 
 
 
 %changelog
 %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
 * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.9-2
 - rebuild with gcc-5.4.0
 - rebuild with gcc-5.4.0