c884eae
# Supported rpmbuild options:
c884eae
#
c884eae
# --with network/--without network
c884eae
#    include/exclude networked tests, which work in mock, but don't work in koji
c884eae
#    Default: --without (Exclude tests, which don't work in koji)
c884eae
%bcond_with	network
c884eae
c34bc6d
# --with release-tests/--without release-tests
c34bc6d
#    Default: --with (--without when bootstrapping)
c34bc6d
%if 0%{?perl_bootstrap}
c34bc6d
%bcond_with	release_tests
c34bc6d
%else
c34bc6d
%bcond_without	release_tests
c34bc6d
%endif
c34bc6d
ef3d392
Summary: 	Params-Validate Perl module
ef3d392
Name: 		perl-Params-Validate
f202d1c
Version: 	1.18
d35926b
Release: 	3%{?dist}
3163d67
License: 	Artistic 2.0
ef3d392
Group: 		Development/Libraries
ef3d392
URL: 		http://search.cpan.org/dist/Params-Validate/
ef3d392
Source0: 	http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-%{version}.tar.gz
6d57767
ef3d392
Requires:  	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
ef3d392
0bc0c7a
BuildRequires:  perl(Carp)
039f917
BuildRequires:  perl(Module::Implementation) >= 0.04
d8c351d
BuildRequires:  perl(Module::Build) >= 0.37
98c4404
3727af8
# Run-time:
3727af8
BuildRequires:  perl(Attribute::Handlers) >= 0.79
3727af8
BuildRequires:  perl(Exporter)
b85b9ea
BuildRequires:  perl(Scalar::Util) >= 1.20
3727af8
BuildRequires:  perl(XSLoader)
3727af8
ef3d392
# Required by the tests
3727af8
BuildRequires:  perl(base)
0bc0c7a
BuildRequires:  perl(Devel::Peek)
0bc0c7a
BuildRequires:  perl(File::Spec)
0bc0c7a
BuildRequires:  perl(File::Temp)
3727af8
BuildRequires:  perl(lib)
039f917
BuildRequires:  perl(Test::Fatal)
f202d1c
BuildRequires:  perl(Test::More) >= 0.96
e3f366e
BuildRequires:  perl(Test::Requires)
0bc0c7a
BuildRequires:  perl(Test::Taint) >= 0.02
0bc0c7a
BuildRequires:  perl(Tie::Array)
0bc0c7a
BuildRequires:  perl(Tie::Hash)
b85b9ea
BuildRequires:  perl(Readonly) >= 1.03
ef3d392
c34bc6d
%if %{with release_tests}
6d57767
# For release testing tests
57e96be
BuildRequires:  perl(Pod::Coverage::TrustPod)
57e96be
BuildRequires:  perl(LWP::Protocol::https)
2f30b0a
BuildRequires:	perl(Test::CPAN::Changes)
6d57767
BuildRequires:	perl(Test::EOL)
6d57767
BuildRequires:	perl(Test::NoTabs)
57e96be
BuildRequires:  perl(Test::LeakTrace)
6d57767
BuildRequires:	perl(Test::Pod) >= 1.41
0bc0c7a
BuildRequires:	perl(Test::Pod::Coverage) >= 1.04
c884eae
BuildRequires:  perl(Test::Pod::LinkCheck)
c884eae
BuildRequires:  perl(Test::Pod::No404s)
6d57767
BuildRequires:	perl(Test::Spelling)
57e96be
BuildRequires:  perl(Test::Synopsis)
f202d1c
BuildRequires:  perl(Test::Version)
04d8f11
BuildRequires:  aspell-en
57e96be
# Optional:
57e96be
BuildRequires:  perl(Test::Portability::Files)
c34bc6d
%endif
71cdfe3
a6119c3
%{?perl_default_filter}
a6119c3
ef3d392
%description
ef3d392
The Params::Validate module allows you to validate method or function
ef3d392
call parameters to an arbitrary level of specificity. At the simplest
ef3d392
level, it is capable of validating the required parameters were given
ef3d392
and that no unspecified additional parameters were passed in. It is
ef3d392
also capable of determining that a parameter is of a specific type,
ef3d392
that it is an object of a certain class hierarchy, that it possesses
ef3d392
certain methods, or applying validation callbacks to arguments.
ef3d392
ef3d392
%prep
ef3d392
%setup -q -n Params-Validate-%{version}
ef3d392
ef3d392
%build
98c4404
%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
98c4404
./Build
ef3d392
ef3d392
%install
98c4404
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
ef3d392
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
98c4404
98c4404
%{_fixperms} $RPM_BUILD_ROOT/*
98c4404
ef3d392
%check
c34bc6d
%{?with_release_tests:RELEASE_TESTING=1} %{!?with_network:SKIP_POD_NO404S=1} ./Build test
ef3d392
ef3d392
%files
57e96be
%doc Changes LICENSE TODO
ef3d392
%{perl_vendorarch}/Params
ef3d392
%{perl_vendorarch}/auto/Params
ef3d392
%{perl_vendorarch}/Attribute
ef3d392
%{_mandir}/man3/*
ef3d392
ef3d392
%changelog
d35926b
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.18-3
d35926b
- Perl 5.22 re-rebuild of bootstrapped packages
d35926b
ff16d4f
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.18-2
ff16d4f
- Perl 5.22 rebuild
ff16d4f
f202d1c
* Tue Feb 24 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.18-1
f202d1c
- Upstream update.
f202d1c
- BR: perl(Test::Version).
f202d1c
7378847
* Sun Feb 01 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.17-1
7378847
- Upstream update.
7378847
a2e3645
* Mon Jan 12 2015 Petr Pisar <ppisar@redhat.com> - 1.16-2
a2e3645
- Remove unused test-time dependency on Readonly:::XS
a2e3645
57e96be
* Thu Jan 08 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.16-1
57e96be
- Upstream update.
57e96be
- Reflect upstream changes.
57e96be
76ccfc1
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-4
76ccfc1
- Perl 5.20 re-rebuild of bootstrapped packages
76ccfc1
7bc9eaf
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.13-3
7bc9eaf
- Perl 5.20 rebuild
7bc9eaf
4852e3c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-2
4852e3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4852e3c
79deeb3
* Mon Jun 30 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.13-1
79deeb3
- Upstream update.
79deeb3
03ed2b4
* Sat Jun 28 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.12-1
03ed2b4
- Upstream update.
03ed2b4
06cf72d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
06cf72d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
06cf72d
b85b9ea
* Mon May 12 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.10-1
b85b9ea
- Upstream update.
b85b9ea
e3f366e
* Wed May 07 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.09-1
e3f366e
- Upstream update.
e3f366e
04d8f11
* Wed May 07 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-8
04d8f11
- Use aspell-en instead of hunspell.
04d8f11
c970099
* Tue May 06 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-7
c970099
- Add "'globals" to Params-Validate-1.08.diff (FTBFS RHBZ #1094169).
c970099
- Remove %%defattr.
c970099
50d2515
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.08-6
50d2515
- Perl 5.18 re-rebuild of bootstrapped packages
50d2515
0615265
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-5
0615265
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0615265
9cc5029
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 1.08-4
9cc5029
- Perl 5.18 rebuild
9cc5029
3163d67
* Thu Jul 18 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-3
3163d67
- Adjust license tag (RHBZ #977787).
3163d67
c34bc6d
* Thu Jul 18 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-2
c34bc6d
- Add %%bcond --without release-tests.
c34bc6d
- Skip release tests when bootstrapping (RHBZ #982253).
c34bc6d
c884eae
* Tue Jun 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-1
c884eae
- Upstream update.
c884eae
- Update patch.
c884eae
- Update BRs.
c884eae
- Add %%bcond --with network.
c884eae
- Fix up %%changelog dates.
c884eae
5024d40
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-2
5024d40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5024d40
657de05
* Tue Oct 30 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.07-1
657de05
- Upstream update.
657de05
3727af8
* Tue Aug 14 2012 Petr Pisar <ppisar@redhat.com> - 1.06-5
3727af8
- Specify all dependencies
3727af8
3586467
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-4
3586467
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3586467
02be7dd
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 1.06-3
02be7dd
- Perl 5.16 rebuild
02be7dd
d8c351d
* Thu May 31 2012 Petr Pisar <ppisar@redhat.com> - 1.06-2
d8c351d
- Round Module::Build version to 2 digits
d8c351d
abf1d76
* Mon Mar 19 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.06-1
abf1d76
- Upstream update.
abf1d76
c884eae
* Thu Feb 09 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.05-1
039f917
- Upstream update.
039f917
0bc0c7a
* Mon Feb 06 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.01-1
0bc0c7a
- Upstream update.
0bc0c7a
- Drop Params-Validate-1.00-no-pod-coverage.patch.
0bc0c7a
- Spec file cleanup.
0bc0c7a
a6119c3
* Sun Jan 22 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.00-5
a6119c3
- Add %%{perl_default_filter}.
a6119c3
7163385
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-4
7163385
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7163385
Petr Sabata 21532ed
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.00-3
Petr Sabata 21532ed
- Perl mass rebuild
Petr Sabata 21532ed
Petr Sabata 2dd27c4
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.00-2
Petr Sabata 2dd27c4
- Perl mass rebuild
Petr Sabata 2dd27c4
4d569fa
* Thu Jun 30 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.00-1
4d569fa
- Upstream update.
4d569fa
- Deactivate t/release-pod-coverage.t 
4d569fa
  (Add Params-Validate-1.00-no-pod-coverage.patch).
4d569fa
2f30b0a
* Thu Jun 30 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.99-3
2f30b0a
- Fix up bogus Tue Jun 28 2011 changelog entry.
2f30b0a
- Fix License (Artistic2.0).
2f30b0a
- Add BR: perl(Test::CPAN:Changes).
2f30b0a
df4ca85
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.99-2
df4ca85
- Perl mass rebuild
df4ca85
- remove unneeded Pod::Man 
df4ca85
08a7802
* Tue May 31 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.99-1
08a7802
- Upstream update.
08a7802
- Rebase patch (Params-Validate-0.99.diff).
08a7802
6d57767
* Sat Apr 30 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.98-1
6d57767
- Upstream update.
6d57767
- Spec cleanup.
6d57767
- Rework BR's.
6d57767
- Reflect upstream having abandoned AUTHOR_TESTING.
6d57767
- Make spell-checking tests working/work-around aspell/hunspell/perl(Test::Spelling)
6d57767
  issues (add Params-Validate-0.98.diff).
6d57767
f53b072
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-4
f53b072
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f53b072
d6448c2
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.95-3
d6448c2
- 661697 rebuild for fixing problems with vendorach/lib
d6448c2
5afa96d
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.95-2
5afa96d
- Mass rebuild with perl-5.12.0
5afa96d
4ad7429
* Wed Mar 03 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.95-1
4ad7429
- Upstream update.
4ad7429
c884eae
* Tue Dec 15 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.94-1
509082f
- Upstream update.
509082f
- Reflect upstream having reworked author tests to using AUTHOR_TESTING=1.
509082f
bf22efe
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.92-2
bf22efe
- rebuild against perl 5.10.1
bf22efe
98c4404
* Mon Nov 23 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.92-1
98c4404
- Upstream update.
98c4404
- Switch to Build.PL.
98c4404
- Disable IS_MAINTAINER test.
98c4404
876603f
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-3
876603f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
876603f
2d8760c
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2
2d8760c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2d8760c
71cdfe3
* Tue Jun 10 2008 Ralf Corsépius <rc040203@freenet.de> - 0.91-1
71cdfe3
- Upstream update.
71cdfe3
- Conditionally activate IS_MAINTAINER tests.
71cdfe3
58ed53f
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.89-4
58ed53f
- Rebuild for perl 5.10 (again)
58ed53f
41dee42
* Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 0.89-3
41dee42
- Rebuild for gcc43.
41dee42
3a4f8d2
* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.89-2
3a4f8d2
- rebuild for new perl
3a4f8d2
aae75bf
* Tue Nov 13 2007 Ralf Corsépius <rc040203@freenet.de> - 0.89-1
aae75bf
- Upstream update.
aae75bf
77319ea
* Thu Sep 06 2007 Ralf Corsépius <rc040203@freenet.de> - 0.88-3
77319ea
- Update license tag.
77319ea
b83fe27
* Wed Aug 22 2007 Ralf Corsépius <rc040203@freenet.de> - 0.88-2
b83fe27
- Mass rebuild.
b83fe27
c6519aa
* Mon Mar 12 2007 Ralf Corsépius <rc040203@freenet.de> - 0.88-1
c6519aa
- BR: perl(ExtUtils::MakeMaker).
c6519aa
- Upstream update.
c6519aa
e58bf8a
* Sat Jan 20 2007 Ralf Corsépius <rc040203@freenet.de> - 0.87-1
e58bf8a
- Upstream update.
e58bf8a
d5cdc8d
* Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 0.86-2
d5cdc8d
- Mass rebuild.
d5cdc8d
c2c2a59
* Sun Aug 13 2006 Ralf Corsépius <rc040203@freenet.de> - 0.86-1
c2c2a59
- Upstream update.
c2c2a59
c884eae
* Wed Jun 28 2006 Ralf Corsépius <rc040203@freenet.de> - 0.85-1
07a7482
- Upstream update.
07a7482
b9cc238
* Mon Jun 05 2006 Ralf Corsépius <rc040203@freenet.de> - 0.84-1
b9cc238
- Upstream update.
b9cc238
4bcd049
* Sun May 21 2006 Ralf Corsépius <rc040203@freenet.de> - 0.82-1
4bcd049
- Upstream update.
4bcd049
c884eae
* Tue Apr 04 2006 Ralf Corsépius <rc040203@freenet.de> - 0.81-1
5546c0a
- Upstream update.
5546c0a
c884eae
* Mon Feb 20 2006 Ralf Corsépius <rc040203@freenet.de> - 0.80-2
4b29ded
- Rebuild.
4b29ded
2725288
* Wed Feb 01 2006 Ralf Corsépius <rc040203@freenet.de> - 0.80-1
2725288
- Upstream update.
2725288
15b8faf
* Sat Jan 14 2006 Ralf Corsépius <rc040203@freenet.de> - 0.79-1
15b8faf
- Upstream update.
15b8faf
- BR perl(Readonly), perl(Readonly::XS).
15b8faf
3267d6d
* Sun Aug 14 2005 Ralf Corsepius <ralf@links2linux.de> - 0.78-2
3267d6d
- Spec file cleanup.
3267d6d
3267d6d
* Wed Aug 10 2005 Ralf Corsepius <ralf@links2linux.de> - 0.78-1
ef3d392
- FE submission.