forked from pool/perl-Test-Output
84 lines
2.5 KiB
RPMSpec
84 lines
2.5 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package perl-Test-Output (Version 0.16)
|
||
|
|
#
|
||
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
|
#
|
||
|
|
# 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 http://bugs.opensuse.org/
|
||
|
|
#
|
||
|
|
|
||
|
|
# norootforbuild
|
||
|
|
|
||
|
|
|
||
|
|
Name: perl-Test-Output
|
||
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||
|
|
Summary: Utilities to test STDOUT and STDERR messages
|
||
|
|
Version: 0.16
|
||
|
|
Release: 1
|
||
|
|
License: GPL Version 2, Artistic License
|
||
|
|
Group: Development/Libraries/Perl
|
||
|
|
Url: http://search.cpan.org/dist/Test-Output
|
||
|
|
Source: http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Test-Output-0.16.tar.gz
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
BuildRequires: perl
|
||
|
|
%if 0%{?suse_version} < 1120
|
||
|
|
BuildRequires: perl-macros
|
||
|
|
%endif
|
||
|
|
#BuildRequires: perl(Module::Build)
|
||
|
|
BuildRequires: perl(File::Temp) >= 0.21
|
||
|
|
BuildRequires: perl(Test::Tester) >= 0.107
|
||
|
|
BuildRequires: perl(Test::More) >= 0
|
||
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
||
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
||
|
|
# other not perl || perl-base
|
||
|
|
BuildRequires: perl(Sub::Exporter) >= 0
|
||
|
|
Requires: perl = %{perl_version}
|
||
|
|
Requires: perl(File::Temp) >= 0.21
|
||
|
|
# other not perl || perl-base
|
||
|
|
Requires: perl(Test::Tester) >= 0.107
|
||
|
|
Requires: perl(Test::More) >= 0
|
||
|
|
Requires: perl(Sub::Exporter) >= 0
|
||
|
|
|
||
|
|
%description
|
||
|
|
Test-Output provides a simple interface for testing output send to STDOUT
|
||
|
|
or STDERR. A number of different utilies are included to try and be as
|
||
|
|
flexible as possible to the tester.
|
||
|
|
|
||
|
|
Authors:
|
||
|
|
Currently maintained by brian d foy, bdfoy@cpan.org.
|
||
|
|
Shawn Sorichetti, <ssoriche@cpan.org>
|
||
|
|
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n %{cpan_name}-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%{__perl} Makefile.PL CFLAGS="$RPM_OPT_FLAGS -Wall"
|
||
|
|
%{__make} %{?_smp_mflags}
|
||
|
|
|
||
|
|
%check
|
||
|
|
%{__make} test
|
||
|
|
|
||
|
|
%install
|
||
|
|
%perl_make_install
|
||
|
|
%perl_process_packlist
|
||
|
|
%perl_gen_filelist
|
||
|
|
|
||
|
|
%clean
|
||
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
||
|
|
|
||
|
|
%files -f %{name}.files
|
||
|
|
# normally you only need to check for doc files
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc Changes LICENSE README
|
||
|
|
|
||
|
|
%changelog
|