public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/cli11] rawhide: Use the cmake declarative buildsystem
Date: Mon, 13 Jul 2026 15:37:12 GMT [thread overview]
Message-ID: <178395703241.1.4945203259749518618.rpms-cli11-b263a3bfe13f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cli11
Branch : rawhide
Commit : b263a3bfe13fcdd19ecbe1637577ded7df2e20c2
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-07-13T09:36:58-06:00
Stats : +12/-14 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/cli11/c/b263a3bfe13fcdd19ecbe1637577ded7df2e20c2?branch=rawhide
Log:
Use the cmake declarative buildsystem
---
diff --git a/cli11.spec b/cli11.spec
index 1e71179..260ce64 100644
--- a/cli11.spec
+++ b/cli11.spec
@@ -1,5 +1,8 @@
# TODO: Package the C++20 module
+# Whether to run tests
+%bcond ctest 1
+
# There are no ELF objects in this package, so turn off debuginfo generation.
%global debug_package %{nil}
@@ -12,12 +15,18 @@ Release: %autorelease
Summary: Command line parser for C++11
License: BSD-3-Clause
+# MIT: tests/module_test/{cmodule.ixx,LICENSE,module_include_test.cpp}
+SourceLicense: %{license} AND MIT
URL: https://github.com/CLIUtils/CLI11
VCS: git:%{url}.git
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+BuildSystem: cmake
+BuildOption(conf): -DCLI11_BUILD_DOCS:BOOL=TRUE
+BuildOption(conf): -DCLI11_BUILD_TESTS:BOOL=TRUE
+BuildOption(conf): -DCMAKE_CXX_STANDARD=20
+
BuildRequires: boost-devel
-BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: make
@@ -54,29 +63,18 @@ Documentation for CLI11.
%prep
%autosetup -p1 -n CLI11-%{version}
-%conf
# Alter the icon path in README.md for the installed paths
sed -i.orig 's,\./docs,.,' README.md
touch -r README.md.orig README.md
rm README.md.orig
-%build
+%conf -p
CXXFLAGS='%{build_cxxflags} -DCLI11_OPTIONAL -DCLI11_STD_OPTIONAL=1'
-%cmake \
- -DCLI11_BUILD_DOCS:BOOL=TRUE \
- -DCLI11_BUILD_TESTS:BOOL=TRUE \
- -DCMAKE_CXX_STANDARD=20
-%cmake_build
+%build -a
# Build the documentation
%cmake_build --target docs
-%install
-%cmake_install
-
-%check
-%ctest
-
%files devel
%doc CHANGELOG.md README.md docs/CLI11_300.png
%license LICENSE
reply other threads:[~2026-07-13 15:37 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=178395703241.1.4945203259749518618.rpms-cli11-b263a3bfe13f@fedoraproject.org \
--to=loganjerry@gmail.com \
--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