!2 Upgrade to version 20220807.0
From: @chen-jan Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
11653e0c8f
Binary file not shown.
BIN
IPC-Run-20220807.0.tar.gz
Normal file
BIN
IPC-Run-20220807.0.tar.gz
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: perl-IPC-Run
|
||||
Version: 20200505.0
|
||||
Version: 20220807.0
|
||||
Release: 1
|
||||
Summary: System() and background procs w/ piping, redirs, ptys (Unix, Win32)
|
||||
License: GPL+ or Artistic
|
||||
@ -8,15 +8,49 @@ 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(Readonly)
|
||||
BuildRequires: perl(Readonly::Array)
|
||||
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(Readonly)
|
||||
Requires: perl(Test::More) >= 0.47
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
%description
|
||||
IPC::Run allows you to run and interact with child processes using files,
|
||||
@ -31,6 +65,7 @@ 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*
|
||||
@ -40,52 +75,34 @@ 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
|
||||
export PERL_MM_OPT=""
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
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 \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
pushd %{buildroot}
|
||||
touch filelist.lst
|
||||
if [ -d usr/bin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ];then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ];then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib ];then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f filelist.lst
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changelog LICENSE META.json README.md
|
||||
%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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user