Skip to content

Commit 25cddf0

Browse files
committed
make-srpm.sh: update cmake macros and deps for cmake4
It seems that %cmake4 macros are no long provided in rawhide, nor is there a `Provides: cmake4`. https://fedoraproject.org/wiki/Changes/CMake4.0
1 parent 41af877 commit 25cddf0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

make-srpm.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ fi
7878
cat > "$SPEC" << EOF
7979
# disable in source builds on EPEL <9
8080
%undefine __cmake_in_source_build
81-
%undefine __cmake3_in_source_build
8281
8382
Name: $PKG
8483
Version: $VER
@@ -89,7 +88,7 @@ License: GPL-3.0-or-later
8988
URL: https://github.com/csutils/%{name}
9089
Source0: https://github.com/csutils/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
9190
92-
BuildRequires: cmake3
91+
BuildRequires: cmake
9392
BuildRequires: help2man
9493
9594
%if 0%{?rhel} == 7
@@ -282,13 +281,13 @@ This package contains the unicontrol plug-in for csmock.
282281
%autosetup
283282
284283
%build
285-
%cmake3 \\
284+
%cmake \\
286285
-DVERSION='%{name}-%{version}-%{release}' \\
287286
-DPython3_EXECUTABLE='%{__python3}'
288-
%cmake3_build
287+
%cmake_build
289288
290289
%install
291-
%cmake3_install
290+
%cmake_install
292291
293292
# needed to create the csmock RPM
294293
%files

0 commit comments

Comments
 (0)