diff --git a/.cvsignore b/.cvsignore index e69de29..407c162 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +File-Slurp-9999.09.tar.gz diff --git a/perl-File-Slurp.spec b/perl-File-Slurp.spec new file mode 100644 index 0000000..488f7b8 --- /dev/null +++ b/perl-File-Slurp.spec @@ -0,0 +1,55 @@ +Name: perl-File-Slurp +Version: 9999.09 +Release: 1%{?dist} +Summary: Efficient Reading/Writing of Complete Files +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Slurp/ +Source0: http://www.cpan.org/modules/by-module/File/File-Slurp-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +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 File-Slurp-%{version} +chmod 0644 lib/File/Slurp.pm + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/File +%{_mandir}/man3/* + +%changelog +* Thu Sep 01 2005 Ralf Corsepius - 9999.09-1 +- FE submission. + +* Tue Jun 28 2005 Ralf Corsepius - 9999.09-0.pm.1 +- Initial packman version. diff --git a/sources b/sources index e69de29..6d864dc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b2bd4e917b6fafe03145f3977ba8bd7a File-Slurp-9999.09.tar.gz