3 %bcond_without tests # do not perform "make test"
6 Summary: prefork - optimize module loading across forking and non-forking scenarios
7 Summary(pl.UTF-8): prefork - optymalizacja ładowania modułów dla rozwidlonych i nierozwidlonych scenariuszy
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/E/ET/ETHER/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 60d97a66a1e6e4ccfa51f8662a511048
16 URL: https://metacpan.org/release/prefork
17 BuildRequires: perl-ExtUtils-MakeMaker >= 6.24-2
19 BuildRequires: perl-Scalar-List-Utils >= 0.18
20 BuildRequires: perl-Test-Simple
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: rpmbuild(macros) >= 1.745
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The prefork pragma is intended to allow module writers to optimise
30 module loading for both scenarios with as little additional code as
33 The prefork.pm is intended to serve as a central and optional
34 marshalling point for state detection (are we running in procedural or
35 pre-forking mode) and to act as a relatively light-weight module
38 %description -l pl.UTF-8
39 prefork ma umożliwić piszącym moduły zoptymalizowanie ładowania
40 modułów dla obu scenariuszy przy użyciu jak najmniejszego dodatkowego
43 prefork.pm ma służyć jako centralny i opcjonalnie prowadzący punkt dla
44 wykrywania stanów (czy program działa w trybie proceduralnym, czy
45 pre-fork) i działać jako relatywnie lekki moduł do wczytywania
49 %setup -q -n %{pdir}-%{version}
52 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
64 #rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
65 #rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/prefork/.packlist
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %{perl_vendorlib}/prefork.pm
74 %{_mandir}/man3/prefork.3pm*