]> git.pld-linux.org Git - packages/perl-prefork.git/blame - perl-prefork.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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
66c8722c 9Version: 1.04
1e96d730 10Release: 1
068f30b1 11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
344a607e 14Source0: http://www.cpan.org/modules/by-authors/id/A/AD/ADAMK/%{pdir}-%{version}.tar.gz
66c8722c 15# Source0-md5: 47a514d4058ffc8cca184b28d6d54d0a
fcd3b897 16URL: http://search.cpan.org/dist/prefork/
1e96d730 17BuildRequires: perl-ExtUtils-MakeMaker >= 6.24-2
068f30b1 18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
068f30b1 20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
5bdcbbb3 24The prefork pragma is intended to allow module writers to optimise
25module loading for both scenarios with as little additional code as
26possible.
27
28The prefork.pm is intended to serve as a central and optional
29marshalling point for state detection (are we running in procedural or
30pre-forking mode) and to act as a relatively light-weight module
31loader.
068f30b1 32
783de382
JR
33%description -l pl.UTF-8
34prefork ma umożliwić piszącym moduły zoptymalizowanie ładowania
35modułów dla obu scenariuszy przy użyciu jak najmniejszego dodatkowego
30eed17c
JB
36kodu.
37
783de382
JR
38prefork.pm ma służyć jako centralny i opcjonalnie prowadzący punkt dla
39wykrywania stanów (czy program działa w trybie proceduralnym, czy
40pre-fork) i działać jako relatywnie lekki moduł do wczytywania
41modułów.
068f30b1 42
43%prep
44%setup -q -n %{pdir}-%{version}
45
46%build
47%{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"%{pdir}")' \
48 INSTALLDIRS=vendor
49%{__make}
50
51%{?with_tests:%{__make} test}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
1e96d730
ER
59rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
60rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/prefork/.packlist
61
068f30b1 62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc Changes
68%{perl_vendorlib}/*.pm
69%{_mandir}/man3/*
This page took 0.245884 seconds and 4 git commands to generate.