%global pkgname Proc-Queue
Name: perl-Proc-Queue
Version: 1.23
Release: 1%{?dist}
Summary: Limit the number of child processes running
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Proc-Queue/
Source0: http://www.cpan.org/authors/id/S/SA/SALVA/%{pkgname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This module lets you parallelise a perl program using the fork, exit, wait
and waitpid calls as usual but without taking care of creating too many
processes and overloading the machine.
%prep
%setup -qn %{pkgname}-%{version}
iconv --from=ISO-8859-1 --to=UTF-8 README > README.new && \
touch -r README README.new && \
mv README.new README
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*
%check
make test
%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sat May 25 2013 Christopher Meng <rpm@cicku.me> - 1.23-1
- Initial Package.