public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Raits <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/cxxopts] epel10.3: Improve compatibility with new CMake macro
Date: Tue, 22 Sep 2026 01:32:16 GMT	[thread overview]
Message-ID: <179004073626.1.3939116427026512351.rpms-cxxopts-bb5c78038b7a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/cxxopts
            Branch : epel10.3
            Commit : bb5c78038b7a2ae4bdedb44958f54ef3bbbc11d7
            Author : Igor Raits <ignatenkobrain@fedoraproject.org>
            Date   : 2020-07-20T17:53:53+02:00
            Stats  : +6/-10 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/cxxopts/c/bb5c78038b7a2ae4bdedb44958f54ef3bbbc11d7?branch=epel10.3

            Log:
            Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>

---
diff --git a/cxxopts.spec b/cxxopts.spec
index 0727ea8..c492fd2 100644
--- a/cxxopts.spec
+++ b/cxxopts.spec
@@ -1,3 +1,4 @@
+%undefine __cmake_in_source_build
 %global debug_package %{nil}
 
 Name: cxxopts
@@ -31,26 +32,21 @@ Requires: libstdc++-devel%{?_isa}
 
 %prep
 %autosetup -p1
-mkdir -p %{_target_platform}
 
 %build
-pushd %{_target_platform}
-    %cmake -G Ninja \
+%cmake -G Ninja \
     -DCMAKE_BUILD_TYPE=Release \
     -DCXXOPTS_ENABLE_INSTALL=ON \
     -DCXXOPTS_BUILD_EXAMPLES=OFF \
     -DCXXOPTS_BUILD_TESTS=ON \
-    ..
-popd
-%ninja_build -C %{_target_platform}
+    %{nil}
+%cmake_build
 
 %check
-pushd %{_target_platform}
-    ctest --output-on-failure
-popd
+%ctest
 
 %install
-%ninja_install -C %{_target_platform}
+%cmake_install
 
 %files devel
 %doc README.md

                 reply	other threads:[~2026-09-22  1:32 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=179004073626.1.3939116427026512351.rpms-cxxopts-bb5c78038b7a@fedoraproject.org \
    --to=ignatenkobrain@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