--- /dev/null
+--- cmocka-1.0.0/include/cmocka.h.orig 2015-02-13 13:50:50.000000000 +0100
++++ cmocka-1.0.0/include/cmocka.h 2016-07-01 06:08:43.313760702 +0200
+@@ -53,7 +53,7 @@
+ */
+
+ /* For those who are used to __func__ from gcc. */
+-#ifndef __func__
++#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)) && (!defined(__cplusplus) || (__cplusplus < 201103L)) && !defined(__func__)
+ #define __func__ __FUNCTION__
+ #endif
+
Summary(pl.UTF-8): Odgałęzienie szkieletu testów jednostkowych cmockery Google'a
Name: cmocka
Version: 1.0.0
-Release: 1
+Release: 2
License: Apache v2.0
Group: Libraries
#Source0Download: https://open.cryptomilk.org/projects/cmocka/files
Source0: https://open.cryptomilk.org/attachments/download/54/%{name}-%{version}.tar.xz
# Source0-md5: 3e68580d9c97601dd983cf098931f987
+Patch0: %{name}-function.patch
URL: http://cmocka.org/
BuildRequires: cmake >= 2.6.0
BuildRequires: tar >= 1:1.22
%prep
%setup -q
+%patch0 -p1
%build
install -d build