Import perl-Parallel-ForkManager.
This commit is contained in:
parent
643b9d4b35
commit
5fb12e14f9
@ -0,0 +1 @@
|
||||
Parallel-ForkManager-0.7.5.tar.gz
|
||||
63
perl-Parallel-ForkManager.spec
Normal file
63
perl-Parallel-ForkManager.spec
Normal file
@ -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 <tibbs@math.uh.edu> 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.
|
||||
Loading…
Reference in New Issue
Block a user