1
0
perl-Test-Exception/perl-Test-Exception.spec

78 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Test-Exception
#
# 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-Exception
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Test::Exception - Test exception based code
Version: 0.31
Release: 7
License: Artistic License ..
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-Exception
Source: Test-Exception-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Simple) >= 0.7
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More) >= 0.7
BuildRequires: perl(Test::Harness) >= 2.03
BuildRequires: perl(Sub::Uplevel) >= 0.18
Requires: perl(Sub::Uplevel) >= 0.18
Requires: perl(Test::More) >= 0.7
Requires: perl(Test::Builder)
%description
This module provides a few convenience methods for testing exception
based code. It is built with Test::Builder and plays happily with
Test::More and friends.
Authors:
--------
Adrian Howard <adrianh@quietstars.com>
%prep
%setup -q -n %{cpan_name}-%{version}
echo "perlVersion: "%{perl_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
%defattr(0644,root,root,0755)
%doc Changes README
%changelog