Blame SPECS/perl-Params-Validate.spec

b9fc0a
# Supported rpmbuild options:
b9fc0a
#
b9fc0a
# --with network/--without network
b9fc0a
#    include/exclude networked tests, which work in mock, but don't work in koji
b9fc0a
#    Default: --without (Exclude tests, which don't work in koji)
b9fc0a
%bcond_with network
b9fc0a
b9fc0a
Summary:    Params-Validate Perl module
b9fc0a
Name:       perl-Params-Validate
b9fc0a
Version:    1.08
b9fc0a
Release:    4%{?dist}
b9fc0a
License:    Artistic 2.0
b9fc0a
Group:      Development/Libraries
b9fc0a
URL:        http://search.cpan.org/dist/Params-Validate/
b9fc0a
Source0:    http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-%{version}.tar.gz
b9fc0a
# Hacks to make spell checking tests work with hunspell
b9fc0a
Patch0:         Params-Validate-1.08.diff
b9fc0a
BuildRequires:  perl
b9fc0a
BuildRequires:  perl(Carp)
b9fc0a
BuildRequires:  perl(Module::Implementation) >= 0.04
b9fc0a
BuildRequires:  perl(Module::Build) >= 0.37
b9fc0a
# Run-time:
b9fc0a
BuildRequires:  perl(attributes)
b9fc0a
BuildRequires:  perl(Attribute::Handlers) >= 0.79
b9fc0a
BuildRequires:  perl(Exporter)
b9fc0a
BuildRequires:  perl(Scalar::Util) >= 1.10
b9fc0a
BuildRequires:  perl(strict)
b9fc0a
BuildRequires:  perl(vars)
b9fc0a
BuildRequires:  perl(warnings)
b9fc0a
BuildRequires:  perl(XSLoader)
b9fc0a
# Required by the tests
b9fc0a
BuildRequires:  perl(base)
b9fc0a
BuildRequires:  perl(Devel::Peek)
b9fc0a
BuildRequires:  perl(File::Spec)
b9fc0a
BuildRequires:  perl(File::Temp)
b9fc0a
BuildRequires:  perl(lib)
b9fc0a
BuildRequires:  perl(overload)
b9fc0a
BuildRequires:  perl(Test::Fatal)
b9fc0a
BuildRequires:  perl(Test::More) >= 0.88
b9fc0a
BuildRequires:  perl(Test::Taint) >= 0.02
b9fc0a
BuildRequires:  perl(Tie::Array)
b9fc0a
BuildRequires:  perl(Tie::Hash)
b9fc0a
BuildRequires:  perl(Tie::StdArray)
b9fc0a
BuildRequires:  perl(Tie::StdHash)
b9fc0a
BuildRequires:  perl(Readonly)
b9fc0a
BuildRequires:  perl(Readonly::XS)
b9fc0a
# For release testing tests
b9fc0a
BuildRequires:  perl(Test::CPAN::Changes)
b9fc0a
BuildRequires:  perl(Test::EOL)
b9fc0a
BuildRequires:  perl(Test::NoTabs)
b9fc0a
BuildRequires:  perl(Test::Pod) >= 1.41
b9fc0a
BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
b9fc0a
%if !(0%{?rhel} >= 7)
b9fc0a
BuildRequires:  perl(Test::Pod::LinkCheck)
b9fc0a
BuildRequires:  perl(Test::Pod::No404s)
b9fc0a
BuildRequires:  perl(LWP::Protocol::https)
b9fc0a
%endif
b9fc0a
BuildRequires:  perl(Test::Spelling)
b9fc0a
BuildRequires:  hunspell-en
b9fc0a
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b9fc0a
b9fc0a
b9fc0a
%{?perl_default_filter}
b9fc0a
b9fc0a
%description
b9fc0a
The Params::Validate module allows you to validate method or function
b9fc0a
call parameters to an arbitrary level of specificity. At the simplest
b9fc0a
level, it is capable of validating the required parameters were given
b9fc0a
and that no unspecified additional parameters were passed in. It is
b9fc0a
also capable of determining that a parameter is of a specific type,
b9fc0a
that it is an object of a certain class hierarchy, that it possesses
b9fc0a
certain methods, or applying validation callbacks to arguments.
b9fc0a
b9fc0a
%prep
b9fc0a
%setup -q -n Params-Validate-%{version}
b9fc0a
%patch0 -p1
b9fc0a
sed -i -e "s,set_spell_cmd(.*),set_spell_cmd(\'hunspell -l\')," t/release-pod-spell.t
b9fc0a
b9fc0a
%build
b9fc0a
perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
b9fc0a
./Build
b9fc0a
b9fc0a
%install
b9fc0a
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
b9fc0a
%{_fixperms} $RPM_BUILD_ROOT/*
b9fc0a
b9fc0a
%check
b9fc0a
RELEASE_TESTING=1 %{!?with_network:SKIP_POD_NO404S=1} ./Build test
b9fc0a
b9fc0a
%files
b9fc0a
%doc Changes LICENSE README TODO
b9fc0a
%{perl_vendorarch}/Params
b9fc0a
%{perl_vendorarch}/auto/Params
b9fc0a
%{perl_vendorarch}/Attribute
b9fc0a
%{_mandir}/man3/*
b9fc0a
b9fc0a
%changelog
b9fc0a
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.08-4
b9fc0a
- Mass rebuild 2014-01-24
b9fc0a
b9fc0a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.08-3
b9fc0a
- Mass rebuild 2013-12-27
b9fc0a
b9fc0a
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 1.08-2.1
b9fc0a
- Modernize spec file
b9fc0a
b9fc0a
* Thu Jul 18 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-2
b9fc0a
- Adjust license tag (RHBZ #977787).
b9fc0a
b9fc0a
* Tue Jun 11 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.08-1
b9fc0a
- Upstream update.
b9fc0a
- Update patch.
b9fc0a
- Update BRs.
b9fc0a
- Add %%bcond --with network.
b9fc0a
- Fix up %%changelog dates.
b9fc0a
b9fc0a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-2
b9fc0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b9fc0a
b9fc0a
* Tue Oct 30 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.07-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Tue Aug 14 2012 Petr Pisar <ppisar@redhat.com> - 1.06-5
b9fc0a
- Specify all dependencies
b9fc0a
b9fc0a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-4
b9fc0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b9fc0a
b9fc0a
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 1.06-3
b9fc0a
- Perl 5.16 rebuild
b9fc0a
b9fc0a
* Thu May 31 2012 Petr Pisar <ppisar@redhat.com> - 1.06-2
b9fc0a
- Round Module::Build version to 2 digits
b9fc0a
b9fc0a
* Mon Mar 19 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.06-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Thu Feb 09 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.05-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Mon Feb 06 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.01-1
b9fc0a
- Upstream update.
b9fc0a
- Drop Params-Validate-1.00-no-pod-coverage.patch.
b9fc0a
- Spec file cleanup.
b9fc0a
b9fc0a
* Sun Jan 22 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.00-5
b9fc0a
- Add %%{perl_default_filter}.
b9fc0a
b9fc0a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-4
b9fc0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b9fc0a
b9fc0a
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.00-3
b9fc0a
- Perl mass rebuild
b9fc0a
b9fc0a
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.00-2
b9fc0a
- Perl mass rebuild
b9fc0a
b9fc0a
* Thu Jun 30 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.00-1
b9fc0a
- Upstream update.
b9fc0a
- Deactivate t/release-pod-coverage.t 
b9fc0a
  (Add Params-Validate-1.00-no-pod-coverage.patch).
b9fc0a
b9fc0a
* Thu Jun 30 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.99-3
b9fc0a
- Fix up bogus Tue Jun 28 2011 changelog entry.
b9fc0a
- Fix License (Artistic2.0).
b9fc0a
- Add BR: perl(Test::CPAN:Changes).
b9fc0a
b9fc0a
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.99-2
b9fc0a
- Perl mass rebuild
b9fc0a
- remove unneeded Pod::Man 
b9fc0a
b9fc0a
* Tue May 31 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.99-1
b9fc0a
- Upstream update.
b9fc0a
- Rebase patch (Params-Validate-0.99.diff).
b9fc0a
b9fc0a
* Sat Apr 30 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.98-1
b9fc0a
- Upstream update.
b9fc0a
- Spec cleanup.
b9fc0a
- Rework BR's.
b9fc0a
- Reflect upstream having abandoned AUTHOR_TESTING.
b9fc0a
- Make spell-checking tests working/work-around aspell/hunspell/perl(Test::Spelling)
b9fc0a
  issues (add Params-Validate-0.98.diff).
b9fc0a
b9fc0a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.95-4
b9fc0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b9fc0a
b9fc0a
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.95-3
b9fc0a
- 661697 rebuild for fixing problems with vendorach/lib
b9fc0a
b9fc0a
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.95-2
b9fc0a
- Mass rebuild with perl-5.12.0
b9fc0a
b9fc0a
* Wed Mar 03 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.95-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Tue Dec 15 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.94-1
b9fc0a
- Upstream update.
b9fc0a
- Reflect upstream having reworked author tests to using AUTHOR_TESTING=1.
b9fc0a
b9fc0a
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.92-2
b9fc0a
- rebuild against perl 5.10.1
b9fc0a
b9fc0a
* Mon Nov 23 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.92-1
b9fc0a
- Upstream update.
b9fc0a
- Switch to Build.PL.
b9fc0a
- Disable IS_MAINTAINER test.
b9fc0a
b9fc0a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-3
b9fc0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b9fc0a
b9fc0a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2
b9fc0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b9fc0a
b9fc0a
* Tue Jun 10 2008 Ralf Corsépius <rc040203@freenet.de> - 0.91-1
b9fc0a
- Upstream update.
b9fc0a
- Conditionally activate IS_MAINTAINER tests.
b9fc0a
b9fc0a
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.89-4
b9fc0a
- Rebuild for perl 5.10 (again)
b9fc0a
b9fc0a
* Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 0.89-3
b9fc0a
- Rebuild for gcc43.
b9fc0a
b9fc0a
* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.89-2
b9fc0a
- rebuild for new perl
b9fc0a
b9fc0a
* Tue Nov 13 2007 Ralf Corsépius <rc040203@freenet.de> - 0.89-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Thu Sep 06 2007 Ralf Corsépius <rc040203@freenet.de> - 0.88-3
b9fc0a
- Update license tag.
b9fc0a
b9fc0a
* Wed Aug 22 2007 Ralf Corsépius <rc040203@freenet.de> - 0.88-2
b9fc0a
- Mass rebuild.
b9fc0a
b9fc0a
* Mon Mar 12 2007 Ralf Corsépius <rc040203@freenet.de> - 0.88-1
b9fc0a
- BR: perl(ExtUtils::MakeMaker).
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Sat Jan 20 2007 Ralf Corsépius <rc040203@freenet.de> - 0.87-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 0.86-2
b9fc0a
- Mass rebuild.
b9fc0a
b9fc0a
* Sun Aug 13 2006 Ralf Corsépius <rc040203@freenet.de> - 0.86-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Wed Jun 28 2006 Ralf Corsépius <rc040203@freenet.de> - 0.85-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Mon Jun 05 2006 Ralf Corsépius <rc040203@freenet.de> - 0.84-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Sun May 21 2006 Ralf Corsépius <rc040203@freenet.de> - 0.82-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Tue Apr 04 2006 Ralf Corsépius <rc040203@freenet.de> - 0.81-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Mon Feb 20 2006 Ralf Corsépius <rc040203@freenet.de> - 0.80-2
b9fc0a
- Rebuild.
b9fc0a
b9fc0a
* Wed Feb 01 2006 Ralf Corsépius <rc040203@freenet.de> - 0.80-1
b9fc0a
- Upstream update.
b9fc0a
b9fc0a
* Sat Jan 14 2006 Ralf Corsépius <rc040203@freenet.de> - 0.79-1
b9fc0a
- Upstream update.
b9fc0a
- BR perl(Readonly), perl(Readonly::XS).
b9fc0a
b9fc0a
* Sun Aug 14 2005 Ralf Corsepius <ralf@links2linux.de> - 0.78-2
b9fc0a
- Spec file cleanup.
b9fc0a
b9fc0a
* Wed Aug 10 2005 Ralf Corsepius <ralf@links2linux.de> - 0.78-1
b9fc0a
- FE submission.