+ Disable XS version on cygwin as it shows bizarre behaviour that breaks form when using Params::Util XS verwion. OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Params-Util?expand=0&rev=21
84 lines
2.9 KiB
RPMSpec
84 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Params-Util
|
|
#
|
|
# Copyright (c) 2012 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/
|
|
#
|
|
|
|
|
|
Name: perl-Params-Util
|
|
Version: 1.07
|
|
Release: 0
|
|
%define cpan_name Params-Util
|
|
Summary: Simple, compact and correct param-checking functions
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/Params-Util/
|
|
Source: http://www.cpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(ExtUtils::CBuilder) >= 0.27
|
|
#BuildRequires: perl(A)
|
|
#BuildRequires: perl(Params::Util)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
'Params::Util' provides a basic set of importable functions that makes
|
|
checking parameters a hell of a lot easier
|
|
|
|
While they can be (and are) used in other contexts, the main point behind
|
|
this module is that the functions *both* Do What You Mean, and Do The Right
|
|
Thing, so they are most useful when you are getting params passed into your
|
|
code from someone and/or somewhere else and you can't really trust the
|
|
quality.
|
|
|
|
Thus, 'Params::Util' is of most use at the edges of your API, where params
|
|
and data are coming in from outside your code.
|
|
|
|
The functions provided by 'Params::Util' check in the most strictly correct
|
|
manner known, are documented as thoroughly as possible so their exact
|
|
behaviour is clear, and heavily tested so make sure they are not fooled by
|
|
weird data and Really Bad Things.
|
|
|
|
To use, simply load the module providing the functions you want to use as
|
|
arguments (as shown in the SYNOPSIS).
|
|
|
|
To aid in maintainability, 'Params::Util' will *never* export by default.
|
|
|
|
You must explicitly name the functions you want to export, or use the
|
|
':ALL' param to just have it export everything (although this is not
|
|
recommended if you have any _FOO functions yourself with which future
|
|
additions to 'Params::Util' may clash)
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes LICENSE MYMETA.json README
|
|
|
|
%changelog
|