Update to 1.25.

- Reflect upstream having switched to ExtUtils::MakeMaker.
- Simplify spec.
This commit is contained in:
Ralf Corsépius 2016-09-30 08:20:25 +02:00
parent d84854f48f
commit 4b4557e0fd
3 changed files with 20 additions and 49 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/Params-Validate-1.24.tar.gz
/Params-Validate-1.25.tar.gz

View File

@ -1,22 +1,7 @@
# Supported rpmbuild options:
#
# --with network/--without network
# include/exclude networked tests, which work in mock, but don't work in koji
# Default: --without (Exclude tests, which don't work in koji)
%bcond_with network
# --with release-tests/--without release-tests
# Default: --with (--without when bootstrapping)
%if 0%{?perl_bootstrap}
%bcond_with release_tests
%else
%bcond_without release_tests
%endif
Summary: Params-Validate Perl module
Name: perl-Params-Validate
Version: 1.24
Release: 3%{?dist}
Version: 1.25
Release: 1%{?dist}
License: Artistic 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/Params-Validate/
@ -26,14 +11,18 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl(Carp)
BuildRequires: perl(Module::Implementation) >= 0.04
BuildRequires: perl(Module::Build) >= 0.37
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Scalar::Util) >= 1.20
BuildRequires: perl(XSLoader)
BuildRequires: perl(Module::Implementation)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
# Required by the tests
BuildRequires: perl(base)
@ -50,27 +39,6 @@ BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::Hash)
BuildRequires: perl(Readonly) >= 1.03
%if %{with release_tests}
# For release testing tests
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::LeakTrace)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
BuildRequires: perl(Test::Pod::LinkCheck)
BuildRequires: perl(Test::Pod::No404s)
BuildRequires: perl(Test::Spelling)
BuildRequires: perl(Test::Synopsis)
BuildRequires: perl(Test::CPAN::Meta::JSON) >= 0.16
BuildRequires: perl(Test::Mojibake)
BuildRequires: aspell-en
# Optional:
BuildRequires: perl(Test::Portability::Files)
%endif
%description
The Params::Validate module allows you to validate method or function
call parameters to an arbitrary level of specificity. At the simplest
@ -84,17 +52,15 @@ certain methods, or applying validation callbacks to arguments.
%setup -q -n Params-Validate-%{version}
%build
%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
./Build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
%{?with_release_tests:RELEASE_TESTING=1} %{!?with_network:SKIP_POD_NO404S=1} ./Build test
make test
%files
%doc Changes TODO
@ -104,6 +70,11 @@ find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_mandir}/man3/*
%changelog
* Fri Sep 30 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.25-1
- Update to 1.25.
- Reflect upstream having switched to ExtUtils::MakeMaker.
- Simplify spec.
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.24-3
- Perl 5.24 re-rebuild of bootstrapped packages

View File

@ -1 +1 @@
4e9a71351ed1d48e556b48ec774044f6 Params-Validate-1.24.tar.gz
f99ce0560bea59e9e82851c1f637d75b Params-Validate-1.25.tar.gz