Skip to content
Snippets Groups Projects
Commit 5b0a77f5 authored by Rocky Automation's avatar Rocky Automation :tv:
Browse files

import perl-IPC-System-Simple-1.30-15.el10

parent 7b1c8f29
No related branches found
No related merge requests found
......@@ -7,7 +7,7 @@
Name: perl-IPC-System-Simple
Version: 1.30
Release: 14%{?dist}
Release: 15%{?dist}
License: GPL-1.0-or-later OR Artistic-1.0-Perl
Summary: Run commands simply, with detailed diagnostics
URL: https://metacpan.org/release/IPC-System-Simple
......@@ -56,8 +56,22 @@ want to be really lazy, you can just write:
and all of your "system" commands will either succeed (run to completion and
return a zero exit value), or die with rich diagnostic messages.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n IPC-System-Simple-%{version}
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
# Avoid doc-file dependencies
chmod -c -x examples/*.pl
......@@ -70,6 +84,20 @@ make %{?_smp_mflags}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
set -e
DIR=$(mktemp -d)
pushd "$DIR"
cp -a %{_libexecdir}/%{name}/* ./
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd
rm -rf "$DIR"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%check
make test
......@@ -80,7 +108,13 @@ make test
%{perl_vendorlib}/IPC/
%{_mandir}/man3/IPC::System::Simple.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Wed Jul 24 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-15
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.30-14
- Bump release for June 2024 mass rebuild
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment