Author: agaran Date: Sun May 27 00:39:56 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - initial, ver 0.10, rel 1, builds here
---- Files affected: SPECS: perl-Test-Output.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/perl-Test-Output.spec diff -u /dev/null SPECS/perl-Test-Output.spec:1.1 --- /dev/null Sun May 27 02:39:56 2007 +++ SPECS/perl-Test-Output.spec Sun May 27 02:39:50 2007 @@ -0,0 +1,78 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir Test +%define pnam Output +Summary: Test::Output - Utilities to test STDOUT and STDERR messages. +#Summary(pl): +Name: perl-Test-Output +Version: 0.10 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: dcf67296e04a41a9f73f70c10fe5f825 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(Sub::Exporter) +BuildRequires: perl(Test::Tester) >= 0.103 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Test::Output provides a simple interface for testing output sent to STDOUT +or STDERR. A number of different utilies are included to try and be as +flexible as possible to the tester. + +Originally this module was designed not to have external requirements, +however, the features provided by Sub::Exporter over what Exporter +provides is just to great to pass up. + +Test::Output ties STDOUT and STDERR using Test::Output::Tie. + + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/Test/*.pm +%dir %{perl_vendorlib}/Test/Output +%{perl_vendorlib}/Test/Output/Tie.pm +%{_mandir}/man3/* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2007/05/27 00:39:50 agaran +- initial, ver 0.10, rel 1, builds here + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
