Accepting request 33922 from devel:languages:perl
checked in (request 33922) OBS-URL: https://build.opensuse.org/request/show/33922 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=8
This commit is contained in:
parent
a41ed33a44
commit
6d23f46dce
3
Params-Validate-0.94.tar.bz2
Normal file
3
Params-Validate-0.94.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7aeb27463ba7d56a1258f8b4e56d34095f9d8978573e9d0849a3742d28e5539c
|
||||
size 84801
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:383035853b211c3e5386816b03b4cc653ece72ed8a3e7228d2eb535008de54a9
|
||||
size 84873
|
@ -1,18 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 21 18:45:29 UTC 2010 - chris@computersalat.de
|
||||
|
||||
- update to 0.95
|
||||
- Skip t/29-taint-mode.t entirely, since it seems to randomly fail
|
||||
for people, despite already being marked a todo test.
|
||||
- spec mods
|
||||
o sort TAGS
|
||||
o added cpan_name
|
||||
o fixed deps
|
||||
o added perl-macros
|
||||
- perl_gen_filelist
|
||||
o fixed Summary/Description
|
||||
o added Build test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 25 13:40:15 CET 2010 - anicka@suse.cz
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package perl-Params-Validate (Version 0.95)
|
||||
# spec file for package perl-Params-Validate (Version 0.94)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -17,67 +17,57 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Params-Validate
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
Summary: Validate method/function parameters
|
||||
Version: 0.95
|
||||
Release: 1
|
||||
Url: http://cpan.org/modules/by-module/Params/
|
||||
License: GPLv2+
|
||||
Group: Development/Libraries/Perl
|
||||
AutoReqProv: on
|
||||
Url: http://search.cpan.org/dist/Params-Validate/
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Build)
|
||||
#
|
||||
BuildRequires: perl(ExtUtils::CBuilder)
|
||||
BuildRequires: perl(Pod::Man) >= 1.14
|
||||
BuildRequires: perl(Test::More) >= 0.34
|
||||
#BuildRequires: perl(Test::Taint) >= 0.02
|
||||
BuildRequires: perl(Readonly::XS)
|
||||
Requires: perl = %{perl_version}
|
||||
Requires: perl(Attribute::Handlers) >= 0.79
|
||||
Requires: perl(Test::More) >= 0.34
|
||||
Requires: perl(Scalar::Util) >= 1.10
|
||||
Provides: %{cpan_name}
|
||||
#Conflicts: perlmod
|
||||
AutoReqProv: on
|
||||
Version: 0.94
|
||||
Release: 1
|
||||
Source: Params-Validate-%{version}.tar.bz2
|
||||
Summary: provides a system for validation method/function call parameters
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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.
|
||||
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.
|
||||
|
||||
|
||||
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.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Dave Rolsky
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%setup -q -n Params-Validate-%{version}
|
||||
|
||||
%build
|
||||
perl Build.PL installdirs=vendor
|
||||
./Build
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
./Build install destdir=$RPM_BUILD_ROOT
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc Changes LICENSE README SIGNATURE
|
||||
%{_mandir}/man3/*
|
||||
%doc MANIFEST README Changes
|
||||
#/var/adm/perl-modules/%{name}
|
||||
%dir %{perl_vendorarch}/Attribute
|
||||
%{perl_vendorarch}/Attribute/Params
|
||||
%{perl_vendorarch}/Params
|
||||
%{perl_vendorarch}/auto/Params
|
||||
%{_mandir}/man3/*.3pm.gz
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user