# # spec file for package perl-Test-Base (Version 0.59) # # 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-Base %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Summary: A Data Driven Testing Framework Version: 0.59 Release: 2 License: Artistic License .. Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-Base Source: %{cpan_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build #!BuildIgnore: perl-Test-Base BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.62 # BuildRequires: perl(Algorithm::Diff) >= 1.15 BuildRequires: perl(Spiffy) >= 0.30 BuildRequires: perl(Test::Deep) BuildRequires: perl(Text::Diff) >= 0.35 BuildRequires: perl(YAML) Requires: perl = %{perl_version} Requires: perl(Algorithm::Diff) >= 1.15 Requires: perl(LWP::Simple) Requires: perl(Spiffy) >= 0.30 Requires: perl(Test::Deep) Requires: perl(Text::Diff) >= 0.35 Requires: perl(YAML) Provides: %{cpan_name} %description Testing is usually the ugly part of Perl module authoring. Perl gives you a standard way to run tests with Test::Harness, and basic testing primitives with Test::More. After that you are pretty much on your own to develop a testing framework and philosophy. Test::More encourages you to make your own framework by subclassing Test::Builder, but that is not trivial. Test::Base gives you a way to write your own test framework base class that *is* trivial. In fact it is as simple as two lines: package MyTestFramework; use Test::Base -Base; A module called "MyTestFramework.pm" containing those two lines, will give all the power of Test::More and all the power of Test::Base to every test file that uses it. As you build up the capabilities of "MyTestFramework", your tests will have all of that power as well. Author: Brian Ingerson %prep %setup -q -n %{cpan_name}-%{version} %build perl Makefile.PL OPTIMIZE="$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 README %changelog