File project.diff of Package kcov
--- kcov.changes.orig
+++ kcov.changes
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue Aug 27 11:47:06 UTC 2024 - Michal Suchanek <msuchanek@suse.com>
+
+- Fix build on SLE12 SP5
+ * autosetup expansion does not have a newline at the end, add one.
+ * build with gcc7
+
+-------------------------------------------------------------------
Tue Apr 16 11:23:38 UTC 2024 - Lubos Kocman <lubos.kocman@suse.com>
- legaldb scan: Add APSL-2.0
--- kcov.spec.orig
+++ kcov.spec
@@ -26,7 +26,11 @@ URL: https://github.com/Simon
Source0: https://github.com/SimonKagstrom/kcov/archive/v%{version}.tar.gz
Patch0: link_order.patch
BuildRequires: binutils-devel
+%if 0%{?suse_version} && 0%{?suse_version} < 1500
+BuildRequires: gcc7-c++
+%else
BuildRequires: c++_compiler
+%endif
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcurl)
@@ -44,6 +48,7 @@ long-running applications.
%prep
%autosetup -p1
+
# remove LLDB headers bundled for MacOS
rm -frv external/
@@ -51,6 +56,10 @@ rm -frv external/
%if 0%{?suse_version} > 1500 || (0%{?suse_version} == 1500 && 0%{?sle_version} > 150400)
export CFLAGS="%{optflags} -lsframe -lzstd"
%endif
+%if 0%{?suse_version} && 0%{?suse_version} < 1500
+export CC=gcc-7
+export CXX=g++-7
+%endif
%cmake
%cmake_build