public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cli11] rawhide: Use the cmake declarative buildsystem
@ 2026-07-13 15:37 Jerry James
  0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-07-13 15:37 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-13 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-13 15:37 [rpms/cli11] rawhide: Use the cmake declarative buildsystem Jerry James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox