diff --git a/README.md b/README.md index e310789..abbafb8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-Params-Validate +The Params::Validate module provides a flexible system for validation method/function call parameters. The validation can be as simple as checking for the presence of required parameters or as complex as validating object classes (via isa) or capabilities (via can), checking parameter types, and using customized callbacks to ensure data integrity. + +The module has been designed to work equally well with positional or named parameters (as a hash or hash reference). + diff --git a/perl-Params-Validate.spec b/perl-Params-Validate.spec new file mode 100644 index 0000000..4cbc4ed --- /dev/null +++ b/perl-Params-Validate.spec @@ -0,0 +1,76 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Params-Validate +Version: 1.08 +Release: 1mamba +Summary: Params::Validate - Provides a flexible system for validation method/function call parameters +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/Params/Params-Validate-%{version}.tar.gz +License: Artistic +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +#BuildRequires: perl-Test-Taint +#BuildRequires: perl-Readonly-XS +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME: +#BuildRequires: perl-Test-Taint +#BuildRequires: perl-Readonly-XS + +%description +The Params::Validate module provides a flexible system for validation method/function call parameters. The validation can be as simple as checking for the presence of required parameters or as complex as validating object classes (via isa) or capabilities (via can), checking parameter types, and using customized callbacks to ensure data integrity. + +The module has been designed to work equally well with positional or named parameters (as a hash or hash reference). + +%prep +%setup -q -n Params-Validate-%{version} + +%build +perl Build.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install \ + destdir="%{buildroot}" + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Jun 11 2013 Automatic Build System 1.08-1mamba +- automatic version update by autodist + +* Sat Feb 09 2013 Automatic Build System 1.07-1mamba +- automatic version update by autodist + +* Wed Sep 30 2009 Automatic Build System 0.92-1mamba +- automatic update by autodist + +* Fri Feb 06 2009 Silvan Calarco 0.91-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 0.89-2mamba +- automatic rebuild by autodist + +* Fri Nov 30 2007 Aleph0 0.89-1mamba +- package created by autospec