]>
Commit | Line | Data |
---|---|---|
feb6daf3 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
702a0d78 | 4 | |
feb6daf3 | 5 | %define pdir Parallel |
6 | %define pnam Prefork | |
feb6daf3 | 7 | Summary: Parallel::Prefork - A simple prefork server framework |
feb6daf3 | 8 | Name: perl-Parallel-Prefork |
3d7a8cd7 | 9 | Version: 0.18 |
83fcec74 | 10 | Release: 2 |
feb6daf3 | 11 | # same as perl |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/Parallel/%{pdir}-%{pnam}-%{version}.tar.gz | |
3d7a8cd7 | 15 | # Source0-md5: 128f8c03eddde44d3e95f092d6116e9a |
702a0d78 | 16 | URL: http://search.cpan.org/dist/Parallel-Prefork/ |
d62c1888 | 17 | BuildRequires: perl-Module-Install |
feb6daf3 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl(Class::Accessor::Lite) >= 0.04 | |
22 | BuildRequires: perl(Proc::Wait3) >= 0.03 | |
23 | BuildRequires: perl(Scope::Guard) | |
24 | BuildRequires: perl-List-MoreUtils | |
d62c1888 | 25 | BuildRequires: perl-Signal-Mask |
feb6daf3 | 26 | BuildRequires: perl-Test-Requires |
d62c1888 | 27 | BuildRequires: perl-Test-SharedFork |
feb6daf3 | 28 | %endif |
29 | BuildArch: noarch | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
702a0d78 ER |
33 | Parallel::Prefork is much like Parallel::ForkManager, but supports |
34 | graceful shutdown and run-time reconfiguration. | |
feb6daf3 | 35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | %{__make} | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} pure_install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
58 | %{perl_vendorlib}/Parallel/*.pm | |
59 | %{perl_vendorlib}/Parallel/Prefork | |
60 | %{_mandir}/man3/* |