From 17df951d6edb31dbaaf281d7040ca5772f1c84ae Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jul 31 2013 06:19:23 +0000 Subject: import perl-Params-Validate-1.08-2.el7.1.src.rpm --- diff --git a/.perl-Params-Validate.metadata b/.perl-Params-Validate.metadata new file mode 100644 index 0000000..44db042 --- /dev/null +++ b/.perl-Params-Validate.metadata @@ -0,0 +1 @@ +0ec98748b756cb5f6e34a6db6eaa13b5e4105cb1 SOURCES/Params-Validate-1.08.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/Params-Validate-1.08.diff b/SOURCES/Params-Validate-1.08.diff new file mode 100644 index 0000000..69b18e6 --- /dev/null +++ b/SOURCES/Params-Validate-1.08.diff @@ -0,0 +1,21 @@ +diff -Naur Params-Validate-1.08.orig/t/release-pod-spell.t Params-Validate-1.08/t/release-pod-spell.t +--- Params-Validate-1.08.orig/t/release-pod-spell.t 2013-06-07 21:34:33.000000000 +0200 ++++ Params-Validate-1.08/t/release-pod-spell.t 2013-06-11 14:35:21.718579174 +0200 +@@ -29,8 +29,9 @@ + # https://bugs.launchpad.net/ubuntu/+source/aspell/+bug/71322 + local $ENV{LC_ALL} = 'C'; + all_pod_files_spelling_ok(); +- + __DATA__ ++' ++'' + API + CPAN + GLOBREF +@@ -42,5 +43,6 @@ + ValidatePos + baz + onwards ++'globals' + pre + runtime diff --git a/SPECS/perl-Params-Validate.spec b/SPECS/perl-Params-Validate.spec new file mode 100644 index 0000000..e8ef8c0 --- /dev/null +++ b/SPECS/perl-Params-Validate.spec @@ -0,0 +1,269 @@ +# 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 + +Summary: Params-Validate Perl module +Name: perl-Params-Validate +Version: 1.08 +Release: 2%{?dist}.1 +License: Artistic 2.0 +Group: Development/Libraries +URL: http://search.cpan.org/dist/Params-Validate/ +Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-%{version}.tar.gz +# Hacks to make spell checking tests work with hunspell +Patch0: Params-Validate-1.08.diff +BuildRequires: perl +BuildRequires: perl(Carp) +BuildRequires: perl(Module::Implementation) >= 0.04 +BuildRequires: perl(Module::Build) >= 0.37 +# Run-time: +BuildRequires: perl(attributes) +BuildRequires: perl(Attribute::Handlers) >= 0.79 +BuildRequires: perl(Exporter) +BuildRequires: perl(Scalar::Util) >= 1.10 +BuildRequires: perl(strict) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) +# Required by the tests +BuildRequires: perl(base) +BuildRequires: perl(Devel::Peek) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Temp) +BuildRequires: perl(lib) +BuildRequires: perl(overload) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Taint) >= 0.02 +BuildRequires: perl(Tie::Array) +BuildRequires: perl(Tie::Hash) +BuildRequires: perl(Tie::StdArray) +BuildRequires: perl(Tie::StdHash) +BuildRequires: perl(Readonly) +BuildRequires: perl(Readonly::XS) +# For release testing tests +BuildRequires: perl(Test::CPAN::Changes) +BuildRequires: perl(Test::EOL) +BuildRequires: perl(Test::NoTabs) +BuildRequires: perl(Test::Pod) >= 1.41 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +%if !(0%{?rhel} >= 7) +BuildRequires: perl(Test::Pod::LinkCheck) +BuildRequires: perl(Test::Pod::No404s) +BuildRequires: perl(LWP::Protocol::https) +%endif +BuildRequires: perl(Test::Spelling) +BuildRequires: hunspell-en +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + + +%{?perl_default_filter} + +%description +The Params::Validate module allows you to validate method or function +call parameters to an arbitrary level of specificity. At the simplest +level, it is capable of validating the required parameters were given +and that no unspecified additional parameters were passed in. It is +also capable of determining that a parameter is of a specific type, +that it is an object of a certain class hierarchy, that it possesses +certain methods, or applying validation callbacks to arguments. + +%prep +%setup -q -n Params-Validate-%{version} +%patch0 -p1 +sed -i -e "s,set_spell_cmd(.*),set_spell_cmd(\'hunspell -l\')," t/release-pod-spell.t + +%build +perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +RELEASE_TESTING=1 %{!?with_network:SKIP_POD_NO404S=1} ./Build test + +%files +%doc Changes LICENSE README TODO +%{perl_vendorarch}/Params +%{perl_vendorarch}/auto/Params +%{perl_vendorarch}/Attribute +%{_mandir}/man3/* + +%changelog +* Wed Jul 31 2013 Petr Pisar - 1.08-2.1 +- Modernize spec file + +* Thu Jul 18 2013 Ralf Corsépius - 1.08-2 +- Adjust license tag (RHBZ #977787). + +* Tue Jun 11 2013 Ralf Corsépius - 1.08-1 +- Upstream update. +- Update patch. +- Update BRs. +- Add %%bcond --with network. +- Fix up %%changelog dates. + +* Thu Feb 14 2013 Fedora Release Engineering - 1.07-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Oct 30 2012 Ralf Corsépius - 1.07-1 +- Upstream update. + +* Tue Aug 14 2012 Petr Pisar - 1.06-5 +- Specify all dependencies + +* Fri Jul 20 2012 Fedora Release Engineering - 1.06-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jun 13 2012 Petr Pisar - 1.06-3 +- Perl 5.16 rebuild + +* Thu May 31 2012 Petr Pisar - 1.06-2 +- Round Module::Build version to 2 digits + +* Mon Mar 19 2012 Ralf Corsépius - 1.06-1 +- Upstream update. + +* Thu Feb 09 2012 Ralf Corsépius - 1.05-1 +- Upstream update. + +* Mon Feb 06 2012 Ralf Corsépius - 1.01-1 +- Upstream update. +- Drop Params-Validate-1.00-no-pod-coverage.patch. +- Spec file cleanup. + +* Sun Jan 22 2012 Ralf Corsépius - 1.00-5 +- Add %%{perl_default_filter}. + +* Fri Jan 13 2012 Fedora Release Engineering - 1.00-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Jul 21 2011 Petr Sabata - 1.00-3 +- Perl mass rebuild + +* Wed Jul 20 2011 Petr Sabata - 1.00-2 +- Perl mass rebuild + +* Thu Jun 30 2011 Ralf Corsépius - 1.00-1 +- Upstream update. +- Deactivate t/release-pod-coverage.t + (Add Params-Validate-1.00-no-pod-coverage.patch). + +* Thu Jun 30 2011 Ralf Corsépius - 0.99-3 +- Fix up bogus Tue Jun 28 2011 changelog entry. +- Fix License (Artistic2.0). +- Add BR: perl(Test::CPAN:Changes). + +* Tue Jun 28 2011 Marcela Mašláňová - 0.99-2 +- Perl mass rebuild +- remove unneeded Pod::Man + +* Tue May 31 2011 Ralf Corsépius - 0.99-1 +- Upstream update. +- Rebase patch (Params-Validate-0.99.diff). + +* Sat Apr 30 2011 Ralf Corsépius - 0.98-1 +- Upstream update. +- Spec cleanup. +- Rework BR's. +- Reflect upstream having abandoned AUTHOR_TESTING. +- Make spell-checking tests working/work-around aspell/hunspell/perl(Test::Spelling) + issues (add Params-Validate-0.98.diff). + +* Tue Feb 08 2011 Fedora Release Engineering - 0.95-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 21 2010 Marcela Maslanova - 0.95-3 +- 661697 rebuild for fixing problems with vendorach/lib + +* Tue May 04 2010 Marcela Maslanova - 0.95-2 +- Mass rebuild with perl-5.12.0 + +* Wed Mar 03 2010 Ralf Corsépius - 0.95-1 +- Upstream update. + +* Tue Dec 15 2009 Ralf Corsépius - 0.94-1 +- Upstream update. +- Reflect upstream having reworked author tests to using AUTHOR_TESTING=1. + +* Mon Dec 7 2009 Stepan Kasal - 0.92-2 +- rebuild against perl 5.10.1 + +* Mon Nov 23 2009 Ralf Corsépius - 0.92-1 +- Upstream update. +- Switch to Build.PL. +- Disable IS_MAINTAINER test. + +* Sun Jul 26 2009 Fedora Release Engineering - 0.91-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.91-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Jun 10 2008 Ralf Corsépius - 0.91-1 +- Upstream update. +- Conditionally activate IS_MAINTAINER tests. + +* Wed Feb 27 2008 Tom "spot" Callaway - 0.89-4 +- Rebuild for perl 5.10 (again) + +* Sun Feb 10 2008 Ralf Corsépius - 0.89-3 +- Rebuild for gcc43. + +* Tue Jan 15 2008 Tom "spot" Callaway - 0.89-2 +- rebuild for new perl + +* Tue Nov 13 2007 Ralf Corsépius - 0.89-1 +- Upstream update. + +* Thu Sep 06 2007 Ralf Corsépius - 0.88-3 +- Update license tag. + +* Wed Aug 22 2007 Ralf Corsépius - 0.88-2 +- Mass rebuild. + +* Mon Mar 12 2007 Ralf Corsépius - 0.88-1 +- BR: perl(ExtUtils::MakeMaker). +- Upstream update. + +* Sat Jan 20 2007 Ralf Corsépius - 0.87-1 +- Upstream update. + +* Tue Sep 05 2006 Ralf Corsépius - 0.86-2 +- Mass rebuild. + +* Sun Aug 13 2006 Ralf Corsépius - 0.86-1 +- Upstream update. + +* Wed Jun 28 2006 Ralf Corsépius - 0.85-1 +- Upstream update. + +* Mon Jun 05 2006 Ralf Corsépius - 0.84-1 +- Upstream update. + +* Sun May 21 2006 Ralf Corsépius - 0.82-1 +- Upstream update. + +* Tue Apr 04 2006 Ralf Corsépius - 0.81-1 +- Upstream update. + +* Mon Feb 20 2006 Ralf Corsépius - 0.80-2 +- Rebuild. + +* Wed Feb 01 2006 Ralf Corsépius - 0.80-1 +- Upstream update. + +* Sat Jan 14 2006 Ralf Corsépius - 0.79-1 +- Upstream update. +- BR perl(Readonly), perl(Readonly::XS). + +* Sun Aug 14 2005 Ralf Corsepius - 0.78-2 +- Spec file cleanup. + +* Wed Aug 10 2005 Ralf Corsepius - 0.78-1 +- FE submission.