]>
Commit | Line | Data |
---|---|---|
b0465c8b AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" | |
4 | # | |
b0465c8b AM |
5 | %define pdir forks |
6 | %define pnam forks | |
7 | Summary(pl.UTF-8): drop-in replacement for Perl threads using fork() | |
8 | Name: perl-forks | |
630b3c73 | 9 | Version: 0.34 |
3d3e46f8 | 10 | Release: 14 |
b0465c8b AM |
11 | # same as perl |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://search.cpan.org/CPAN/authors/id/R/RY/RYBSKEJ/%{pnam}-%{version}.tar.gz | |
630b3c73 | 15 | # Source0-md5: 26e5b395cb24975f9b99414fe1d748f1 |
b0465c8b AM |
16 | URL: http://search.cpan.org/dist/forks/ |
17 | BuildRequires: rpm-perlprov >= 4.1-13 | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | The "forks" pragma allows a developer to use threads without having to have a threaded perl. | |
22 | ||
23 | %prep | |
24 | %setup -q -n %{pnam}-%{version} | |
25 | ||
26 | %build | |
27 | %{__perl} Makefile.PL \ | |
28 | INSTALLDIRS=vendor | |
29 | %{__make} | |
30 | ||
31 | %{?with_tests:%{__make} test} | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %{__make} install \ | |
37 | DESTDIR=$RPM_BUILD_ROOT | |
38 | ||
39 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/forks | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc README | |
ad650024 | 47 | %{perl_vendorarch}/forks.pm |
b0465c8b AM |
48 | %dir %{perl_vendorarch}/auto/forks |
49 | %attr(755,root,root) %{perl_vendorarch}/auto/forks/*.so | |
50 | %{perl_vendorarch}/forks | |
51 | %{perl_vendorarch}/threads | |
52 | %{_mandir}/man3/* |