2007-01-15 23:30:55 +00:00
|
|
|
#
|
2011-08-18 20:13:59 +00:00
|
|
|
# spec file for package perl-IO-String
|
2007-01-15 23:30:55 +00:00
|
|
|
#
|
2025-10-14 14:44:25 +02:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:30:55 +00:00
|
|
|
#
|
2009-06-18 15:07:26 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2025-10-14 14:44:25 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:30:55 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2011-02-02 13:51:02 +00:00
|
|
|
%define cpan_name IO-String
|
2025-10-14 14:44:25 +02:00
|
|
|
Name: perl-IO-String
|
|
|
|
|
Version: 1.80.0
|
|
|
|
|
Release: 0
|
|
|
|
|
# 1.08 -> normalize -> 1.80.0
|
|
|
|
|
%define cpan_version 1.08
|
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
|
Summary: Emulate file interface for in-core strings
|
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{cpan_version}.tar.gz
|
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:51 +02:00
|
|
|
Source100: README.md
|
2025-10-14 14:44:25 +02:00
|
|
|
BuildArch: noarch
|
2010-10-19 11:08:08 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:38:53 +00:00
|
|
|
BuildRequires: perl-macros
|
2025-10-14 14:44:25 +02:00
|
|
|
Provides: perl(IO::String) = %{version}
|
|
|
|
|
%undefine __perllib_provides
|
|
|
|
|
%{perl_requires}
|
2007-01-15 23:30:55 +00:00
|
|
|
|
|
|
|
|
%description
|
2025-10-14 14:44:25 +02:00
|
|
|
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.
|
2007-01-15 23:30:55 +00:00
|
|
|
|
2025-10-14 14:44:25 +02:00
|
|
|
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.
|
2007-01-15 23:30:55 +00:00
|
|
|
|
2025-10-14 14:44:25 +02:00
|
|
|
The 'IO::String' module provides an interface compatible with 'IO::File' as
|
|
|
|
|
distributed with _IO-1.20_, but the following methods are not available:
|
|
|
|
|
new_from_fd, fdopen, format_write, format_page_number,
|
|
|
|
|
format_lines_per_page, format_lines_left, format_name, format_top_name.
|
2007-01-15 23:30:55 +00:00
|
|
|
|
|
|
|
|
%prep
|
2025-10-14 14:44:25 +02:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2007-01-15 23:30:55 +00:00
|
|
|
|
|
|
|
|
%build
|
2025-10-14 14:44:25 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
2007-01-15 23:30:55 +00:00
|
|
|
|
|
|
|
|
%install
|
2025-10-14 14:44:25 +02:00
|
|
|
%perl_make_install
|
2007-01-15 23:30:55 +00:00
|
|
|
%perl_process_packlist
|
2025-10-14 14:44:25 +02:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:55 +00:00
|
|
|
|
2025-10-14 14:44:25 +02:00
|
|
|
%files -f %{name}.files
|
|
|
|
|
%doc Changes README
|
2007-01-15 23:30:55 +00:00
|
|
|
|
2009-06-18 15:07:26 +00:00
|
|
|
%changelog
|