public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/parsertl17] f44: Use the cmake declarative buildsystem
@ 2026-11-08 21:16 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-08 21:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/parsertl17
Branch : f44
Commit : 8d53c9f19d3caffc4849229f20eb70ea0a070858
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-05-18T21:04:36+01:00
Stats : +10/-20 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/parsertl17/c/8d53c9f19d3caffc4849229f20eb70ea0a070858?branch=f44
Log:
Use the cmake declarative buildsystem
---
diff --git a/parsertl17.spec b/parsertl17.spec
index 49476df..4346008 100644
--- a/parsertl17.spec
+++ b/parsertl17.spec
@@ -1,3 +1,8 @@
+# While the top-level CMakeLists.txt supports a BUILD_TESTING option, there are
+# not yet any tests that can be built or run via CMake, and enabling it causes
+# a build failure.
+%bcond ctest 0
+
Name: parsertl17
Summary: The Modular Parser Generator
# Upstream switched away from calendar-based versioning, and the new version
@@ -10,6 +15,9 @@ License: BSL-1.0
URL: https://github.com/BenHanson/parsertl17
Source: %{url}/archive/%{version}/parsertl17-%{version}.tar.gz
+BuildSystem: cmake
+BuildOption(conf): -DBUILD_TESTING:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
+
%if %{undefined fc43}
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -23,7 +31,6 @@ ExcludeArch: %{ix86}
%global min_lexertl17 1:1.1.3
BuildRequires: gcc-c++
-BuildRequires: cmake
BuildRequires: dos2unix
# Header-only library:
@@ -49,9 +56,7 @@ Requires: lexertl17-devel >= %{min_lexertl17}
%description devel %{common_description}
-%prep
-%autosetup -n parsertl17-%{version}
-
+%prep -a
# Fix line terminations (particularly for files that may be installed)
find . -type f -exec file '{}' '+' |
grep --extended-regexp '\bCRLF\b' |
@@ -59,22 +64,7 @@ find . -type f -exec file '{}' '+' |
xargs --no-run-if-empty dos2unix --keepdate
-%conf
-# While the top-level CMakeLists.txt supports a BUILD_TESTING option, there are
-# not yet any tests that can be built or run via CMake.
-%cmake
-
-
-%build
-%cmake_build
-
-
-%install
-%cmake_install
-
-
-%check
-%ctest
+%check -a
# There are not yet any tests that can be built or run via CMake. This is a
# compile-only “smoke test.”
%set_build_flags
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-08 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 21:16 [rpms/parsertl17] f44: Use the cmake declarative buildsystem Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox