3 %bcond_without tests # do not perform "make test"
7 Summary: Proc::Wait3 - Perl extension for wait3 system call
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Proc/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 41e6db9547b3f2c858d1982f6c278a1b
15 URL: http://search.cpan.org/dist/Proc-Wait3/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 If any child processes have exited, this call will "reap" the zombies
22 similar to the perl "wait" function.
24 By default, it will return immediately and if there are no dead
25 children, everything will be undefined. If you pass in a true
26 argument, it will block until a child exits (or it gets a signal).
28 $pid PID of exiting child
30 $status exit status of child, just like C<$?>
32 $utime floating point user cpu seconds
34 $stime floating point system cpu seconds
36 $maxrss the maximum resident set size utilized (in kilobytes).
38 $minflt the number of page faults serviced without any I/O
39 activity; here I/O activity is avoided by "reclaiming" a
40 page frame from the list of pages awaiting reallocation.
42 $majflt the number of page faults serviced that required I/O
45 $nswap the number of times a process was "swapped" out of main
48 $inblock the number of times the file system had to perform input.
50 $oublock the number of times the file system had to perform output.
52 $msgsnd the number of messages sent over sockets.
54 $msgrcv the number of messages received from sockets.
56 $nsignals the number of signals delivered.
58 $nvcsw the number of times a context switch resulted due to a
59 process voluntarily giving up the processor before its
60 time slice was completed (usually to await availability of
63 $nivcsw the number of times a context switch resulted due to a
64 higher priority process becoming runnable or because the
65 current process exceeded its time slice.
69 # %description -l pl.UTF-8
73 %setup -q -n %{pdir}-%{pnam}-%{version}
76 %{__perl} Makefile.PL \
80 OPTIMIZE="%{rpmcflags}"
82 %{?with_tests:%{__make} test}
85 rm -rf $RPM_BUILD_ROOT
87 %{__make} pure_install \
88 DESTDIR=$RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
96 %{perl_vendorarch}/Proc/*.pm
97 %dir %{perl_vendorarch}/auto/Proc/Wait3
98 %attr(755,root,root) %{perl_vendorarch}/auto/Proc/Wait3/*.so