# This file is licensed under the terms of GNU GPLv2+ Name: perl-smartmatch Version: 0.05 Release: 33%{?dist} Summary: Pluggable smart matching back-ends License: GPL+ or Artistic URL: https://metacpan.org/release/smartmatch Source0: https://cpan.metacpan.org/authors/id/D/DO/DOY/smartmatch-%{version}-TRIAL.tar.gz # Restore compatibility with Perl 5.26.0, # Patch0: smartmatch-0.05-TRIAL-Fix-building-on-Perl-5.25.1.patch BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(B::Hooks::OP::Check) >= 0.14 BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(DynaLoader) BuildRequires: perl(Module::Runtime) BuildRequires: perl(Package::Stash) BuildRequires: perl(parent) # Tests: BuildRequires: perl(File::Find) BuildRequires: perl(File::Temp) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) >= 0.88 # Optional tests: BuildRequires: perl(Test::Script) >= 1.05 %{?perl_default_filter} %description This module allows you to override the behavior of the smart match operator ("~~"). "use smartmatch $matcher" hooks into the compiler to replace the smartmatch opcode with a call to a custom subroutine, specified either as a coderef or as a string, which will have "smartmatch::engine::" prepended to it and used as the name of a package in which to find a subroutine named "match". The subroutine will be called with two arguments, the values on the left and right sides of the smart match operator, and should return the result. %prep %setup -q -n smartmatch-%{version} %patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" %{make_build} %install %{make_install} find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %license LICENSE %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/smartmatch* %{_mandir}/man3/* %changelog * Mon Jan 29 2024 Fedora Release Engineering - 0.05-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.05-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.05-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.05-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.05-29 - Perl 5.38 rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.05-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.05-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.05-26 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.05-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.05-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.05-23 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.05-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.05-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.05-20 - Perl 5.32 rebuild * Mon Feb 10 2020 Petr Pisar - 0.05-19 - Modernize a spec file * Thu Jan 30 2020 Fedora Release Engineering - 0.05-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.05-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.05-16 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.05-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.05-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 0.05-13 - Perl 5.28 rebuild * Wed Mar 07 2018 Petr Pisar - 0.05-12 - Modernize spec file * Fri Feb 09 2018 Fedora Release Engineering - 0.05-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.05-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.05-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 0.05-8 - Perl 5.26 rebuild * Thu May 18 2017 Petr Pisar - 0.05-7 - Restore compatibility with Perl 5.26.0 * Sat Feb 11 2017 Fedora Release Engineering - 0.05-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.05-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.05-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.05-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 0.05-2 - Perl 5.22 rebuild * Mon Dec 08 2014 Petr Pisar - 0.05-1 - 0.05-TRIAL bump * Fri Aug 29 2014 Jitka Plesnikova - 0.04-9 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.04-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.04-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.04-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 29 2013 Petr Pisar - 0.04-5 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.04-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.04-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jul 09 2012 Petr Pisar - 0.04-2 - Perl 5.16 rebuild * Mon Jul 09 2012 Petr Pisar - 0.04-1 - 0.04 bump * Wed Jun 13 2012 Petr Pisar - 0.03-3 - Perl 5.16 rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jul 11 2011 Petr Pisar 0.03-1 - Initial version