public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/parsertl17] f44: Use the cmake declarative buildsystem
Date: Sun, 08 Nov 2026 21:16:25 GMT	[thread overview]
Message-ID: <179417258502.1.6776144415423851118.rpms-parsertl17-8d53c9f19d3c@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-08 21:16 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=179417258502.1.6776144415423851118.rpms-parsertl17-8d53c9f19d3c@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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