From 84afce388af99225c81ea78812026632706a31f7998a3d8ab2117f3e83eb48a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 4 Feb 2016 23:25:16 +0000 Subject: [PATCH] Accepting request 357811 from GNOME:Next - Add libsigc++-std-c11.patch: Add -std=c11 to CFLAGS in the .pc file. This allows other packages building against libsigc++ to be aware of the C11 requirement we bring. libsigc++ itself checks for the availability during configure, so it is safe to pass this requirement on. OBS-URL: https://build.opensuse.org/request/show/357811 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libsigc++2?expand=0&rev=42 --- libsigc++-std-c11.patch | 10 ++++++++++ libsigc++2.changes | 9 +++++++++ libsigc++2.spec | 5 ++++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 libsigc++-std-c11.patch diff --git a/libsigc++-std-c11.patch b/libsigc++-std-c11.patch new file mode 100644 index 0000000..bd8907f --- /dev/null +++ b/libsigc++-std-c11.patch @@ -0,0 +1,10 @@ +Index: libsigc++-2.6.2/sigc++.pc.in +=================================================================== +--- libsigc++-2.6.2.orig/sigc++.pc.in ++++ libsigc++-2.6.2/sigc++.pc.in +@@ -15,4 +15,4 @@ Description: Typesafe signal and callbac + Version: @PACKAGE_VERSION@ + URL: http://libsigc.sourceforge.net/ + Libs: -L${libdir} -lsigc-@SIGCXX_API_VERSION@ +-Cflags: -I${includedir}/sigc++-@SIGCXX_API_VERSION@ -I${libdir}/sigc++-@SIGCXX_API_VERSION@/include ++Cflags: -I${includedir}/sigc++-@SIGCXX_API_VERSION@ -I${libdir}/sigc++-@SIGCXX_API_VERSION@/include -std=c++11 diff --git a/libsigc++2.changes b/libsigc++2.changes index 6f12cf6..5fe2991 100644 --- a/libsigc++2.changes +++ b/libsigc++2.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Feb 4 23:11:56 UTC 2016 - dimstar@opensuse.org + +- Add libsigc++-std-c11.patch: Add -std=c11 to CFLAGS in the .pc + file. This allows other packages building against libsigc++ to + be aware of the C11 requirement we bring. libsigc++ itself checks + for the availability during configure, so it is safe to pass this + requirement on. + ------------------------------------------------------------------- Sun Nov 22 15:17:41 UTC 2015 - zaitor@opensuse.org diff --git a/libsigc++2.spec b/libsigc++2.spec index 0cd9b8a..3068add 100644 --- a/libsigc++2.spec +++ b/libsigc++2.spec @@ -1,7 +1,7 @@ # # spec file for package libsigc++2 # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -26,6 +26,8 @@ Group: System/Libraries Url: http://libsigc.sourceforge.net/ Source: http://download.gnome.org/sources/libsigc++/2.6/%{_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: pkg-config BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -68,6 +70,7 @@ of use unmatched by other C++ callback libraries. %prep %setup -q -n %{_name}-%{version} +%patch0 -p1 %build # FIXME: Cannot autoreconf, bad templates: