Name: perl-re-engine-RE2 Summary: RE2 regex engine Version: 0.14 Release: 7%{?dist} # lib/re/engine/RE2.pm: GPL+ or Artistic # ppport.h: GPL+ or Artistic # README: GPL+ or Artistic ## unbundled # re2/LICENSE: BSD # re2/README: BSD # re2/util/rune.cc: MIT # re2/util/sparse_array.h: BSD # re2/util/strutil.cc: BSD # re2/util/utf.h: MIT # re2/util/valgrind.h: BSD License: GPL+ or Artistic URL: https://metacpan.org/release/re-engine-RE2 Source0: https://cpan.metacpan.org/authors/id/D/DG/DGL/re-engine-RE2-%{version}.tar.gz # Discussion started with upstream at # Patch0: re-engine-RE2-0.14-Unbundle-re2.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.12 BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::CppGuess) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: re2-devel # Run-time: BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(utf8) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} # Remove under-speciefied dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::More\\)$ %description This module replaces perl's regex engine in a given lexical scope with RE2. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Test::More) >= 0.88 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n re-engine-RE2-%{version} # Removed bundled RE2 %patch0 -p1 rm -fr re2 # Remove incorrect executable bits chmod -x lib/re/engine/RE2.pm # 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#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}" %{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 . -r -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}') make test %files %doc Changes README TODO %{perl_vendorarch}/auto/* %{perl_vendorarch}/re* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 0.14-6 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.14-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 08 2022 Miro HronĨok - 0.14-4 - Rebuilt for libre2.so.9 * Fri Jul 23 2021 Fedora Release Engineering - 0.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.14-2 - Perl 5.34 rebuild * Fri Mar 12 2021 Petr Pisar - 0.14-1 - 0.14 bump - Package tests * Fri Mar 12 2021 Petr Pisar - 0.13-26 - Modernize a spec file * Wed Jan 27 2021 Fedora Release Engineering - 0.13-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.13-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.13-23 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.13-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Aug 14 2019 Rex Dieter - 0.13-21 - rebuild (re2) * Thu Aug 08 2019 Denis Arnaud - 0.13-20 - Rebuilt for new RE2 version (BZ#1672014) * Fri Jul 26 2019 Fedora Release Engineering - 0.13-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.13-18 - Perl 5.30 rebuild * Thu May 16 2019 Jitka Plesnikova - 0.13-17 - Fix 01.basic.t for v5.29.9 Variable length lookbehind support * Sat Feb 02 2019 Fedora Release Engineering - 0.13-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.13-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.13-14 - Perl 5.28 rebuild * Tue Mar 13 2018 Emmanuel Seyman - 0.13-13 - Add missing build-requirements * Fri Feb 09 2018 Fedora Release Engineering - 0.13-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.13-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.13-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.13-9 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.13-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.13-7 - Perl 5.24 rebuild * Fri Apr 29 2016 Jitka Plesnikova - 0.13-6 - Do not use global $_ in "my" (CPAN RT#108357) * Thu Feb 04 2016 Fedora Release Engineering - 0.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 0.13-3 - Perl 5.22 rebuild * Wed Apr 15 2015 Petr Pisar - 0.13-2 - Rebuild owing to C++ ABI change in GCC-5 (bug #1195351) * Sun Jan 25 2015 Emmanuel Seyman - 0.13-1 - Update to 0.13 * Sun Jan 18 2015 Emmanuel Seyman - 0.12-1 - Update to 0.12 - Drop upstreamed patches * Thu Aug 28 2014 Jitka Plesnikova - 0.11-9 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Aug 01 2014 Jitka Plesnikova - 0.11-8 - Fix for Perl 5.20 (RT#95144) * Mon Jun 09 2014 Mathieu Bridon - 0.11-7 - Fix the build with -Werror=format-security. * Sat Jun 07 2014 Fedora Release Engineering - 0.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 24 2013 Petr Pisar - 0.11-4 - Perl 5.18 rebuild * Wed Mar 06 2013 Mathieu Bridon - 0.11-3 - Petr is right, the patch does look much more readable this way. * Thu Feb 21 2013 Mathieu Bridon - 0.11-2 - Remove incorrect executable bits. - Add a missing build requirement. * Wed Feb 20 2013 Mathieu Bridon - 0.11-1 - Initial package, with help from cpanspec.