From 8d1ad1cb790644ecd748bf879f646549e2e9faeb8971a4286609af5a1d8c57b1 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sun, 14 Sep 2008 22:58:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsigc++2?expand=0&rev=7 --- libsigc++2.changes | 6 ++++++ libsigc++2.spec | 33 +++++++++++++++++++++++---------- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/libsigc++2.changes b/libsigc++2.changes index 21e6c03..f06b988 100644 --- a/libsigc++2.changes +++ b/libsigc++2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Sep 14 04:36:50 CEST 2008 - crrodriguez@suse.de + +- remove static libraries and useless "la" file +- run test suite + ------------------------------------------------------------------- Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de diff --git a/libsigc++2.spec b/libsigc++2.spec index d01e314..d15123c 100644 --- a/libsigc++2.spec +++ b/libsigc++2.spec @@ -2,9 +2,16 @@ # spec file for package libsigc++2 (Version 2.2.2) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. # +# 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/ # @@ -15,7 +22,7 @@ Name: libsigc++2 %define _name libsigc++ BuildRequires: gcc-c++ Version: 2.2.2 -Release: 4 +Release: 40 Group: Development/Libraries/C and C++ License: LGPL v2.1 or later Summary: Typesafe Signal Framework for C++ @@ -80,8 +87,13 @@ Authors: %build # FIXME: Cannot autoreconf, bad templates: #ACLOCAL="aclocal -I scripts" autoreconf -f -i -%configure -make %{?jobs:-j%jobs} +%configure --disable-static --with-pic +%{__make} %{?jobs:-j%jobs} + +%check +export MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) +%{__make} check +unset MALLOC_CHECK_ MALLOC_PERTURB_ %install make DESTDIR=$RPM_BUILD_ROOT libsigc_docdir=%{_docdir}/%{name}/docs install @@ -91,15 +103,14 @@ mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/examples cp examples/{Makefile,*.cc} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/tests cp tests/{Makefile,*.cc} $RPM_BUILD_ROOT%{_docdir}/%{name}/tests +rm -f %{buildroot}%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT -%post -%run_ldconfig +%post -p /sbin/ldconfig -%postun -%run_ldconfig +%postun -p /sbin/ldconfig %files %defattr (-, root, root) @@ -117,13 +128,15 @@ rm -rf $RPM_BUILD_ROOT %doc %{_docdir}/%{name}/examples %doc %{_docdir}/%{name}/docs %doc %{_docdir}/%{name}/tests -%{_libdir}/*.*a %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_libdir}/sigc++-2.0 %{_includedir}/* %changelog +* Sun Sep 14 2008 crrodriguez@suse.de +- remove static libraries and useless "la" file +- run test suite * Thu Apr 10 2008 ro@suse.de - added baselibs.conf file to build xxbit packages for multilib support