3 %bcond_without tests # do not perform "make test"
6 %define pnam SharedFork
7 Summary: Test::SharedFork - fork test
8 Summary(pl.UTF-8): Test::SharedFork - testowanie funkcji fork
9 Name: perl-Test-SharedFork
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 3101aea2e3ae41d48fd8874414430cef
17 URL: http://search.cpan.org/dist/Test-SharedFork/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.64
19 BuildRequires: perl-devel >= 1:5.8.1
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Test-Requires
23 BuildRequires: perl-Test-Simple >= 0.88
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Test::SharedFork is utility module for Test::Builder.
31 This module makes fork(2) safety in your test case.
33 This module merges test count with parent process & child process.
35 %description -l pl.UTF-8
36 Test::SharedFork to moduł narzędziowy dla modułu Test::Builder.
38 Ten moduł czyni wywołanie fork(2) bezpiecznym w przypadkach testowych.
39 Łączy liczbę testów z procesu rodzica z procesami potomnymi.
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc Changes README.md
63 %{perl_vendorlib}/Test/SharedFork.pm
64 %{perl_vendorlib}/Test/SharedFork
65 %{_mandir}/man3/Test::SharedFork.3pm*