/[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 22760 - (show annotations) (download)
Tue Jan 18 14:22:09 2011 UTC (11 years, 10 months ago) by jquelin
File size: 1537 byte(s)
cleaning spec file
1 %define upstream_name PerlIO-Util
2 %define upstream_version 0.71
3
4 Name: perl-%{upstream_name}
5 Version: %perl_convert_version %{upstream_version}
6 Release: %mkrel 1
7
8 Summary: PerlIOに関する汎用ユーティリティ集
9 License: GPL+ or Artistic
10 Group: Development/Perl
11 Url: http://search.cpan.org/dist/%{upstream_name}
12 Source0: http://www.cpan.org/modules/by-module/PerlIO/%{upstream_name}-%{upstream_version}.tar.gz
13
14 BuildRequires: perl(Devel::PPPort)
15 BuildRequires: perl(ExtUtils::MakeMaker)
16 BuildRequires: perl(ExtUtils::ParseXS)
17 BuildRequires: perl(Test::More)
18 BuildRequires: perl(XSLoader)
19 BuildRequires: perl-devel
20
21
22 %description
23 'PerlIO::tee' provides a multiplex output stream like 'tee(1)'. It makes a
24 filehandle write to one or more files (or scalars via the ':scalar' layer)
25 at the same time.
26
27 You can use 'push_layer()' (defined in 'PerlIO::Util') to add a _source_ to
28 a filehandle. The _source_ may be a file name, a scalar reference, or a
29 filehandle. For example:
30
31 $fh->push_layer(tee => $file); # meaning "> $file"
32 $fh->push_layer(tee => ">>$file");# append mode
33 $fh->push_layer(tee => \$scalar); # via :scalar
34 $fh->push_layer(tee => \*OUT); # shallow copy, not duplication
35
36 %prep
37 %setup -q -n %{upstream_name}-%{upstream_version}
38
39 %build
40 %{__perl} Makefile.PL INSTALLDIRS=vendor
41
42 %make
43
44 %check
45 %make test
46
47 %install
48 rm -rf %buildroot
49 %makeinstall_std
50
51 %clean
52 rm -rf %buildroot
53
54 %files
55 %defattr(-,root,root)
56 %doc Changes META.yml README
57 %{_mandir}/man3/*
58 %perl_vendorlib/*
59
60

  ViewVC Help
Powered by ViewVC 1.1.28