%define pkg_name Tee %define pkg_version 0.13 %define rpm_pkg_version 0.13 %define rpm_pkg_release 1.n0i.1 Summary: Pure Perl emulation of GNU tee(1) Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %if %{!?_without_test:1}0 BuildRequires: perl(Getopt::Long) >= 2.32 BuildRequires: perl(Probe::Perl) BuildRequires: perl(IPC::Run3) >= 0.033 %endif %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. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %{__chmod} a+x $RPM_BUILD_ROOT%{perl_vendorlib}/auto/Tee/ptee %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m -l} %doc Changes LICENSE README Todo %changelog * Sun Jun 03 2007 Marius Feraru - 0.13-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 0.13