SPECS: perl-Parallel-ForkManager.spec (NEW) - new
glen
glen at pld-linux.org
Sat Jul 16 16:58:07 CEST 2005
Author: glen Date: Sat Jul 16 14:58:07 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-Parallel-ForkManager.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Parallel-ForkManager.spec
diff -u /dev/null SPECS/perl-Parallel-ForkManager.spec:1.1
--- /dev/null Sat Jul 16 16:58:07 2005
+++ SPECS/perl-Parallel-ForkManager.spec Sat Jul 16 16:58:02 2005
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Parallel
+%define pnam ForkManager
+Summary: Parallel::ForkManager - A simple parallel processing fork manager
+Name: perl-Parallel-ForkManager
+Version: 0.7.5
+Release: 0.3
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: ec12f36370329e2c235284f5cb4ed427
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+mv $RPM_BUILD_ROOT{%{perl_vendorlib}/Parallel/ForkManager/*.pl,%{_examplesdir}/%{name}-%{version}}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes TODO
+%dir %{perl_vendorlib}/Parallel
+%{perl_vendorlib}/Parallel/*.pm
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2005/07/16 14:58:02 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list