public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sai Harsha Suryadevara <ssuryad@amazon.com>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Exporter-Tiny] rawhide: Add a build conditional to use Lexical::Var on Perl older than 5.37.2, default off
Date: Thu, 05 Nov 2026 10:33:31 GMT [thread overview]
Message-ID: <179387481157.1.452493141765556886.rpms-perl-Exporter-Tiny-24987b6fcc91@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-05 10: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=179387481157.1.452493141765556886.rpms-perl-Exporter-Tiny-24987b6fcc91@fedoraproject.org \
--to=ssuryad@amazon.com \
--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