2011-04-11 03:07:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package libtorrent-rasterbar
|
|
|
|
#
|
2016-01-15 01:30:50 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-04-11 03:07:13 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-09 15:38:42 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%define _name libtorrent
|
|
|
|
%define sover 8
|
2016-03-04 09:08:53 +00:00
|
|
|
%define _version 1_0_9
|
2011-06-07 15:23:03 +00:00
|
|
|
%bcond_with examples
|
2011-04-11 03:07:13 +00:00
|
|
|
Name: libtorrent-rasterbar
|
2016-03-04 09:08:53 +00:00
|
|
|
Version: 1.0.9
|
2011-12-09 09:06:02 +00:00
|
|
|
Release: 0
|
2011-04-11 03:07:13 +00:00
|
|
|
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
|
2011-12-09 09:06:02 +00:00
|
|
|
License: BSD-3-Clause
|
2011-04-11 03:07:13 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-06-02 06:25:17 +00:00
|
|
|
Url: http://rasterbar.com/products/libtorrent
|
2015-08-02 12:04:33 +00:00
|
|
|
Source: https://github.com/arvidn/%{_name}/releases/download/%{_name}-%{_version}/%{name}-%{version}.tar.gz
|
2011-04-11 03:07:13 +00:00
|
|
|
BuildRequires: boost-devel >= 1.36
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
2013-02-21 16:32:52 +00:00
|
|
|
BuildRequires: python-devel
|
2015-06-02 06:25:17 +00:00
|
|
|
BuildRequires: pkgconfig(geoip)
|
2011-04-11 03:07:13 +00:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
|
|
|
|
%description
|
2015-06-02 06:25:17 +00:00
|
|
|
libtorrent-rasterbar is a C++ library that aims to be a good
|
|
|
|
alternative to all the other bittorrent implementations around.
|
|
|
|
It is a library and not a full featured client, although it comes
|
|
|
|
with a working example client.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
The main goals of libtorrent-rasterbar are:
|
|
|
|
* To be cpu efficient.
|
|
|
|
* To be memory efficient.
|
|
|
|
* To be very easy to use.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
This package holds the sample client and example files for
|
|
|
|
libtorrent-rasterbar.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%package -n %{name}%{sover}
|
2011-04-11 03:07:13 +00:00
|
|
|
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
|
2015-06-08 08:20:49 +00:00
|
|
|
Group: System/Libraries
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%description -n %{name}%{sover}
|
|
|
|
libtorrent-rasterbar is a C++ library that aims to be a good
|
|
|
|
alternative to all the other bittorrent implementations around.
|
|
|
|
It is a library and not a full featured client, although it comes
|
|
|
|
with a working example client.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
The main goals of libtorrent-rasterbar are:
|
|
|
|
* To be cpu efficient.
|
|
|
|
* To be memory efficient.
|
|
|
|
* To be very easy to use.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
%package -n python-%{name}
|
|
|
|
Summary: Python Bindings for libtorrent-rasterbar
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%description -n python-%{name}
|
|
|
|
Python Bindings for the libtorrent-rasterbar package.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2011-06-07 15:23:03 +00:00
|
|
|
%if %{with examples}
|
2015-06-02 06:25:17 +00:00
|
|
|
%package tools
|
2011-06-07 15:23:03 +00:00
|
|
|
Summary: Example tools from libtorrent-rasterbar
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-06-22 08:47:57 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%description tools
|
2011-06-07 15:23:03 +00:00
|
|
|
Example tools from the libtorrent-rasterbar package.
|
|
|
|
%endif
|
|
|
|
|
2011-04-11 03:07:13 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-06-02 06:25:17 +00:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2011-04-11 03:07:13 +00:00
|
|
|
Requires: boost-devel >= 1.36
|
|
|
|
Requires: gcc-c++
|
2015-06-02 06:25:17 +00:00
|
|
|
Requires: pkgconfig(geoip)
|
2011-04-11 03:07:13 +00:00
|
|
|
Requires: pkgconfig(openssl)
|
|
|
|
|
|
|
|
%description devel
|
2015-06-02 06:25:17 +00:00
|
|
|
libtorrent-rasterbar is a C++ library that aims to be a good
|
|
|
|
alternative to all the other bittorrent implementations around.
|
|
|
|
It is a library and not a full featured client, although it comes
|
|
|
|
with a working example client.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
The main goals of libtorrent-rasterbar are:
|
|
|
|
* To be cpu efficient.
|
|
|
|
* To be memory efficient.
|
|
|
|
* To be very easy to use.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
This package holds the development files for libtorrent-rasterbar.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for libtorrent-rasterbar
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description doc
|
2015-06-02 06:25:17 +00:00
|
|
|
Documentation for the libtorrent-rasterbar package.
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2015-06-02 06:25:17 +00:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
2013-02-21 16:32:52 +00:00
|
|
|
export LDFLAGS="%{optflags} -lrt"
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
%configure \
|
2015-06-02 06:25:17 +00:00
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--with-libgeoip \
|
|
|
|
--with-boost-libdir=%{_libdir} \
|
2011-06-07 15:23:03 +00:00
|
|
|
%if %{with examples}
|
2015-06-02 06:25:17 +00:00
|
|
|
--enable-examples \
|
2011-06-07 15:23:03 +00:00
|
|
|
%endif
|
2015-06-02 06:25:17 +00:00
|
|
|
--enable-python-binding \
|
|
|
|
--enable-encryption
|
2013-02-21 16:32:52 +00:00
|
|
|
make %{?_smp_mflags}
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
%install
|
2015-06-02 06:25:17 +00:00
|
|
|
%make_install
|
2015-04-16 17:52:27 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-06-02 06:25:17 +00:00
|
|
|
# Move doc to a separate package.
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}/
|
|
|
|
cp -r docs/* %{buildroot}%{_docdir}/%{name}/
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2013-12-13 11:42:43 +00:00
|
|
|
%if %{with examples}
|
2015-08-02 12:04:33 +00:00
|
|
|
# Drop tests binaries from -tools subpackage.
|
2015-06-02 06:25:17 +00:00
|
|
|
rm -v %{buildroot}%{_bindir}/{client_test,connection_tester,enum_if,fragmentation_test} \
|
|
|
|
%{buildroot}%{_bindir}/{parse_hash_fails,parse_request_log,rss_reader,upnp_test,utp_test}
|
2013-12-13 11:42:43 +00:00
|
|
|
%endif
|
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
2011-06-22 08:47:57 +00:00
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2011-04-11 03:07:13 +00:00
|
|
|
|
2011-06-07 15:23:03 +00:00
|
|
|
%if %{with examples}
|
2015-06-02 06:25:17 +00:00
|
|
|
%files tools
|
2011-06-07 15:23:03 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/dump_torrent
|
|
|
|
%{_bindir}/make_torrent
|
|
|
|
%{_bindir}/simple_client
|
|
|
|
%endif
|
|
|
|
|
2015-06-02 06:25:17 +00:00
|
|
|
%files -n %{name}%{sover}
|
2011-04-11 03:07:13 +00:00
|
|
|
%defattr(-,root,root)
|
2015-11-23 13:45:18 +00:00
|
|
|
%doc AUTHORS ChangeLog COPYING
|
2015-06-02 06:25:17 +00:00
|
|
|
%{_libdir}/%{name}.so.%{sover}*
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
%files -n python-%{name}
|
|
|
|
%defattr(-,root,root)
|
2015-06-02 06:25:17 +00:00
|
|
|
%{py_sitedir}/%{_name}.so
|
|
|
|
%{py_sitedir}/python_%{_name}-%{version}-py%{py_ver}.egg-info
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2015-06-02 06:25:17 +00:00
|
|
|
%{_includedir}/%{_name}/
|
2011-04-11 03:07:13 +00:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2015-06-02 06:25:17 +00:00
|
|
|
%doc %{_docdir}/%{name}/
|
2011-04-11 03:07:13 +00:00
|
|
|
|
|
|
|
%changelog
|