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
This commit is contained in:
parent
d53b00be92
commit
84afce388a
10
libsigc++-std-c11.patch
Normal file
10
libsigc++-std-c11.patch
Normal file
@ -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
|
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user