From 3e4e48c245423f118cd22ef8abc8ba2207086917f3bc30ceda139d6bf50b3810 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 7 Jun 2011 15:23:03 +0000 Subject: [PATCH] - 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 --- libtorrent-rasterbar.changes | 8 ++++++++ libtorrent-rasterbar.spec | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/libtorrent-rasterbar.changes b/libtorrent-rasterbar.changes index 11ffd7a..f839984 100644 --- a/libtorrent-rasterbar.changes +++ b/libtorrent-rasterbar.changes @@ -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 diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index a851b43..6ed237e 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -16,6 +16,10 @@ # %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 Version: 0.15.6 @@ -65,6 +69,14 @@ Requires: python >= %{py_ver} %description -n python-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 License: BSD Summary: Libtorrent is a C++ implementation of the BitTorrent protocol @@ -104,9 +116,13 @@ export LDFLAGS="%{optflags} -lrt" %configure \ --disable-static \ + --disable-silent-rules \ --with-libgeoip \ --with-boost-libdir=%{_libdir} \ --enable-tests \ +%if %{with examples} + --enable-examples \ +%endif --enable-python-binding make %{?_smp_mflags} @@ -124,6 +140,16 @@ install -m 644 docs/* %{buildroot}%{_defaultdocdir}/%{name}/ %post -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} %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README