public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Alien-Build] f43: Remove CMake plugin if CMake has version 4
@ 2026-09-15 8:46
0 siblings, 0 replies; only message in thread
From: @ 2026-09-15 8:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Alien-Build
Branch : f43
Commit : d45b93b801aa59a89010ba1fadbc4f1fb68e8f01
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-09-15T10:40:33+02:00
Stats : +22/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Alien-Build/c/d45b93b801aa59a89010ba1fadbc4f1fb68e8f01?branch=f43
Log:
Remove CMake plugin if CMake has version 4
---
diff --git a/perl-Alien-Build.spec b/perl-Alien-Build.spec
index a8e930e..9010a41 100644
--- a/perl-Alien-Build.spec
+++ b/perl-Alien-Build.spec
@@ -1,5 +1,12 @@
# Run optional test
%{bcond_without perl_Alien_Build_enables_optional_test}
+# Support Alien::cmake3, this works only with cmake < 4,
+# <https://github.com/PerlAlien/Alien-Build/issues/432>.
+%if 0%{?fedora} < 44
+%{bcond_without perl_Alien_Build_enables_cmake}
+%else
+%{bcond_with perl_Alien_Build_enables_cmake}
+%endif
# Exhibit FFI::Platypus in Test::Alien
%if !%{defined perl_bootstrap}
# Build cycle: perl-FFI-Platypus → perl-Alien-Build
@@ -8,7 +15,7 @@
Name: perl-Alien-Build
Version: 2.84
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Build external dependencies for use in CPAN
# lib/Alien/Build/Plugin/Test/Mock.pm contains Base64-encoded files for tests
# (a bash script, C source file, a gzipped tar archive, Mach-O 64-bit x86_64
@@ -41,7 +48,7 @@ BuildRequires: perl(File::Which) >= 1.10
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
-%if !%{defined perl_bootstrap}
+%if %{with perl_Alien_Build_enables_cmake} && !%{defined perl_bootstrap}
# t/alien_build_plugin_build_cmake.t executes gcc via cmake (bug #923024)
# Build cycle: perl-Alien-cmake3 → perl-Alien-Build
BuildRequires: perl(Alien::cmake3) >= 0.02
@@ -142,7 +149,7 @@ Requires: make
# A subset of Alien-Build modules is packaged in perl-Alien-Base to minimize
# dependencies.
Requires: perl-Alien-Base = %{?epoch:%{epoch}:}%{version}-%{release}
-%if !%{defined perl_bootstrap}
+%if %{with perl_Alien_Build_enables_cmake} && !%{defined perl_bootstrap}
# Build cycle: perl-Alien-cmake3 → perl-Alien-Build
Requires: perl(Alien::cmake3) >= 0.02
%endif
@@ -301,11 +308,20 @@ rm t/alien_build_plugin_pkgconfig_{commandline,makestatic,pp}.t
%patch -p1 -P 1
rm lib/Alien/Build/Plugin/Digest/SHAPP.pm
rm t/alien_build_plugin_digest_shapp.t
+%if !%{with perl_Alien_Build_enables_cmake} && !%{defined perl_bootstrap}
+ # Remove CMake support
+ rm lib/Alien/Build/Plugin/Build/CMake.pm
+ perl -i -ne 'print $_ unless m{\b\Qlib/Alien/Build/Plugin/Build/CMake.pm\E\b}' Makefile.PL MANIFEST
+ perl -i -ne 'print $_ unless m{\b\QAlien::Build::Plugin::Build::CMake\E\b}' t/01_use.t
+%endif
# Remove unused tests
for F in \
t/alien_build_plugin_probe_vcpkg.t \
t/bin/ftpd \
t/bin/httpd \
+%if !%{with perl_Alien_Build_enables_cmake} || %{defined perl_bootstrap}
+ t/alien_build_plugin_build_cmake.t \
+%endif
%if !%{with perl_Alien_Build_enables_optional_test} || %{defined perl_bootstrap}
t/alien_base__system_installed.t \
%endif
@@ -444,6 +460,9 @@ make test
%{_libexecdir}/%{name}
%changelog
+* Thu Feb 19 2026 Petr Pisar <ppisar@redhat.com> - 2.84-4
+- Remove CMake plugin if CMake has version 4 (bug #2440944)
+
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.84-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-15 8:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 8:46 [rpms/perl-Alien-Build] f43: Remove CMake plugin if CMake has version 4
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox