From ef3d39229b10d5f1b700b1fcfea6cf01544a8177 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Sun, 14 Aug 2005 04:26:08 +0000 Subject: [PATCH] auto-import perl-Params-Validate-0.78-1 on branch devel from perl-Params-Validate-0.78-1.src.rpm --- .cvsignore | 1 + perl-Params-Validate.spec | 57 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 perl-Params-Validate.spec diff --git a/.cvsignore b/.cvsignore index e69de29..ac26b73 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Params-Validate-0.78.tar.gz diff --git a/perl-Params-Validate.spec b/perl-Params-Validate.spec new file mode 100644 index 0000000..2f1b5d5 --- /dev/null +++ b/perl-Params-Validate.spec @@ -0,0 +1,57 @@ +Summary: Params-Validate Perl module +Name: perl-Params-Validate +Version: 0.78 +Release: 1%{?dist} +License: GPL or Artistic +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Required by the tests +BuildRequires: perl(Test::Taint) + +%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} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README TODO +%{perl_vendorarch}/Params +%{perl_vendorarch}/auto/Params +%{perl_vendorarch}/Attribute +%{_mandir}/man3/* + +%changelog +* Wed Aug 10 2005 Ralf Corsepius - 0.77-1 +- FE submission. diff --git a/sources b/sources index e69de29..96419f8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8b6951214915c33addc4cc16e047546f Params-Validate-0.78.tar.gz