diff --git a/.cvsignore b/.cvsignore index e69de29..edf4a53 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Params-Util-0.05.tar.gz diff --git a/perl-Params-Util.spec b/perl-Params-Util.spec new file mode 100644 index 0000000..f6b6f9f --- /dev/null +++ b/perl-Params-Util.spec @@ -0,0 +1,57 @@ +Name: perl-Params-Util +Version: 0.05 +Release: 2%{?dist} +Summary: Simple standalone param-checking functions +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Params-Util/ +Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Params-Util-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(Test::More) >= 0.47 +BuildRequires: perl(File::Spec) >= 0.82 +BuildRequires: perl(Scalar::Util) >= 1.11 +BuildRequires: perl(ExtUtils::AutoInstall) >= 0.49 + +# Required by the tests +BuildRequires: perl(Test::Pod) >= 1.00 + +%description +Params::Util provides a basic set of importable functions that +makes checking parameters a hell of a lot easier. + +%prep +%setup -q -n Params-Util-%{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 -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE +%{perl_vendorlib}/Params +%{_mandir}/man3/* + +%changelog +* Tue Sep 14 2005 Ralf Corsepius - 0.05-2 +- Add BR: perl(ExtUtils::AutoInstall) and core deps. + +* Tue Sep 14 2005 Ralf Corsepius - 0.05-1 +- Initial version. diff --git a/sources b/sources index e69de29..de5176c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5d3f1abd93c0fec2e7cfe37d30ce48dc Params-Util-0.05.tar.gz