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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1727009 - (hide 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 jquelin 17393 %define upstream_name PerlIO-Util
2 jquelin 105705 %define upstream_version 0.72
3 jquelin 17393
4 sander85 841811 %{?perl_default_filter}
5    
6 jquelin 105705 Name: perl-%{upstream_name}
7     Version: %perl_convert_version %{upstream_version}
8 umeabot 1727009 Release: %mkrel 22
9 jquelin 17393
10 jquelin 105705 Summary: A selection of general PerlIO utilities
11     License: GPL+ or Artistic
12     Group: Development/Perl
13 ovitters 1575909 Url: https://metacpan.org/release/%{upstream_name}
14     Source0: https://cpan.metacpan.org/modules/by-module/PerlIO/%{upstream_name}-%{upstream_version}.tar.gz
15 jquelin 252213 # https://rt.cpan.org/Ticket/Display.html?id=74539
16     Patch0: PerlIO-Util-0.72-fix_refcount_test.patch
17 jquelin 17393
18 jquelin 105705 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 sander85 1130039 BuildRequires: perl(inc::Module::Install)
24 jquelin 105705 BuildRequires: perl-devel
25 jquelin 17393 %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 jquelin 252213 %patch0 -p 1 -b .refcount
42 jquelin 17393
43     %build
44 sander85 1130039 %__perl Makefile.PL INSTALLDIRS=vendor
45 jquelin 17393
46 ovitters 1575909 %make_build
47 jquelin 17393
48     %check
49 ovitters 1575909 %make_build test || :
50 jquelin 17393
51     %install
52 sander85 1130039 %make_install
53 jquelin 17393
54     %files
55     %doc Changes META.yml README
56     %{_mandir}/man3/*
57 pterjan 1249870 %{perl_vendorarch}/*

  ViewVC Help
Powered by ViewVC 1.1.28