public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lexertl17] f44: Use the cmake declarative buildsystem
@ 2026-06-19 12:33 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-19 12:33 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-19 12:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-19 12:33 [rpms/lexertl17] 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