3 %bcond_with tests # perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary(pl.UTF-8): drop-in replacement for Perl threads using fork()
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: 26e5b395cb24975f9b99414fe1d748f1
17 URL: http://search.cpan.org/dist/forks/
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The "forks" pragma allows a developer to use threads without having to have a threaded perl.
25 %setup -q -n %{pnam}-%{version}
28 %{__perl} Makefile.PL \
32 %{?with_tests:%{__make} test}
35 rm -rf $RPM_BUILD_ROOT
38 DESTDIR=$RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/forks
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
48 %{perl_vendorarch}/forks.pm
49 %dir %{perl_vendorarch}/auto/forks
50 %attr(755,root,root) %{perl_vendorarch}/auto/forks/*.so
51 %{perl_vendorarch}/forks
52 %{perl_vendorarch}/threads