Blob Blame History Raw
Name:           perl-Params-Check
Version:        0.26
Release:        2%{?dist}
Summary:        Generic input parsing/checking mechanism
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Params-Check/
Source0:        http://www.cpan.org/authors/id/K/KA/KANE/Params-Check-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Locale::Maketext::Simple)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Params::Check is a generic input parsing/checking mechanism.

%prep
%setup -q -n Params-Check-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc CHANGES README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Mon Dec 31 2007 Ralf Cors├ępius <rc040203@freenet.de> 0.26-2
- BR: perl(Test::More) (BZ 419631).
- Adjust License-tag. 

* Fri Mar 23 2007 Steven Pritchard <steve@kspei.com> 0.26-1
- Update to 0.26.
- Use fixperms macro instead of our own chmod incantation.
- BR ExtUtils::MakeMaker.

* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.25-2
- Fix find option order.

* Fri Jul 07 2006 Steven Pritchard <steve@kspei.com> 0.25-1
- Update to 0.25.

* Thu Mar 23 2006 Steven Pritchard <steve@kspei.com> 0.24-1
- Specfile autogenerated by cpanspec 1.62.
- Fix License.
- Drop explicit Requires: perl(Locale::Maketext::Simple).
- Clean up Summary a little.