Name: perl-re-engine-PCRE Version: 0.17 Release: 39%{?dist} Summary: Perl-compatible regular expression engine License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/re-engine-PCRE Source0: https://cpan.metacpan.org/authors/id/A/AV/AVAR/re-engine-PCRE-%{version}.tar.gz # Do not use global $_ in "my" (CPAN RT#108386) Patch0: re-engine-PCRE-0.17-Do-not-use-global-in-my.patch # Fix 1-basic.t for v5.29.9 Variable length lookbehind support (CPAN RT#129403) # Backported from re-engine-PCRE2 version 0.15 Patch1: re-engine-PCRE-0.17-Fix-1-basic.t-for-v5.29.9-Variable-length.patch # Fix building with GCC 14, bug #2259168, posted to the upstream, # Patch2: re-engine-PCRE-0.17-Fix-prototypes-of-struct-regexp_engine-members.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc # glibc-common for iconv BuildRequires: glibc-common BuildRequires: make BuildRequires: pcre-devel BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.10 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: # Regexp is not used BuildRequires: perl(XSLoader) # Tests: # Data::Dumper not used BuildRequires: perl(Test::More) %{?perl_default_filter} %description This allows to replace perl's regular expression engine in a given lexical scope with PCRE regular expressions provided by pcre library. %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 %autosetup -p1 -n re-engine-PCRE-%{version} # Remove always skipped tests for F in t/perl/pat.t t/perl/regexp.t t/release-pod-syntax.t; do rm "$F" perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST done for F in README; do iconv -f ISO-8859-1 -t UTF-8 < "$F" > "${F}.utf8" touch -r "$F" "${F}.utf8" mv "${F}.utf8" "$F" done find -type f -exec chmod -x {} + %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} 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 export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') # t/split.t and t/s.t randomly fail, CPAN RT#124336. make test %files %license LICENSE %doc Changes README %dir %{perl_vendorarch}/auto/re %dir %{perl_vendorarch}/auto/re/engine %{perl_vendorarch}/auto/re/engine/PCRE %dir %{perl_vendorarch}/re %dir %{perl_vendorarch}/re/engine %{perl_vendorarch}/re/engine/PCRE.pm %{_mandir}/man3/re::engine::PCRE.* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Petr Pisar - 0.17-39 - Fix building with GCC 14 (bug #2259168) * Sun Jan 21 2024 Fedora Release Engineering - 0.17-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Nov 10 2023 Petr Pisar - 0.17-37 - Convert a license tag to an SPDX format - Package the tests * Fri Jul 21 2023 Fedora Release Engineering - 0.17-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.17-35 - Perl 5.38 rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.17-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.17-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.17-32 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.17-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.17-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.17-29 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.17-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.17-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.17-26 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.17-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.17-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.17-23 - Perl 5.30 rebuild * Tue May 14 2019 Jitka Plesnikova - 0.17-22 - Fixed 1-basic.t for v5.29.9 Variable length lookbehind support * Sat Feb 02 2019 Fedora Release Engineering - 0.17-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.17-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 0.17-19 - Perl 5.28 rebuild * Wed Mar 07 2018 Petr Pisar - 0.17-18 - Modernize spec file * Fri Feb 09 2018 Fedora Release Engineering - 0.17-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.17-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.17-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.17-14 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.17-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.17-12 - Perl 5.24 rebuild * Fri Apr 29 2016 Jitka Plesnikova - 0.17-11 - Do not use global $_ in "my" (CPAN RT#108386) * Thu Feb 04 2016 Fedora Release Engineering - 0.17-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.17-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 0.17-8 - Perl 5.22 rebuild * Tue Aug 26 2014 Jitka Plesnikova - 0.17-7 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.17-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.17-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.17-3 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jan 15 2013 Petr Pisar 0.17-1 - Specfile autogenerated by cpanspec 1.78.