This module is intended to test your regular expressions. Given a subject string and a regular expression (a.k.a. pattern), the module not only tests whether the regular expression completely matches the subject string, it performs a utf8::upgrade or utf8::downgrade on the subject string and performs the tests again, if necessary. Furthermore, given a pattern with capturing parenthesis, it checks whether all captures are present, and in the right order. Both named and unnamed captures are checked.epel9
parent
f2d0ac27b0
commit
d7867e0660
@ -0,0 +1 @@
|
|||||||
|
/Test-Regexp-[0-9.]*.tar.gz
|
@ -0,0 +1,64 @@
|
|||||||
|
Name: perl-Test-Regexp
|
||||||
|
Version: 2015110201
|
||||||
|
Release: 2%{?dist}
|
||||||
|
Summary: Test your regular expressions
|
||||||
|
License: MIT
|
||||||
|
URL: http://search.cpan.org/dist/Test-Regexp/
|
||||||
|
Source0: http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/Test-Regexp-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
# Module Build
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl >= 4:5.10.0
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
# Module Runtime
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
|
BuildRequires: perl(Hash::Util::FieldHash)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(Test::Builder)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
# Test Suite
|
||||||
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
|
BuildRequires: perl(Test::Tester)
|
||||||
|
# Optional Tests
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
|
||||||
|
# Runtime
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module is intended to test your regular expressions. Given a subject
|
||||||
|
string and a regular expression (a.k.a. pattern), the module not only tests
|
||||||
|
whether the regular expression completely matches the subject string, it
|
||||||
|
performs a utf8::upgrade or utf8::downgrade on the subject string and
|
||||||
|
performs the tests again, if necessary. Furthermore, given a pattern with
|
||||||
|
capturing parenthesis, it checks whether all captures are present, and in the
|
||||||
|
right order. Both named and unnamed captures are checked.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Test-Regexp-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=%{buildroot}
|
||||||
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||||
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc Changes README TODO
|
||||||
|
%{perl_vendorlib}/Test/
|
||||||
|
%{_mandir}/man3/Test::Regexp.3*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jan 8 2016 Paul Howarth <paul@city-fan.org> - 2015110201-2
|
||||||
|
- Sanitize for Fedora submission
|
||||||
|
|
||||||
|
* Fri Jan 8 2016 Paul Howarth <paul@city-fan.org> - 2015110201-1
|
||||||
|
- Initial RPM version
|
Loading…
Reference in new issue