]> git.pld-linux.org Git - packages/perl-prefork.git/blame - perl-prefork.spec
- updated to 1.05
[packages/perl-prefork.git] / perl-prefork.spec
CommitLineData
068f30b1 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
068f30b1 5%define pdir prefork
5bdcbbb3 6Summary: prefork - optimize module loading across forking and non-forking scenarios
3c6430de 7Summary(pl.UTF-8): prefork - optymalizacja ładowania modułów dla rozwidlonych i nierozwidlonych scenariuszy
068f30b1 8Name: perl-prefork
6f0b29d2 9Version: 1.05
1e96d730 10Release: 1
068f30b1 11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
6f0b29d2
JB
14Source0: http://www.cpan.org/modules/by-authors/id/E/ET/ETHER/%{pdir}-%{version}.tar.gz
15# Source0-md5: 60d97a66a1e6e4ccfa51f8662a511048
16URL: https://metacpan.org/release/prefork
1e96d730 17BuildRequires: perl-ExtUtils-MakeMaker >= 6.24-2
6f0b29d2
JB
18%if %{with tests}
19BuildRequires: perl-Scalar-List-Utils >= 0.18
20BuildRequires: perl-Test-Simple
21%endif
068f30b1 22BuildRequires: perl-devel >= 1:5.8.0
23BuildRequires: rpm-perlprov >= 4.1-13
6f0b29d2 24BuildRequires: rpmbuild(macros) >= 1.745
068f30b1 25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
5bdcbbb3 29The prefork pragma is intended to allow module writers to optimise
30module loading for both scenarios with as little additional code as
31possible.
32
33The prefork.pm is intended to serve as a central and optional
34marshalling point for state detection (are we running in procedural or
35pre-forking mode) and to act as a relatively light-weight module
36loader.
068f30b1 37
783de382
JR
38%description -l pl.UTF-8
39prefork ma umożliwić piszącym moduły zoptymalizowanie ładowania
40modułów dla obu scenariuszy przy użyciu jak najmniejszego dodatkowego
30eed17c
JB
41kodu.
42
783de382
JR
43prefork.pm ma służyć jako centralny i opcjonalnie prowadzący punkt dla
44wykrywania stanów (czy program działa w trybie proceduralnym, czy
45pre-fork) i działać jako relatywnie lekki moduł do wczytywania
46modułów.
068f30b1 47
48%prep
49%setup -q -n %{pdir}-%{version}
50
51%build
6f0b29d2 52%{__perl} Makefile.PL \
068f30b1 53 INSTALLDIRS=vendor
54%{__make}
55
56%{?with_tests:%{__make} test}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
63
6f0b29d2
JB
64#rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
65#rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/prefork/.packlist
1e96d730 66
068f30b1 67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
72%doc Changes
6f0b29d2
JB
73%{perl_vendorlib}/prefork.pm
74%{_mandir}/man3/prefork.3pm*
This page took 0.076163 seconds and 4 git commands to generate.