You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.1 KiB
68 lines
2.1 KiB
Name: perl-Test-Regexp
|
|
Version: 2015110201
|
|
Release: 3%{?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
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2015110201-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* 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
|