public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/simpleini] epel8: Fix the build on EL8
Date: Mon, 23 Nov 2026 17:11:02 GMT [thread overview]
Message-ID: <179545386232.1.9933790721997867545.rpms-simpleini-fb996958ad60@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-23 17:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179545386232.1.9933790721997867545.rpms-simpleini-fb996958ad60@fedoraproject.org \
--to=salimma@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox