perl-Params-Validate/perl-Params-Validate.spec
Vítězslav Čížek 22afca5919 - update to 1.00
- Fix documentation indexing on search.cpan.org. Reported by Lutz Gehlen. RT
  #68756.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=17
2011-06-13 08:21:36 +00:00

84 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-Params-Validate
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Params-Validate
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Validate method/function parameters
Version: 1.00
Release: 1
License: Artistic 2.0
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
%{perl_requires}
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(Attribute::Handlers) >= 0.79
Requires: perl(Test::More) >= 0.34
Requires: perl(Scalar::Util) >= 1.10
%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.
Authors:
--------
Dave Rolsky
%prep
%setup -q -n %{cpan_name}-%{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
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes LICENSE README
%changelog