# Detect the distribution in use %global __despace head -n 1 | tr -d '[:space:]' | sed -e 's/[(].*[)]//g' %global __lower4 cut -c 1-4 | tr '[:upper:]' '[:lower:]' %global __distfile %([ -f /etc/SuSE-release ] && echo /etc/SuSE-release || echo /etc/redhat-release) %global __distinit %(sed -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' %{__distfile} | %{__despace} | %{__lower4}) %global __distvers %(sed -e 's/.* release \\([^. ]*\\).*/\\1/' %{__distfile} | %{__despace}) # Identify Alma, CentOS, CentOS Stream and Rocky Linux as rhel %if "%{__distinit}" == "a" || "%{__distinit}" == "c" || "%{__distinit}" == "cl" || "%{__distinit}" == "cs" || "%{__distinit}" == "rl" %global __distinit rhel %endif # Dist tag for Fedora is still "fc" %if "%{__distinit}" == "f" %global __distinit fc %endif Name: perl-Devel-LexAlias Version: 0.05 Release: 37.%{__distinit}%{__distvers} Summary: Alias lexical variables License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Devel-LexAlias Source0: https://cpan.metacpan.org/modules/by-module/Devel/Devel-LexAlias-%{version}.tar.gz # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) # Module Runtime BuildRequires: perl(Devel::Caller) >= 0.03 BuildRequires: perl(DynaLoader) # Test Suite BuildRequires: perl(Test::More) # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif # Don't provide private perl objects %{?perl_default_filter} %description Devel::LexAlias provides the ability to alias a lexical variable in a subroutine's scope to one of your choosing. %prep %setup -q -n Devel-LexAlias-%{version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes %{perl_vendorarch}/auto/Devel/ %{perl_vendorarch}/Devel/ %{_mandir}/man3/Devel::LexAlias.3* %changelog * Thu Jun 13 2024 Paul Howarth - 0.05-37 - Perl 5.40 rebuild * Wed Jul 12 2023 Paul Howarth - 0.05-33 - Perl 5.38 rebuild * Mon Mar 13 2023 Paul Howarth - 0.05-32 - Use SPDX-format license tag * Wed Jun 1 2022 Paul Howarth - 0.05-29 - Perl 5.36 rebuild * Sun Dec 12 2021 Paul Howarth - 0.05-27 - Fix dist tags * Sat May 22 2021 Paul Howarth - 0.05-26 - Perl 5.34 rebuild * Fri Jun 26 2020 Paul Howarth - 0.05-23 - Perl 5.32 rebuild * Sat Jun 1 2019 Paul Howarth - 0.05-20 - Perl 5.30 rebuild * Thu Jun 28 2018 Paul Howarth - 0.05-17 - Perl 5.28 rebuild * Mon Aug 7 2017 Paul Howarth - 0.05-15 - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl * Sun Jun 4 2017 Paul Howarth - 0.05-13 - Drop support for EOL distributions prior to F-13 - Drop BuildRoot: and Group: tags - Drop explicit buildroot cleaning in %%install section - Drop explicit %%clean section - BR: perl-devel unconditionally * Thu Aug 18 2016 Paul Howarth - 0.05-11 - Classify buildreqs by usage - Simplify find commands using -empty and -delete * Fri Aug 29 2014 Paul Howarth - 0.05-6 - Drop %%defattr, redundant since rpm 4.4 * Wed Jul 31 2013 Paul Howarth - 0.05-3 - Import from Fedora * Sun Jul 21 2013 Petr Pisar - 0.05-2 - Perl 5.18 rebuild * Sun Feb 03 2013 Iain Arnell - 0.05-1 - Update to latest upstream version - Clean up spec for modern rpmbuild - Use perl_default_filter * Fri Jul 20 2012 Fedora Release Engineering - 0.04-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 12 2012 Petr Pisar - 0.04-13 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.04-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Jun 23 2011 Marcela Mašláňová - 0.04-11 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.04-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 16 2010 Marcela Maslanova - 0.04-9 - Rebuild to fix problems with vendorarch/lib (#661697) * Fri Apr 30 2010 Marcela Maslanova - 0.04-8 - Mass rebuild with perl-5.12.0 * Fri Apr 30 2010 Marcela Maslanova - 0.04-7 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 0.04-6 - Rebuild against perl 5.10.1 * Sat Jul 25 2009 Fedora Release Engineering - 0.04-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Mar 26 2009 Chris Weyl - 0.04-4 - Stripping bad provides of private Perl extension libs * Thu Feb 26 2009 Fedora Release Engineering - 0.04-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Mar 18 2008 Chris Weyl - 0.04-2 - Bump * Mon Mar 17 2008 Chris Weyl - 0.04-1 - Specfile autogenerated by cpanspec 1.74