3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Linux::Pid - Get the native PID and the PPID on Linux
9 Summary(pl): Linux::Pid - uzyskiwanie natywnych PID i PPID pod Linuksem
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: af1d6dee6ee94cc8c1847172501b468e
17 BuildRequires: perl-devel >= 5.6
18 %if %{?_without_tests:0}%{!?_without_tests:1}
19 BuildRequires: perl-Inline-C
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Linux::Pid gets the native PID and the PPID on Linux. It's useful with
27 multithreaded programs. Linux's C library returns different values of
28 the PID and the PPID from different threads. This module forces Perl
29 to call the underlying C functions getpid() and getppid().
32 Linux::Pid odczytuje natywne PID i PPID pod Linuksem. Jest przydatny w
33 programach wielow±tkowych. Linuksowa biblioteka C zwraca ró¿ne
34 warto¶ci PID i PPID dla ró¿nych w±tków. Ten modu³ zmusza Perla do
35 wywo³ania funkcji C getpid() i getppid().
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{!?_without_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %{perl_vendorarch}/%{pdir}/*.pm
58 %dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}
59 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/%{pnam}/*.so