%define module forks %define name perl-%{module} %define version 0.23 %define release %mkrel 6 Name: %{name} Version: %{version} Release: %{release} Summary: Drop-in replacement for Perl threads using fork() License: GPL or Artistic Group: Development/Perl Source0: %{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: perl-devel, perl-reaper Provides: perl(forks) %description The "forks" pragma allows a developer to use threads without having to have a threaded perl, or to even run 5.8.0 or higher. %prep %setup -q -n %{module}-%{version} %build find -type f | xargs chmod 644 yes no | %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %check #%{__make} test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGELOG README TODO VERSION %{perl_vendorarch}/%{module}.pm %{perl_vendorarch}/auto/%{module}/* %{perl_vendorarch}/%{module}/* %{perl_vendorarch}/threads/shared/* %{_mandir}/*/* %changelog * Thu Jul 31 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.23-6mdv2009.0 + Revision: 257062 - rebuild * Tue Jan 15 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.23-4mdv2008.1 + Revision: 152084 - rebuild * Sat Dec 22 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.23-3mdv2008.1 + Revision: 136994 - rebuild - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request + Erwan Velu <erwan@mandriva.org> - 0.23 Adding "yes no |" to answer automatic questions * Mon Jun 26 2006 Erwan Velu <erwan@seanodes.com> 0.19-1 - 0.19 - Remove patch0 merged upstream (thx erik) * Mon Mar 06 2006 Erwan Velu <erwan@seanodes.com> 0.18-2mdk - Applying Eric Rybskej Patch to solve SIGCHLD troubles * Tue Jan 03 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.18-1mdk - 0.18 - Add provides perl(forks) * Sun Dec 04 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.17-1mdk - 0.17 - Fix permissions * Tue Jul 26 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 0.16-1mdk - Initial Mandriva release