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.
This commit is contained in:
Steven Pritchard 2009-01-17 01:27:59 +00:00
parent 2cf63bef23
commit 40f77a4271
3 changed files with 30 additions and 23 deletions

View File

@ -1 +1 @@
IPC-Run-0.80.tar.gz IPC-Run-0.82.tar.gz

View File

@ -1,17 +1,16 @@
Name: perl-IPC-Run Name: perl-IPC-Run
Version: 0.80 Version: 0.82
Release: 5%{?dist} Release: 1%{?dist}
Summary: Perl module for interacting with child processes Summary: Perl module for interacting with child processes
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/IPC-Run/ 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) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::Pty) BuildRequires: perl(IO::Pty) >= 1.00
BuildRequires: perl(Test::More) >= 0.47
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
@ -22,45 +21,53 @@ both supported and may be mixed.
Various redirection operators reminiscent of those seen on common Unix Various redirection operators reminiscent of those seen on common Unix
and DOS command lines are provided. and DOS command lines are provided.
%prep %prep
%setup -q -n IPC-Run-%{version} %setup -q -n IPC-Run-%{version}
chmod 644 lib/IPC/*.pm lib/IPC/Run/*.pm Changes eg/* 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 %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$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 ';' find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
chmod -R u+w $RPM_BUILD_ROOT/* 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%{perl_vendorlib}/IPC/Run/Win32*.pm
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/IPC::Run::Win32*.3* rm -f $RPM_BUILD_ROOT%{_mandir}/man3/IPC::Run::Win32*.3*
%check %check
# https://rt.cpan.org/NoAuth/Bug.html?id=11129 # https://rt.cpan.org/NoAuth/Bug.html?id=11129
[ ! -d /dev/pts ] || IPCRUNDEBUG=2 make test [ ! -d /dev/pts ] || IPCRUNDEBUG=2 make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes TODO eg/ %doc Changes LICENSE README TODO
%{perl_vendorlib}/IPC/ %doc abuse/ eg/
%{_mandir}/man3/IPC::Run*.3* %{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog %changelog
* Fri Jan 16 2009 Steven Pritchard <steve@kspei.com> 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 <tcallawa@redhat.com> - 0.80-5 * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.80-5
- Rebuild for perl 5.10 (again) - Rebuild for perl 5.10 (again)

View File

@ -1 +1 @@
a867e694862afd4a3c429124618fc15e IPC-Run-0.80.tar.gz 6eb9fa0058956ece7fdf25c6ec395288 IPC-Run-0.82.tar.gz