auto-import perl-Params-Validate-0.78-1 on branch devel from
perl-Params-Validate-0.78-1.src.rpm
This commit is contained in:
parent
eb943fcc0a
commit
ef3d39229b
@ -0,0 +1 @@
|
||||
Params-Validate-0.78.tar.gz
|
||||
57
perl-Params-Validate.spec
Normal file
57
perl-Params-Validate.spec
Normal file
@ -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 <ralf@links2linux.de> - 0.77-1
|
||||
- FE submission.
|
||||
Loading…
Reference in New Issue
Block a user