From 5fb12e14f98aa8f99b5e1e44ca30fed102cf3c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20=E3=83=86=E3=82=A3=E3=83=93=E3=83=84?= Date: Thu, 17 Jan 2008 03:41:36 +0000 Subject: [PATCH] Import perl-Parallel-ForkManager. --- .cvsignore | 1 + perl-Parallel-ForkManager.spec | 63 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 perl-Parallel-ForkManager.spec diff --git a/.cvsignore b/.cvsignore index e69de29..fd1b2a2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Parallel-ForkManager-0.7.5.tar.gz diff --git a/perl-Parallel-ForkManager.spec b/perl-Parallel-ForkManager.spec new file mode 100644 index 0000000..b7c619f --- /dev/null +++ b/perl-Parallel-ForkManager.spec @@ -0,0 +1,63 @@ +Name: perl-Parallel-ForkManager +Version: 0.7.5 +Release: 1%{?dist} +Summary: Simple parallel processing fork manager +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Parallel-ForkManager/ +Source0: http://www.cpan.org/modules/by-module/Parallel/Parallel-ForkManager-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module is intended for use in operations that can be done in parallel +where the number of processes to be forked off should be limited. Typical +use is a downloader which will be retrieving hundreds/thousands of files. + +%prep +%setup -q -n Parallel-ForkManager-%{version} + +# Prepare the example scripts for inclusion as documentation, as they are not +# generally useful and have additional dependencies. +mkdir examples +sed -i -e '1d' ForkManager/*.pl +chmod 644 ForkManager/*.pl +mv ForkManager/*.pl examples +rmdir ForkManager + +i=ForkManager.pm +iconv -f iso-8859-1 -t utf-8 < $i > $i. && touch -r $i $i. && mv -f $i. $i + +%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 TODO examples/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jan 16 2008 Jason Tibbitts 0.7.5-1 +- Specfile autogenerated by cpanspec 1.74. +- Make the .pl files documentation instead of installing them to avoid + additional dependencies. Also remove their shebang lines to quiet rpmlint. diff --git a/sources b/sources index e69de29..b8cf63d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ec12f36370329e2c235284f5cb4ed427 Parallel-ForkManager-0.7.5.tar.gz