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:
parent
2cf63bef23
commit
40f77a4271
@ -1 +1 @@
|
||||
IPC-Run-0.80.tar.gz
|
||||
IPC-Run-0.82.tar.gz
|
||||
|
@ -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 <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
|
||||
- Rebuild for perl 5.10 (again)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user