public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Exporter-Tiny] rawhide: Add a build conditional to use Lexical::Var on Perl older than 5.37.2, default off
@ 2026-11-05 10:33 Sai Harsha Suryadevara
0 siblings, 0 replies; only message in thread
From: Sai Harsha Suryadevara @ 2026-11-05 10:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Exporter-Tiny
Branch : rawhide
Commit : 24987b6fcc9165d652f634544571173c7803acad
Author : Sai Harsha Suryadevara <ssuryad@amazon.com>
Date : 2026-11-02T01:02:25+00:00
Stats : +15/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Exporter-Tiny/c/24987b6fcc9165d652f634544571173c7803acad?branch=rawhide
Log:
Add a build conditional to use Lexical::Var on Perl older than 5.37.2, default off
---
diff --git a/perl-Exporter-Tiny.spec b/perl-Exporter-Tiny.spec
index 92a6c5e..c3c26c6 100644
--- a/perl-Exporter-Tiny.spec
+++ b/perl-Exporter-Tiny.spec
@@ -1,6 +1,10 @@
+# The -lexical export option uses core lexical subs, Perl 5.37.2 or newer.
+# On an older Perl the CPAN module Lexical::Var provides the same feature.
+%bcond lexical_var 0
+
Name: perl-Exporter-Tiny
Version: 1.006003
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: An exporter with the features of Sub::Exporter but only core dependencies
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://exportertiny.github.io/
@@ -11,8 +15,12 @@ BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
+%if %{with lexical_var}
+BuildRequires: perl(Lexical::Var)
+%else
# If we don't have at least 5.37.2 then we'll need Lexical::Var
BuildRequires: perl(:VERSION) >= 5.37.2
+%endif
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: sed
# Module Runtime
@@ -27,6 +35,9 @@ BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Warnings)
# Dependencies
+%if %{with lexical_var}
+Requires: perl(Lexical::Var)
+%endif
Requires: perl(Carp)
# Avoid doc-file dependency on perl(base)
@@ -77,6 +88,9 @@ make test
%{_mandir}/man3/Exporter::Shiny.3*
%changelog
+* Sun Nov 01 2026 Sai Harsha Suryadevara <ssuryad@amazon.com> - 1.006003-4
+- Add a build conditional to use Lexical::Var for the -lexical export option on Perl older than 5.37.2, default off
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.006003-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-05 10:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 10:33 [rpms/perl-Exporter-Tiny] rawhide: Add a build conditional to use Lexical::Var on Perl older than 5.37.2, default off Sai Harsha Suryadevara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox