%define module File-Slurp %define name perl-%{module} %define version 9999.13 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: Efficient Reading/Writing of Complete Files Group: Development/Perl License: GPL or Artistic Url: http://search.cpan.org/dist/%{module}/ Source: http://www.cpan.org/modules/by-module/File/%{module}-%{version}.tar.gz %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description This module provides subs that allow you to read or write entire files with one simple call. They are designed to be simple to use, have flexible ways to pass in or get the file contents and to be very efficient. There is also a sub to read in all the files in a directory other than . and .. These slurp/spew subs work for files, pipes and sockets, and stdio, pseudo-files, and DATA. %prep %setup -q -n %{module}-%{version} chmod 644 lib/File/Slurp.pm %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std find %{buildroot} -name "perllocal.pod" | xargs -i rm -f {} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README Changes %{_mandir}/man3*/* %{perl_vendorlib}/File %changelog * Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 9999.13-2mdv2009.0 + Revision: 223754 - rebuild * Sat Jan 26 2008 Guillaume Rousse <guillomovitch@mandriva.org> 9999.13-1mdv2008.1 + Revision: 158255 - new version + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Fri Aug 17 2007 Thierry Vignaud <tvignaud@mandriva.com> 9999.12-3mdv2008.0 + Revision: 64751 - rebuild * Sat May 05 2007 Olivier Thauvin <nanardon@mandriva.org> 9999.12-2mdv2008.0 + Revision: 23408 - rebuild * Tue Mar 07 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 9999.12-1mdk - 9999.12 * Wed Jan 25 2006 Guillaume Rousse <guillomovitch@mandriva.org> 9999.11-1mdk - new version - spec cleanup - rpmbuildupdate aware - fix directory ownership - better summary and description * Mon May 02 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 9999.09-1mdk - 9999.09 * Mon Jan 31 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 9999.07-1mdk - 9999.07 * Tue Nov 16 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 9999.06-1mdk - 9999.06 * Wed Apr 21 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 9999.04-1mdk - 9999.04 - correct license - spec cosmetics * Thu Aug 14 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2002.1031-3mdk - rebuild for new perl - macroize - drop $RPM_OPT_FLAGS, noarch.. - use %%makeinstall_std macro * Fri Jul 18 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 2002.1031-2mdk - buildrequires * Thu Jun 26 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2002.1031-1mdk - Initial build.