2007-01-15 23:31:32 +00:00
|
|
|
#
|
2011-04-21 12:55:20 +00:00
|
|
|
# spec file for package perl-Params-Validate
|
2007-01-15 23:31:32 +00:00
|
|
|
#
|
2015-04-15 04:55:03 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:32 +00:00
|
|
|
#
|
2009-06-18 15:10:17 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:31:32 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Params-Validate
|
2015-06-15 05:38:18 +00:00
|
|
|
Version: 1.19
|
2014-08-05 13:10:30 +00:00
|
|
|
Release: 0
|
2012-02-06 10:10:31 +00:00
|
|
|
%define cpan_name Params-Validate
|
|
|
|
Summary: Validate method/function parameters
|
2014-08-05 13:10:30 +00:00
|
|
|
License: Artistic-2.0
|
2012-02-06 10:10:31 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2014-08-05 13:10:30 +00:00
|
|
|
Url: http://search.cpan.org/dist/Params-Validate/
|
2015-06-15 05:38:18 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2014-08-05 13:10:30 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 13:52:03 +00:00
|
|
|
BuildRequires: perl
|
2012-02-06 10:10:31 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-08-26 21:35:13 +00:00
|
|
|
BuildRequires: perl(Attribute::Handlers) >= 0.79
|
2015-06-15 05:38:18 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.280000
|
2012-02-13 14:23:31 +00:00
|
|
|
BuildRequires: perl(Module::Implementation)
|
2012-02-10 12:46:22 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2015-04-15 04:55:03 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2014-08-05 13:10:30 +00:00
|
|
|
BuildRequires: perl(Test::Requires)
|
2010-12-01 13:52:03 +00:00
|
|
|
Requires: perl(Attribute::Handlers) >= 0.79
|
2012-02-10 12:46:22 +00:00
|
|
|
Requires: perl(Module::Implementation)
|
2011-08-26 21:35:13 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:32 +00:00
|
|
|
|
|
|
|
%description
|
2014-08-05 13:10:30 +00:00
|
|
|
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.
|
2007-01-15 23:31:32 +00:00
|
|
|
|
2014-08-05 13:10:30 +00:00
|
|
|
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.
|
2007-01-15 23:31:32 +00:00
|
|
|
|
2012-02-06 10:10:31 +00:00
|
|
|
%prep
|
2010-12-01 13:52:03 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:31:32 +00:00
|
|
|
|
|
|
|
%build
|
2014-08-05 13:10:30 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2007-01-15 23:31:32 +00:00
|
|
|
|
2010-12-01 13:52:03 +00:00
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
2007-01-15 23:31:32 +00:00
|
|
|
%install
|
2014-08-05 13:10:30 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2010-12-01 13:52:03 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:32 +00:00
|
|
|
|
2010-12-01 13:52:03 +00:00
|
|
|
%files -f %{name}.files
|
2014-08-05 13:10:30 +00:00
|
|
|
%defattr(-,root,root,755)
|
2015-04-15 04:55:03 +00:00
|
|
|
%doc Changes LICENSE README.md TODO
|
2008-06-23 23:10:41 +00:00
|
|
|
|
2007-03-09 00:50:55 +00:00
|
|
|
%changelog
|