perl-Params-Validate/perl-Params-Validate.spec

74 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Params-Validate (Version 0.94)
#
# 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
Url: http://cpan.org/modules/by-module/Params/
License: GPLv2+
Group: Development/Libraries/Perl
Requires: perl = %{perl_version}
#Conflicts: perlmod
AutoReqProv: on
Version: 0.94
Release: 1
Source: Params-Validate-%{version}.tar.bz2
Summary: provides a system for validation method/function call parameters
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Params::Validate module provides a flexible system for validation
method/function call parameters. The validation can be as simple as
checking for the presence of required parameters or as complex as
validating object classes (via isa) or capabilities (via can), checking
parameter types, and using customized callbacks to ensure data
integrity.
Authors:
--------
Dave Rolsky
%prep
%setup -q -n Params-Validate-%{version}
%build
perl Build.PL installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_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