109 lines
3.2 KiB
RPMSpec
109 lines
3.2 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: perl-IPC-Run
|
|
Version: 20220807.0
|
|
Release: 1
|
|
Summary: System() and background procs w/ piping, redirs, ptys (Unix, Win32)
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/IPC-Run/
|
|
Source0: http://www.cpan.org/authors/id/T/TO/TODDR/IPC-Run-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
# Build
|
|
BuildRequires: coreutils
|
|
BuildRequires: findutils
|
|
BuildRequires: make
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: sed
|
|
# IO::Pty not needed strictly for build script
|
|
# Run-time:
|
|
# base not used on Linux
|
|
BuildRequires: perl(bytes)
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(constant)
|
|
BuildRequires: perl(Data::Dumper)
|
|
BuildRequires: perl(Errno)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(Fcntl)
|
|
BuildRequires: perl(File::Basename)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(IO::Handle)
|
|
BuildRequires: perl(IO::Pty) >= 1.08
|
|
BuildRequires: perl(POSIX)
|
|
BuildRequires: perl(Scalar::Util)
|
|
# Socket not used on Linux
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(Symbol)
|
|
# Text::ParseWords not used on Linux
|
|
BuildRequires: perl(vars)
|
|
BuildRequires: perl(warnings)
|
|
# Win32::Process not used on Linux
|
|
# Win32API::File not used on Linux
|
|
# Tests:
|
|
# B not used on Linux
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(Encode)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl(IO::Tty)
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
# Runtime
|
|
Requires: perl(Data::Dumper)
|
|
Requires: perl(File::Basename)
|
|
Requires: perl(IO::Pty) >= 1.08
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
%description
|
|
IPC::Run allows you to 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.
|
|
%package help
|
|
Summary : System() and background procs w/ piping, redirs, ptys (Unix, Win32)
|
|
Provides: perl-IPC-Run-doc
|
|
%description help
|
|
IPC::Run allows you to 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.
|
|
|
|
%prep
|
|
%setup -q -n IPC-Run-%{version}
|
|
rm -f lib/IPC/Run/Win32*
|
|
sed -i -e '/^lib\/IPC\/Run\/Win32.*/d' MANIFEST
|
|
rm -f t/win32_*
|
|
sed -i -e '/^t\/win32_.*/d' MANIFEST
|
|
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
|
|
export PERL_MM_OPT=""
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make pure_install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changelog eg/ README.md
|
|
%{perl_vendorlib}/*
|
|
|
|
%files help
|
|
%{_mandir}/*
|
|
|
|
%changelog
|
|
* Mon Sep 11 2023 chenchen <chen_aka_jan@163.com> - 20220807.0-1
|
|
- Upgrade to version 20220807
|
|
|
|
* Mon Mar 08 2021 Perl_Bot <Perl_Bot@openeuler.org> 20200505.0-1
|
|
- Specfile autogenerated by Perl_Bot
|