3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: prefork - optimize module loading across forking and non-forking scenarios
8 Summary(pl): prefork - optymalizacja ³adowania modu³ów dla rozwidlonych i nierozwidlonych scenariuszy
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/A/AD/ADAMK/%{pdir}-%{version}.tar.gz
16 # Source0-md5: 040b340931bd8190b87c81130ea5f8d0
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-ExtUtils-MakeMaker >= 6.24-2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The prefork pragma is intended to allow module writers to optimise
25 module loading for both scenarios with as little additional code as
28 The prefork.pm is intended to serve as a central and optional
29 marshalling point for state detection (are we running in procedural or
30 pre-forking mode) and to act as a relatively light-weight module
37 %setup -q -n %{pdir}-%{version}
40 %{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"%{pdir}")' \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/*.pm