Files
perl-Tee/perl-Tee.spec
2025-08-12 18:17:29 +02:00

76 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-Tee
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Tee
Name: perl-Tee
Version: 0.140.0
Release: 0
# 0.14 -> normalize -> 0.140.0
%define cpan_version 0.14
License: Apache-2.0
Summary: Pure Perl emulation of GNU tee
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(IO::CaptureOutput)
BuildRequires: perl(Probe::Perl)
Requires: perl(Probe::Perl)
Provides: perl(Tee) = %{version}
Provides: perl(Tee::App) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
The 'Tee' distribution provides the ptee program, a pure Perl emulation of
the standard GNU tool 'tee'. It is designed to be a platform-independent
replacement for operating systems without a native 'tee' program. As with
'tee', it passes input received on STDIN through to STDOUT while also
writing a copy of the input to one or more files. By default, files will be
overwritten.
Unlike 'tee', 'ptee' does not support ignoring interrupts, as signal
handling is not sufficiently portable.
The 'Tee' module provides a convenience function that may be used in place
of 'system()' to redirect commands through 'ptee'.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README Todo
%license LICENSE
%changelog