1
0

- 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:
Marcus Rückert 2011-06-07 15:23:03 +00:00 committed by Git OBS Bridge
parent 12995974f4
commit 3e4e48c245
2 changed files with 34 additions and 0 deletions

View File

@ -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

View File

@ -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