public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/simpleini] epel8: Fix the build on EL8
@ 2026-11-23 17:11 Michel Lind
0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-11-23 17:11 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/simpleini
Branch : epel8
Commit : fb996958ad60404c7376498ca376243c117cc41c
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2026-11-20T18:36:37+00:00
Stats : +10/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/simpleini/c/fb996958ad60404c7376498ca376243c117cc41c?branch=epel8
Log:
Fix the build on EL8
EL8's gtest 1.8.0 ships no CMake config, so nothing provides
cmake(GTest); require gtest-devel there instead and let CMake's
FindGTest module find it. EL8's %cmake also builds in-source by
default, which upstream's CMakeLists refuses, so undefine
__cmake_in_source_build there.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/simpleini.spec b/simpleini.spec
index 99a2892..ed5c23a 100644
--- a/simpleini.spec
+++ b/simpleini.spec
@@ -1,6 +1,11 @@
# header-only library
%global debug_package %{nil}
+%if 0%{?el8}
+# EL8's %%cmake builds in-source by default, which upstream refuses
+%undefine __cmake_in_source_build
+%endif
+
Name: simpleini
Version: 4.25
Release: %autorelease
@@ -11,7 +16,12 @@ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: cmake
+%if 0%{?el8}
+# EL8's gtest 1.8.0 ships no CMake config; CMake's FindGTest module finds it
+BuildRequires: gtest-devel
+%else
BuildRequires: cmake(GTest)
+%endif
%description
simpleini is a cross-platform library that provides a simple API to read and
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 17:11 [rpms/simpleini] epel8: Fix the build on EL8 Michel Lind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox