From 730192e73934c7700a371c519c0bb48c42916052 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Mon, 11 Apr 2005 21:47:06 +0000 Subject: [PATCH] auto-import perl-IO-String-1.06-2 on branch devel from perl-IO-String-1.06-2.src.rpm --- .cvsignore | 1 + perl-IO-String.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 perl-IO-String.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c226833 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +IO-String-1.06.tar.gz diff --git a/perl-IO-String.spec b/perl-IO-String.spec new file mode 100644 index 0000000..9433346 --- /dev/null +++ b/perl-IO-String.spec @@ -0,0 +1,74 @@ +%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} + +Name: perl-IO-String +Version: 1.06 +Release: 2 + +Summary: Emulate file interface for in-core strings + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/IO-String/ +Source0: http://www.cpan.org/authors/id/G/GA/GAAS/IO-String-1.06.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +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. + + +%prep +%setup -q -n IO-String-%{version} + + +%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/* + + +%check || : +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/IO/ +%{_mandir}/man3/*.3* + + +%changelog +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Wed Nov 24 2004 Jose Pedro Oliveira - 0:1.06-1 +- Update to 1.06. + +* Sun Jul 04 2004 Jose Pedro Oliveira - 0:1.05-0.fdr.1 +- First build. diff --git a/sources b/sources index e69de29..ebdae66 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +05f2400bc7248dbdfd2b626b074013aa IO-String-1.06.tar.gz