118 lines
3.6 KiB
RPMSpec
118 lines
3.6 KiB
RPMSpec
Name: perl-IPC-Run
|
|
Version: 0.80
|
|
Release: 5%{?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
|
|
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))
|
|
|
|
%description
|
|
IPC::Run allows you run and interact with child processes using files,
|
|
pipes, and pseudo-ttys. Both system()-style and scripted usages are
|
|
supported and may be mixed. Likewise, functional and OO API styles are
|
|
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
|
|
|
|
|
|
%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/*
|
|
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*
|
|
|
|
|
|
%changelog
|
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.80-5
|
|
- Rebuild for perl 5.10 (again)
|
|
|
|
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.80-4
|
|
- rebuild for new perl
|
|
|
|
* Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.80-3
|
|
- BuildRequire perl(ExtUtils::MakeMaker).
|
|
|
|
* Wed Aug 30 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.80-2
|
|
- Fix order of arguments to find(1).
|
|
|
|
* Thu May 11 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.80-1
|
|
- 0.80, fine tune build dependencies.
|
|
|
|
* Tue Jan 17 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.79-3
|
|
- Rebuild, cosmetic cleanups.
|
|
|
|
* Sun Apr 10 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.79-2
|
|
- Exclude Win32 specific modules.
|
|
- Include more docs.
|
|
- Skip tests if /dev/pts doesn't exist.
|
|
|
|
* Sat Apr 2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.79-1
|
|
- 0.79.
|
|
|
|
* Sat Apr 2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.78-2
|
|
- Sync with fedora-rpmdevtools' Perl spec template.
|
|
- Improve dependency filtering script.
|
|
|
|
* Sun Mar 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.78-0.fdr.1
|
|
- Update to 0.78.
|
|
|
|
* Sun Feb 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.4
|
|
- Reduce directory ownership bloat.
|
|
|
|
* Fri Nov 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.3
|
|
- BuildRequire perl-IO-Tty for better test coverage.
|
|
|
|
* Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.2
|
|
- Fix typo in dependency filtering scriptlet.
|
|
|
|
* Sat Sep 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.77-0.fdr.1
|
|
- Update to 0.77.
|
|
|
|
* Fri Sep 5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.75-0.fdr.3
|
|
- Avoid Win32-specific dependencies.
|
|
- Use PERL_INSTALL_ROOT.
|
|
|
|
* Sun Aug 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.75-0.fdr.2
|
|
- Install into vendor dirs.
|
|
|
|
* Thu Jun 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.75-0.fdr.1
|
|
- First build.
|