/[packages]/cauldron/perl-PerlIO-Util/current/SPECS/perl-PerlIO-Util.spec
ViewVC logotype

Contents of /cauldron/perl-PerlIO-Util/current/SPECS/perl-PerlIO-Util.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1727009 - (show annotations) (download)
Mon May 24 17:13:34 2021 UTC (8 months ago) by umeabot
File size: 1732 byte(s)
Rebuild for perl 5.34
1 %define upstream_name PerlIO-Util
2 %define upstream_version 0.72
3
4 %{?perl_default_filter}
5
6 Name: perl-%{upstream_name}
7 Version: %perl_convert_version %{upstream_version}
8 Release: %mkrel 22
9
10 Summary: A selection of general PerlIO utilities
11 License: GPL+ or Artistic
12 Group: Development/Perl
13 Url: https://metacpan.org/release/%{upstream_name}
14 Source0: https://cpan.metacpan.org/modules/by-module/PerlIO/%{upstream_name}-%{upstream_version}.tar.gz
15 # https://rt.cpan.org/Ticket/Display.html?id=74539
16 Patch0: PerlIO-Util-0.72-fix_refcount_test.patch
17
18 BuildRequires: perl(Devel::PPPort) >= 3.190.0
19 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.420.0
20 BuildRequires: perl(ExtUtils::ParseXS) >= 2.210.0
21 BuildRequires: perl(Test::More) >= 0.620.0
22 BuildRequires: perl(XSLoader) >= 0.20.0
23 BuildRequires: perl(inc::Module::Install)
24 BuildRequires: perl-devel
25 %description
26 'PerlIO::tee' provides a multiplex output stream like 'tee(1)'. It makes a
27 filehandle write to one or more files (or scalars via the ':scalar' layer)
28 at the same time.
29
30 You can use 'push_layer()' (defined in 'PerlIO::Util') to add a _source_ to
31 a filehandle. The _source_ may be a file name, a scalar reference, or a
32 filehandle. For example:
33
34 $fh->push_layer(tee => $file); # meaning "> $file"
35 $fh->push_layer(tee => ">>$file");# append mode
36 $fh->push_layer(tee => \$scalar); # via :scalar
37 $fh->push_layer(tee => \*OUT); # shallow copy, not duplication
38
39 %prep
40 %setup -q -n %{upstream_name}-%{upstream_version}
41 %patch0 -p 1 -b .refcount
42
43 %build
44 %__perl Makefile.PL INSTALLDIRS=vendor
45
46 %make_build
47
48 %check
49 %make_build test || :
50
51 %install
52 %make_install
53
54 %files
55 %doc Changes META.yml README
56 %{_mandir}/man3/*
57 %{perl_vendorarch}/*

  ViewVC Help
Powered by ViewVC 1.1.28