104eec9
Name:		perl-Regexp-Trie
104eec9
Version:	0.02
a4ef0bb
Release:	4%{?dist}
104eec9
Summary:	Build trie-ized regexp
104eec9
License:	GPL+ or Artistic
104eec9
URL:		https://metacpan.org/release/Regexp-Trie
104eec9
Source0:	https://cpan.metacpan.org/modules/by-module/Regexp/Regexp-Trie-%{version}.tar.gz
104eec9
Patch0:		Regexp-Trie-0.02-test.patch
104eec9
BuildArch:	noarch
104eec9
# Module Build
104eec9
BuildRequires:	coreutils
104eec9
BuildRequires:	findutils
104eec9
BuildRequires:	make
104eec9
BuildRequires:	perl-generators
104eec9
BuildRequires:	perl-interpreter
104eec9
BuildRequires:	perl(ExtUtils::MakeMaker)
104eec9
# Module Runtime
104eec9
BuildRequires:	perl(strict)
104eec9
BuildRequires:	perl(warnings)
104eec9
# Test Suite
104eec9
BuildRequires:	perl(Test::More)
104eec9
BuildRequires:	perl(Time::HiRes)
104eec9
%if 0%{?fedora} < 18 && 0%{?rhel} < 7
104eec9
BuildRequires:	procps
104eec9
%else
104eec9
BuildRequires:	procps-ng
104eec9
%endif
104eec9
BuildRequires:	words
104eec9
# Dependencies
104eec9
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
104eec9
104eec9
%description
104eec9
This module is a faster but simpler version of Regexp::Assemble or
104eec9
Regexp::Optimizer. It builds a trie-ized regexp as above. This module is
104eec9
faster than Regexp::Assemble but you can only add literals:
104eec9
a+b is treated as a\+b, not "more than one a's followed by b".
104eec9
104eec9
%prep
104eec9
%setup -q -n Regexp-Trie-%{version}
104eec9
104eec9
# Fix issues in t/01-dict.t
104eec9
%patch0
104eec9
104eec9
%build
104eec9
perl Makefile.PL INSTALLDIRS=vendor
104eec9
make %{?_smp_mflags}
104eec9
104eec9
%install
104eec9
make pure_install DESTDIR=%{buildroot}
104eec9
find %{buildroot} -type f -name .packlist -delete
104eec9
%{_fixperms} -c %{buildroot}
104eec9
104eec9
%check
104eec9
make test
104eec9
prove --lib %{buildroot}%{perl_vendorlib} t/01-dict.t :: /usr/share/dict/words
104eec9
104eec9
%files
104eec9
%doc Changes README
104eec9
%{perl_vendorlib}/Regexp/
104eec9
%{_mandir}/man3/Regexp::Trie.3*
104eec9
104eec9
%changelog
a4ef0bb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.02-4
a4ef0bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a4ef0bb
139949a
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.02-3
139949a
- Perl 5.30 rebuild
139949a
104eec9
* Tue Feb  5 2019 Paul Howarth <paul@city-fan.org> - 0.02-2
104eec9
- Improve test coverage by running t/01-dict.t (long test) as well
104eec9
104eec9
* Sun Feb  3 2019 Paul Howarth <paul@city-fan.org> - 0.02-1
104eec9
- Initial RPM version