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/lexertl17] f44: Use the cmake declarative buildsystem
Date: Fri, 19 Jun 2026 12:33:57 GMT	[thread overview]
Message-ID: <178187243758.1.18345847695322837798.rpms-lexertl17-d9815d5b3bc4@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/lexertl17
Branch : f44
Commit : d9815d5b3bc409574afa5fb26ab40c167d7e81dc
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-17T20:26:14+01:00
Stats  : +13/-22 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/lexertl17/c/d9815d5b3bc409574afa5fb26ab40c167d7e81dc?branch=f44

Log:
Use the cmake declarative buildsystem

---
diff --git a/lexertl17.spec b/lexertl17.spec
index 3c1af6b..ad99a4d 100644
--- a/lexertl17.spec
+++ b/lexertl17.spec
@@ -1,3 +1,5 @@
+%bcond ctest 1
+
 Name:           lexertl17
 Summary:        The Modular Lexical Analyser Generator
 # Upstream switched away from calendar-based versioning, and the new version
@@ -17,18 +19,23 @@ License:        BSL-1.0 AND Unicode-3.0
 URL:            https://github.com/BenHanson/lexertl17
 Source:         %{url}/archive/%{version}/lexertl17-%{version}.tar.gz
 
+BuildSystem:    cmake
+BuildOption(conf): %{shrink:
+    -DBUILD_TESTING:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
+    -DBUILD_EXAMPLES:BOOL=ON
+    }
+
 %if %{undefined fc43}
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 ExcludeArch:    %{ix86}
 %endif
 
-# No compiled binaries are installed, so this would be empty.
-%global debug_package %{nil}
-
 BuildRequires:  gcc-c++
-BuildRequires:  cmake
 BuildRequires:  dos2unix
 
+# No compiled binaries are installed, so this would be empty.
+%global debug_package %{nil}
+
 %global common_description %{expand:
 lexertl is a header-only library for writing lexical analyzers. With lexertl
 you can:
@@ -52,9 +59,7 @@ Conflicts:      lexertl14-devel
 %description devel %{common_description}
 
 
-%prep
-%autosetup -n lexertl17-%{version} -p1
-
+%prep -a
 # Fix line terminations (particularly for files that may be installed)
 find . -type f -exec file '{}' '+' |
   grep -E '\bCRLF\b' |
@@ -62,13 +67,7 @@ find . -type f -exec file '{}' '+' |
   xargs -r dos2unix --keepdate
 
 
-%conf
-%cmake -DBUILD_TESTING:BOOL=ON -DBUILD_EXAMPLES:BOOL=ON
-
-
-%build
-%cmake_build
-
+%build -a
 # Make a copy of the examples directory without CMakeLists.txt files, which are
 # not useful without the top-level CMakeLists.txt for the project.
 mkdir _cleaned
@@ -76,14 +75,6 @@ cp -rvp examples _cleaned
 find _cleaned/examples -type f -name CMakeLists.txt -print -delete
 
 
-%install
-%cmake_install
-
-
-%check
-%ctest
-
-
 %files devel
 %license include/lexertl/licence_1_0.txt
 %doc README.md

                 reply	other threads:[~2026-06-19 12:33 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=178187243758.1.18345847695322837798.rpms-lexertl17-d9815d5b3bc4@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