OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Validate?expand=0&rev=9
85 lines
2.5 KiB
RPMSpec
85 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package perl-Params-Validate (Version 0.95)
|
|
#
|
|
# Copyright (c) 2010 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: 0.95
|
|
Release: 1
|
|
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)
|
|
%{perl_requires}
|
|
Requires: perl(Attribute::Handlers) >= 0.79
|
|
Requires: perl(Test::More) >= 0.34
|
|
Requires: perl(Scalar::Util) >= 1.10
|
|
Provides: %{cpan_name}
|
|
|
|
%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 SIGNATURE
|
|
|
|
%changelog
|