3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Proc::Wait3 - Perl extension for wait3 system call
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Proc/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: d87ce5f3557eb86bfa5bafb9f2e028e3
17 # generic URL, check or change before uncommenting
18 #URL: http://search.cpan.org/dist/Proc-Wait3/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 If any child processes have exited, this call will "reap" the zombies
27 similar to the perl "wait" function.
29 By default, it will return immediately and if there are no dead
30 children, everything will be undefined. If you pass in a true
31 argument, it will block until a child exits (or it gets a signal).
33 $pid PID of exiting child
35 $status exit status of child, just like C<$?>
37 $utime floating point user cpu seconds
39 $stime floating point system cpu seconds
41 $maxrss the maximum resident set size utilized (in kilobytes).
43 $minflt the number of page faults serviced without any I/O
44 activity; here I/O activity is avoided by "reclaiming" a
45 page frame from the list of pages awaiting reallocation.
47 $majflt the number of page faults serviced that required I/O
50 $nswap the number of times a process was "swapped" out of main
53 $inblock the number of times the file system had to perform input.
55 $oublock the number of times the file system had to perform output.
57 $msgsnd the number of messages sent over sockets.
59 $msgrcv the number of messages received from sockets.
61 $nsignals the number of signals delivered.
63 $nvcsw the number of times a context switch resulted due to a
64 process voluntarily giving up the processor before its
65 time slice was completed (usually to await availability of
68 $nivcsw the number of times a context switch resulted due to a
69 higher priority process becoming runnable or because the
70 current process exceeded its time slice.
74 # %description -l pl.UTF-8
78 %setup -q -n %{pdir}-%{pnam}-%{version}
81 %{__perl} Makefile.PL \
85 OPTIMIZE="%{rpmcflags}"
87 %{?with_tests:%{__make} test}
90 rm -rf $RPM_BUILD_ROOT
92 %{__make} pure_install \
93 DESTDIR=$RPM_BUILD_ROOT
96 rm -rf $RPM_BUILD_ROOT
99 %defattr(644,root,root,755)
101 %{perl_vendorarch}/Proc/*.pm
102 %dir %{perl_vendorarch}/auto/Proc/Wait3
103 %attr(755,root,root) %{perl_vendorarch}/auto/Proc/Wait3/*.so