A new user interface for you! Read more...

File perl-Test-Warn.spec of Package perl-Test-Warn

#
# spec file for package perl-Test-Warn
#
# Copyright (c) 2011 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-Warn
%define cpan_name Test-Warn
Summary:        Perl extension to test methods for warnings
Version:        0.23
Release:        1
License:        Artistic
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Test-Warn
Source:         %{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Test::Pod) >= 1.14
BuildRequires:  perl(Test::Builder::Tester) >= 1.02
#BuildRequires:  perl(Array::Compare)
#BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::Builder) >= 0.13
BuildRequires:  perl(Sub::Uplevel) >= 0.12
BuildRequires:  perl(Tree::DAG_Node)
Requires:       perl(Test::Builder) >= 0.13
Requires:       perl(Sub::Uplevel) >= 0.12
Requires:       perl(Tree::DAG_Node)
Provides:       %{cpan_name}

%description
This module provides a few convenience methods for testing warning
based code.



Authors:
--------
    Janek Schleicher, <bigj AT kamelfreund.de>
    Alexandr Ciornii, <alexchorny'.'@gmail.com>

%prep
%setup -q -n %{cpan_name}-%{version}

%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%defattr(-,root,root)
%doc Changes README

%changelog