packages perl-IO-String.spec
      Pages: < 1 >  DOWNLOAD      
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)

Name:          perl-IO-String
Version:       1.08
Release:       1mamba
Summary:       IO::String - Emulate file interface for in-core strings
Group:         System/Libraries/Perl
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
License:       GPL, Artistic
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
Requires:      perl >= %perl_major_ver
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

The "IO::String" module provides the "IO::File" interface for in-core
strings. An "IO::String" object can be attached to a string, and
makes it possible to use the normal file operations for reading or
writing data, as well as for seeking to various locations of the
string. This is useful when you want to use a library module that
only provides an interface to file handles on data that you have in a
string variable.

Note that perl-5.8 and better has built-in support for "in memory"
files, which are set up by passing a reference instead of a filename
to the open() call. The reason for using this module is that it makes
the code backwards compatible with older versions of Perl.

%setup -q -n IO-String-%{version}

perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make test

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%doc Changes README

* Thu Feb 17 2011 gil <puntogil@...> 1.08-1mamba
- package created by autospec