source: spec/trunk/SPECS/perl-IO-String.spec

Last change on this file was 1311, checked in by Silvan Scherrer, 8 years ago

small fix to the spec

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