# Run optional tests %bcond_without perl_Lexical_Var_enables_optional_test Name: perl-Lexical-Var Version: 0.010 Release: 5%{?dist} Summary: Static variables without name space pollution License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Lexical-Var Source0: https://cpan.metacpan.org/modules/by-module/Lexical/Lexical-Var-%{version}.tar.gz # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::CBuilder) >= 0.15 BuildRequires: perl(Module::Build) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-Time BuildRequires: perl(Lexical::SealRequireHints) >= 0.012 BuildRequires: perl(XSLoader) # Tests BuildRequires: perl(Test::More) # Optional Tests BuildRequires: perl(Thread::Semaphore) BuildRequires: perl(threads) BuildRequires: perl(threads::shared) %if %{with perl_Lexical_Var_enables_optional_test} BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) %endif # Dependencies Conflicts: perl(B::Hooks::OP::Check) < 0.19 %{?perl_default_filter} # Filter modules bundled for tests %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(t::code.*\\) %description This module implements lexical scoping of static variables and subroutines. Although it can be used directly, it is mainly intended to be infrastructure for modules that manage name spaces. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Lexical-Var-%{version} # Help generators to recognize Perl scripts for F in `find t -name *.t`; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" ./Build %install ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete %{_fixperms} -c $RPM_BUILD_ROOT # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} rm %{buildroot}%{_libexecdir}/%{name}/t/pod_*.t cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check ./Build test %files %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Lexical* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 0.010-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.010-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.010-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.010-2 - Perl 5.38 rebuild * Fri Mar 24 2023 Jitka Plesnikova - 0.010-1 - 0.010 bump - Package tests * Fri Jan 20 2023 Fedora Release Engineering - 0.009-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.009-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 0.009-29 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.009-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.009-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.009-26 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.009-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.009-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.009-23 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.009-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.009-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.009-20 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.009-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.009-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.009-17 - Perl 5.28 rebuild * Thu Mar 1 2018 Paul Howarth - 0.009-16 - Arch-specific package using Module::Build needs to use ExtUtils::CBuilder (https://bugzilla.redhat.com/show_bug.cgi?id=1547165#c7) - Drop explicit gcc build-require as EU::CB is effectively our compiler here - Add build-require coreutils for %%{_fixperms} - Simplify find command using -empty * Mon Feb 19 2018 Jitka Plesnikova - 0.009-15 - Add build-require gcc * Thu Feb 08 2018 Fedora Release Engineering - 0.009-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.009-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.009-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 0.009-11 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.009-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.009-9 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.009-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.009-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 0.009-6 - Perl 5.22 rebuild * Mon May 11 2015 Jitka Plesnikova - 0.009-5 - Fix CPAN RT#101058 * Thu Aug 28 2014 Jitka Plesnikova - 0.009-4 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.009-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.009-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Aug 27 2013 Jitka Plesnikova - 0.009-1 - 0.009 bump * Mon Aug 19 2013 Jitka Plesnikova - 0.008-1 - 0.008 bump - Modernize spec * Sat Aug 03 2013 Fedora Release Engineering - 0.007-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jul 21 2013 Petr Pisar - 0.007-5 - Perl 5.18 rebuild - Perl 5.18 compatibility (CPAN RT#80309) * Thu Feb 14 2013 Fedora Release Engineering - 0.007-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.007-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jun 13 2012 Petr Pisar - 0.007-2 - Perl 5.16 rebuild * Tue May 22 2012 Jitka Plesnikova 0.007-1 - Specfile autogenerated by cpanspec 1.78.