diff --git a/.cvsignore b/.cvsignore index e69de29..bc5ab51 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +IPC-Run3-0.037.tar.gz diff --git a/Makefile b/Makefile index cc27b3c..8ff5e95 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -# Makefile for source rpm: perl-IPC-RUN3 +# Makefile for source rpm: perl-IPC-Run3 # $Id$ -NAME := perl-IPC-RUN3 +NAME := perl-IPC-Run3 SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common diff --git a/perl-IPC-Run3.spec b/perl-IPC-Run3.spec new file mode 100644 index 0000000..8a827a7 --- /dev/null +++ b/perl-IPC-Run3.spec @@ -0,0 +1,57 @@ +Name: perl-IPC-Run3 +Version: 0.037 +Release: 2%{?dist} +Summary: Run a subprocess in batch mode (a la system) on Unix, Win32, etc +License: GPL+ or BSD or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/IPC-Run3/ +Source0: http://www.cpan.org/modules/by-module/IPC/IPC-Run3-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +# For improved tests +BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module allows you to run a subprocess and redirect stdin, stdout, +and/or stderr to files and perl data structures. It aims to satisfy 99% of +the need for using system, qx, and open3 with a simple, extremely Perlish +API and none of the bloat and rarely used features of IPC::Run. + +%prep +%setup -q -n IPC-Run3-%{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 -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 LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Sep 07 2007 Ralf Corsépius 0.037-2 +- Initial import. +- Update license tag. + +* Tue Aug 07 2007 Ralf Corsépius 0.037-1 +- Initial submission. diff --git a/sources b/sources index e69de29..37937de 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +075b81f65ebc22faa6641893d5a9d174 IPC-Run3-0.037.tar.gz