Upgrade to version 20220807.0

This commit is contained in:
chen-jan 2023-09-11 10:30:21 +08:00
parent dc7631882a
commit 5136e00011
3 changed files with 50 additions and 33 deletions

Binary file not shown.

BIN
IPC-Run-20220807.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: perl-IPC-Run Name: perl-IPC-Run
Version: 20200505.0 Version: 20220807.0
Release: 1 Release: 1
Summary: System() and background procs w/ piping, redirs, ptys (Unix, Win32) Summary: System() and background procs w/ piping, redirs, ptys (Unix, Win32)
License: GPL+ or Artistic License: GPL+ or Artistic
@ -8,15 +8,49 @@ Group: Development/Libraries
URL: http://search.cpan.org/dist/IPC-Run/ URL: http://search.cpan.org/dist/IPC-Run/
Source0: http://www.cpan.org/authors/id/T/TO/TODDR/IPC-Run-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/T/TO/TODDR/IPC-Run-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) 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(IO::Pty) >= 1.08
BuildRequires: perl(Readonly) BuildRequires: perl(POSIX)
BuildRequires: perl(Readonly::Array) 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 BuildRequires: perl(Test::More) >= 0.47
# Runtime
Requires: perl(Data::Dumper)
Requires: perl(File::Basename)
Requires: perl(IO::Pty) >= 1.08 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)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
IPC::Run allows you to run and interact with child processes using files, 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 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. Likewise, functional and OO API styles are both
supported and may be mixed. supported and may be mixed.
%prep %prep
%setup -q -n IPC-Run-%{version} %setup -q -n IPC-Run-%{version}
rm -f lib/IPC/Run/Win32* 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 for file in eg/run_daemon abuse/timers abuse/blocking_debug_with_sub_coprocess ; do
perl -pi -e 's,^#!.*/perl,%{__perl}, if ($. == 1)' "$file" perl -pi -e 's,^#!.*/perl,%{__perl}, if ($. == 1)' "$file"
done done
%build %build
export PERL_MM_OPT="" export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
export PERL_MM_OPT="" make pure_install DESTDIR=%{buildroot}
rm -rf $RPM_BUILD_ROOT 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 %check
make test make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changelog LICENSE META.json README.md %doc Changelog eg/ README.md
%{perl_vendorlib}/* %{perl_vendorlib}/*
%files help %files help
%{_mandir}/* %{_mandir}/*
%changelog %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 * Mon Mar 08 2021 Perl_Bot <Perl_Bot@openeuler.org> 20200505.0-1
- Specfile autogenerated by Perl_Bot - Specfile autogenerated by Perl_Bot