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
|
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.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -17,67 +17,57 @@
|
|||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Params-Validate
|
Name: perl-Params-Validate
|
||||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
Url: http://cpan.org/modules/by-module/Params/
|
||||||
Summary: Validate method/function parameters
|
|
||||||
Version: 0.95
|
|
||||||
Release: 1
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Development/Libraries/Perl
|
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 = %{perl_version}
|
||||||
Requires: perl(Attribute::Handlers) >= 0.79
|
#Conflicts: perlmod
|
||||||
Requires: perl(Test::More) >= 0.34
|
AutoReqProv: on
|
||||||
Requires: perl(Scalar::Util) >= 1.10
|
Version: 0.94
|
||||||
Provides: %{cpan_name}
|
Release: 1
|
||||||
|
Source: Params-Validate-%{version}.tar.bz2
|
||||||
|
Summary: provides a system for validation method/function call parameters
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Params::Validate module allows you to validate method or function
|
The Params::Validate module provides a flexible system for validation
|
||||||
call parameters to an arbitrary level of specificity. At the simplest
|
method/function call parameters. The validation can be as simple as
|
||||||
level, it is capable of validating the required parameters were given
|
checking for the presence of required parameters or as complex as
|
||||||
and that no unspecified additional parameters were passed in.
|
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:
|
Authors:
|
||||||
--------
|
--------
|
||||||
Dave Rolsky
|
Dave Rolsky
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n Params-Validate-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL installdirs=vendor
|
perl Build.PL installdirs=vendor
|
||||||
./Build
|
./Build
|
||||||
|
|
||||||
%check
|
|
||||||
./Build test
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=$RPM_BUILD_ROOT
|
./Build install destdir=$RPM_BUILD_ROOT
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files
|
||||||
%defattr(-, root, root)
|
%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
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user