forked from pool/libtorrent-rasterbar
- added back the support to build the examples. they are very
useful for debugging. they are guarded by a %bcond_with so they wont be build by default. - disable silent rules to make the check_gcc_output scripts work OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 7 15:21:57 UTC 2011 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- added back the support to build the examples. they are very
|
||||||
|
useful for debugging. they are guarded by a %bcond_with so they
|
||||||
|
wont be build by default.
|
||||||
|
- disable silent rules to make the check_gcc_output scripts work
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 3 14:47:49 UTC 2011 - fisiu@opensuse.org
|
Fri Jun 3 14:47:49 UTC 2011 - fisiu@opensuse.org
|
||||||
|
|
||||||
|
@@ -16,6 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
%define _soname 6
|
%define _soname 6
|
||||||
|
# for setting those bcond_with* configs see
|
||||||
|
# http://lizards.opensuse.org/2008/09/12/conditional-features-aka-use-flags/
|
||||||
|
# optionally build with examples
|
||||||
|
%bcond_with examples
|
||||||
|
|
||||||
Name: libtorrent-rasterbar
|
Name: libtorrent-rasterbar
|
||||||
Version: 0.15.6
|
Version: 0.15.6
|
||||||
@@ -65,6 +69,14 @@ Requires: python >= %{py_ver}
|
|||||||
%description -n python-libtorrent-rasterbar
|
%description -n python-libtorrent-rasterbar
|
||||||
Python Bindings for package libtorrent-rasterbar.
|
Python Bindings for package libtorrent-rasterbar.
|
||||||
|
|
||||||
|
%if %{with examples}
|
||||||
|
%package -n %{name}-tools
|
||||||
|
Summary: Example tools from libtorrent-rasterbar
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
%description -n %{name}-tools
|
||||||
|
Example tools from the libtorrent-rasterbar package.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: BSD
|
License: BSD
|
||||||
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
|
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
|
||||||
@@ -104,9 +116,13 @@ export LDFLAGS="%{optflags} -lrt"
|
|||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
|
--disable-silent-rules \
|
||||||
--with-libgeoip \
|
--with-libgeoip \
|
||||||
--with-boost-libdir=%{_libdir} \
|
--with-boost-libdir=%{_libdir} \
|
||||||
--enable-tests \
|
--enable-tests \
|
||||||
|
%if %{with examples}
|
||||||
|
--enable-examples \
|
||||||
|
%endif
|
||||||
--enable-python-binding
|
--enable-python-binding
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@@ -124,6 +140,16 @@ install -m 644 docs/* %{buildroot}%{_defaultdocdir}/%{name}/
|
|||||||
%post -n %{name}%{_soname} -p /sbin/ldconfig
|
%post -n %{name}%{_soname} -p /sbin/ldconfig
|
||||||
%postun -n %{name}%{_soname} -p /sbin/ldconfig
|
%postun -n %{name}%{_soname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if %{with examples}
|
||||||
|
%files -n %{name}-tools
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/client_test
|
||||||
|
%{_bindir}/dump_torrent
|
||||||
|
%{_bindir}/enum_if
|
||||||
|
%{_bindir}/make_torrent
|
||||||
|
%{_bindir}/simple_client
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{name}%{_soname}
|
%files -n %{name}%{_soname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||||
|
Reference in New Issue
Block a user