automatic version update by autodist [release 1.08-1mamba;Tue Jun 11 2013]

This commit is contained in:
Automatic Build System 2024-01-06 09:29:33 +01:00
parent 5023da1e85
commit b61af63edb
2 changed files with 80 additions and 0 deletions

View File

@ -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).

76
perl-Params-Validate.spec Normal file
View File

@ -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 <aleph0@openmamba.org>
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 <autodist@mambasoft.it> 1.08-1mamba
- automatic version update by autodist
* Sat Feb 09 2013 Automatic Build System <autodist@mambasoft.it> 1.07-1mamba
- automatic version update by autodist
* Wed Sep 30 2009 Automatic Build System <autodist@mambasoft.it> 0.92-1mamba
- automatic update by autodist
* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.91-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.89-2mamba
- automatic rebuild by autodist
* Fri Nov 30 2007 Aleph0 <aleph0@openmamba.org> 0.89-1mamba
- package created by autospec