From 40f77a427140231cd1378addb56f822b5d1fa6d4 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Sat, 17 Jan 2009 01:27:59 +0000 Subject: [PATCH] Update to 0.82. Use fixperms macro instead of our own chmod incantation. Fix Source0 URL. BR Test::More. Include LICENSE, README, and abuse/ in docs. Cleanup to more closely resemble cpanspec output. --- .cvsignore | 2 +- perl-IPC-Run.spec | 49 +++++++++++++++++++++++++++-------------------- sources | 2 +- 3 files changed, 30 insertions(+), 23 deletions(-) diff --git a/.cvsignore b/.cvsignore index 21fd77a..2809630 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -IPC-Run-0.80.tar.gz +IPC-Run-0.82.tar.gz diff --git a/perl-IPC-Run.spec b/perl-IPC-Run.spec index df0a059..b18b742 100644 --- a/perl-IPC-Run.spec +++ b/perl-IPC-Run.spec @@ -1,18 +1,17 @@ Name: perl-IPC-Run -Version: 0.80 -Release: 5%{?dist} +Version: 0.82 +Release: 1%{?dist} Summary: Perl module for interacting with child processes - License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/IPC-Run/ -Source0: http://www.cpan.org/authors/id/R/RS/RSOD/IPC-Run-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/IPC-Run-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(IO::Pty) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(IO::Pty) >= 1.00 +BuildRequires: perl(Test::More) >= 0.47 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description IPC::Run allows you run and interact with child processes using files, @@ -22,45 +21,53 @@ both supported and may be mixed. Various redirection operators reminiscent of those seen on common Unix and DOS command lines are provided. - %prep %setup -q -n IPC-Run-%{version} chmod 644 lib/IPC/*.pm lib/IPC/Run/*.pm Changes eg/* -%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' eg/run_daemon - +for file in eg/run_daemon abuse/timers abuse/blocking_debug_with_sub_coprocess ; do + %{__perl} -pi -e 's,^#!.*/perl,%{__perl}, if ($. == 1)' "$file" +done %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 ';' -chmod -R u+w $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/* + rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/IPC/Run/Win32*.pm rm -f $RPM_BUILD_ROOT%{_mandir}/man3/IPC::Run::Win32*.3* - %check # https://rt.cpan.org/NoAuth/Bug.html?id=11129 [ ! -d /dev/pts ] || IPCRUNDEBUG=2 make test - %clean rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root,-) -%doc Changes TODO eg/ -%{perl_vendorlib}/IPC/ -%{_mandir}/man3/IPC::Run*.3* - +%doc Changes LICENSE README TODO +%doc abuse/ eg/ +%{perl_vendorlib}/* +%{_mandir}/man3/* %changelog +* Fri Jan 16 2009 Steven Pritchard 0.82-1 +- Update to 0.82. +- Use fixperms macro instead of our own chmod incantation. +- Fix Source0 URL. +- BR Test::More. +- Include LICENSE, README, and abuse/ in docs. +- Cleanup to more closely resemble cpanspec output. + * Wed Feb 27 2008 Tom "spot" Callaway - 0.80-5 - Rebuild for perl 5.10 (again) diff --git a/sources b/sources index df771fe..74bff14 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a867e694862afd4a3c429124618fc15e IPC-Run-0.80.tar.gz +6eb9fa0058956ece7fdf25c6ec395288 IPC-Run-0.82.tar.gz