3 %bcond_without tests # unit tests
7 Summary: Test::Fork - test code which forks
8 Summary(pl.UTF-8): Test::Fork - testowanie kodu, który rozgałęzia procesy
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: ac77c9fec0f933db312d7b2fc9b3e7d1
17 URL: https://metacpan.org/release/Test-Fork
18 BuildRequires: perl-Module-Build >= 0.2808
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl(Test::Builder::Module) >= 0.02
24 BuildRequires: perl-Test-Builder-Tester >= 1.02
25 BuildRequires: perl-Test-Simple >= 0.62
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 THIS IS ALPHA CODE! The implementation is unreliable and the interface
34 Because each test has a number associated with it, testing code which
35 forks is problematic. Coordinating the test number amongst the parent
36 and child processes is complicated. Test::Fork provides a function to
37 smooth over the complications.
39 %description -l pl.UTF-8
40 TEN KOD JEST W STADIUM ALFA! Implementacja nie jest wiarygodna, a
41 interfejs może się zmienić.
43 Ponieważ każdy test ma powiązaną ze sobą liczbę, testowanie kodu,
44 który rozgałęzia procesy (wykonuje fork), jest problematyczne.
45 Koordynowanie numerów testów między procesy rodzica i potomka jest
46 skomplikowane. Test::Fork dostarcza funkcję, która zaciera te
50 %setup -q -n %{pdir}-%{pnam}-%{version}
54 destdir=$RPM_BUILD_ROOT \
58 %{?with_tests:./Build test}
61 rm -rf $RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/Test/Fork.pm
72 %{_mandir}/man3/Test::Fork.3pm*