96 lines
2.8 KiB
RPMSpec
96 lines
2.8 KiB
RPMSpec
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
|
|
|
|
Name: perl-IPC-Run
|
|
Version: 0.78
|
|
Release: 1
|
|
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/RB/RBS/IPC-Run-0.78.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: perl(IO::Tty)
|
|
|
|
%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
|
|
|
|
# Create our own find-requires to avoid some nasty Win32 specific dependencies.
|
|
%define _use_internal_dependency_generator 0
|
|
cat <<EOF > %{name}-findreq
|
|
#!/bin/sh
|
|
%{__find_requires} | grep -v 'perl(Win32'
|
|
EOF
|
|
%define __find_requires %{_builddir}/IPC-Run-%{version}/%{name}-findreq
|
|
chmod +x %{__find_requires}
|
|
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install \
|
|
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
|
|
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
|
|
find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
|
|
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
%check || :
|
|
make test
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes
|
|
%{perl_vendorlib}/IPC
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
%changelog
|
|
* 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.
|