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