3 %bcond_without tests # do not perform "make test"
6 Summary: Tee - Pure Perl emulation of GNU tee
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/D/DA/DAGOLDEN/Tee-%{version}.tar.gz
15 # Source0-md5: 5c189150962550b0348c31f6f3e6ad62
16 URL: http://search.cpan.org/dist/Tee/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl(Probe::Perl)
21 BuildRequires: perl-IO-CaptureOutput
22 BuildRequires: perl-IPC-Run3 >= 0.033
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The Tee distribution provides the ptee program, a pure Perl emulation
29 of the standard GNU tool tee. It is designed to be a
30 platform-independent replacement for operating systems without a
31 native tee program. As with tee, it passes input received on STDIN
32 through to STDOUT while also writing a copy of the input to one or
33 more files. By default, files will be overwritten.
35 # %description -l pl.UTF-8
39 %setup -q -n %{pdir}-%{version}
42 %{__perl} Makefile.PL \
43 destdir=$RPM_BUILD_ROOT \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/*
61 %{perl_vendorlib}/*.pm