diff --git a/.gitignore b/.gitignore index e69de29..c92895f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Regexp-[0-9.]*.tar.gz diff --git a/perl-Test-Regexp.spec b/perl-Test-Regexp.spec new file mode 100644 index 0000000..f748445 --- /dev/null +++ b/perl-Test-Regexp.spec @@ -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 - 2015110201-2 +- Sanitize for Fedora submission + +* Fri Jan 8 2016 Paul Howarth - 2015110201-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..964b26b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d4d6828809d10ad1c4d79d4d38f5f3f3 Test-Regexp-2015110201.tar.gz