From 777f8cbf5576388a5a9c5de8b49233e8b4ab8e45e3a0000a1f99027f6bb99e23 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 5 Mar 2018 14:05:11 +0000 Subject: [PATCH] Accepting request 581437 from GNOME:Next spec-cleaner OBS-URL: https://build.opensuse.org/request/show/581437 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libsigc++2?expand=0&rev=53 --- libsigc++2.changes | 5 +++++ libsigc++2.spec | 21 +++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/libsigc++2.changes b/libsigc++2.changes index 06bd66c..aaaef08 100644 --- a/libsigc++2.changes +++ b/libsigc++2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 28 16:36:21 UTC 2018 - dimstar@opensuse.org + +- Modernize spec-file by calling spec-cleaner + ------------------------------------------------------------------- Thu Feb 9 14:03:31 UTC 2017 - dimstar@opensuse.org diff --git a/libsigc++2.spec b/libsigc++2.spec index d096aab..e04d7d1 100644 --- a/libsigc++2.spec +++ b/libsigc++2.spec @@ -1,7 +1,7 @@ # # spec file for package libsigc++2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,21 @@ # -Name: libsigc++2 %define _name libsigc++ +Name: libsigc++2 Version: 2.10.0 Release: 0 Summary: Typesafe Signal Framework for C++ -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ -Url: http://libsigc.sourceforge.net/ +URL: http://libsigc.sourceforge.net/ Source: http://download.gnome.org/sources/libsigc++/2.10/%{_name}-%{version}.tar.xz Source99: baselibs.conf # PATCH-FIX-OPENSUSE libsigc++-std-c11.patch dimstar@opensuse.org -- Add -std=c11 to CFLAGS when using libsigc++ to build. This is not upstreamable in this form as the used CXX macro should handle that, so needs more work (and entry points in mm-common) Patch0: libsigc++-std-c11.patch BuildRequires: gcc-c++ BuildRequires: m4 -BuildRequires: pkg-config -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig %description This library implements a full callback system for use in widget @@ -81,24 +80,22 @@ make %{?_smp_mflags} %install %make_install -rm -f %{buildroot}%{_libdir}/*.la +find %{buildroot} -type f -name "*.la" -delete -print %check export MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) -make check +make %{?_smp_mflags} check unset MALLOC_CHECK_ MALLOC_PERTURB_ %post -n libsigc-2_0-0 -p /sbin/ldconfig - %postun -n libsigc-2_0-0 -p /sbin/ldconfig %files -n libsigc-2_0-0 -%defattr (-, root, root) -%doc AUTHORS COPYING ChangeLog NEWS README +%license COPYING +%doc AUTHORS ChangeLog NEWS README %{_libdir}/libsigc-2.0.so.* %files devel -%defattr (-, root, root) %{_libdir}/libsigc-2.0.so %{_libdir}/pkgconfig/*.pc %{_libdir}/sigc++-2.0