[1302] | 1 | Name: perl-IO-String
|
---|
| 2 | Version: 1.08
|
---|
| 3 | Release: 1%{?dist}
|
---|
| 4 | Summary: Emulate file interface for in-core strings
|
---|
| 5 | Group: Development/Libraries
|
---|
| 6 | License: GPL+ or Artistic
|
---|
| 7 | URL: http://search.cpan.org/dist/IO-String/
|
---|
| 8 | Vendor: bww bitwise works GmbH
|
---|
| 9 | Source0: http://www.cpan.org/authors/id/G/GA/GAAS/IO-String-%{version}.tar.gz
|
---|
| 10 | BuildArch: noarch
|
---|
| 11 | BuildRequires: perl-generators
|
---|
| 12 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
| 13 | # Run-time:
|
---|
| 14 | BuildRequires: perl(Data::Dumper)
|
---|
| 15 | BuildRequires: perl(IO::Handle)
|
---|
| 16 | # Tests:
|
---|
| 17 | BuildRequires: perl(Test)
|
---|
| 18 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
| 19 | Requires: perl(Data::Dumper)
|
---|
| 20 | Requires: perl(IO::Handle)
|
---|
| 21 |
|
---|
| 22 | %description
|
---|
| 23 | The "IO::String" module provides the "IO::File" interface for in-core
|
---|
| 24 | strings. An "IO::String" object can be attached to a string, and
|
---|
| 25 | makes it possible to use the normal file operations for reading or
|
---|
| 26 | writing data, as well as for seeking to various locations of the
|
---|
| 27 | string. This is useful when you want to use a library module that
|
---|
| 28 | only provides an interface to file handles on data that you have in a
|
---|
| 29 | string variable.
|
---|
| 30 |
|
---|
| 31 | Note that perl-5.8 and better has built-in support for "in memory"
|
---|
| 32 | files, which are set up by passing a reference instead of a filename
|
---|
| 33 | to the open() call. The reason for using this module is that it makes
|
---|
| 34 | the code backwards compatible with older versions of Perl.
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | %prep
|
---|
| 38 | %setup -q -n IO-String-%{version}
|
---|
| 39 |
|
---|
| 40 | %build
|
---|
| 41 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
| 42 | make %{?_smp_mflags}
|
---|
| 43 | make manifypods
|
---|
| 44 |
|
---|
| 45 | %install
|
---|
| 46 | make pure_install DESTDIR=%{buildroot}
|
---|
| 47 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
---|
| 48 | chmod -R u+w %{buildroot}/*
|
---|
| 49 |
|
---|
| 50 | %check
|
---|
| 51 | #make test
|
---|
| 52 |
|
---|
| 53 | %files
|
---|
| 54 | %doc Changes README
|
---|
| 55 | %{perl_vendorlib}/IO/
|
---|
| 56 | %{_mandir}/man3/*.3*
|
---|
| 57 |
|
---|
| 58 | %changelog
|
---|
| 59 | * Wed Feb 21 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.08-1
|
---|
[1311] | 60 | - initial rpm
|
---|