%define upstream_name File-Slurp %define upstream_version 9999.19 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Efficient Reading/Writing of Complete Files Group: Development/Perl License: GPL+ or Artistic Url: http://search.cpan.org/dist/%{upstream_name}/ Source0: http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(Fcntl) BuildRequires: perl(POSIX) BuildArch: noarch %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 %{upstream_name}-%{upstream_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 Changes META.yml README TODO %{_mandir}/man3*/* %{perl_vendorlib}/File %changelog * Sun Jan 13 2013 umeabot <umeabot> 9999.190.0-2.mga3 + Revision: 367383 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jun 15 2011 jquelin <jquelin> 9999.190.0-1.mga2 + Revision: 106966 - update to 9999.19 * Fri Mar 25 2011 jquelin <jquelin> 9999.150.0-1.mga1 + Revision: 77301 - update to 9999.15 * Thu Mar 24 2011 jquelin <jquelin> 9999.140.0-1.mga1 + Revision: 76630 - update to 9999.14 * Tue Jan 18 2011 jquelin <jquelin> 9999.130.0-1.mga1 + Revision: 22430 - cleaning spec file - imported package perl-File-Slurp