Files
perl-Proc-Wait3/perl-Proc-Wait3.spec

104 lines
3.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Proc-Wait3
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Proc-Wait3
Name: perl-Proc-Wait3
Version: 0.50.0
Release: 0
# 0.05 -> normalize -> 0.50.0
%define cpan_version 0.05
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl extension for wait3 system call
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CT/CTILMES/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:16:46 +02:00
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Proc::Wait3) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
If any child processes have exited, this call will "reap" the zombies
similar to the perl "wait" function.
By default, it will return immediately and if there are no dead children,
everything will be undefined. If you pass in a true argument, it will block
until a child exits (or it gets a signal).
$pid PID of exiting child
$status exit status of child, just like C<$?>
$utime floating point user cpu seconds
$stime floating point system cpu seconds
$maxrss the maximum resident set size utilized (in kilobytes).
$minflt the number of page faults serviced without any I/O
activity; here I/O activity is avoided by "reclaiming" a
page frame from the list of pages awaiting reallocation.
$majflt the number of page faults serviced that required I/O
activity.
$nswap the number of times a process was "swapped" out of main
memory.
$inblock the number of times the file system had to perform input.
$oublock the number of times the file system had to perform output.
$msgsnd the number of messages sent over sockets.
$msgrcv the number of messages received from sockets.
$nsignals the number of signals delivered.
$nvcsw the number of times a context switch resulted due to a
process voluntarily giving up the processor before its
time slice was completed (usually to await availability of
a resource).
$nivcsw the number of times a context switch resulted due to a
higher priority process becoming runnable or because the
current process exceeded its time slice.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog