2010-11-11 17:09:52 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-Test-Fatal (Version 0.003)
|
|
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2010-11-01 11:37:42 +00:00
|
|
|
# norootforbuild
|
|
|
|
|
|
2010-11-15 23:54:19 +00:00
|
|
|
|
2010-11-01 11:37:42 +00:00
|
|
|
Name: perl-Test-Fatal
|
2010-11-11 17:09:52 +00:00
|
|
|
%define cpan_name Test-Fatal
|
|
|
|
|
Summary: Incredibly simple helpers for testing code with exceptions
|
2011-04-28 15:04:42 +00:00
|
|
|
Version: 0.005
|
2010-11-11 17:09:52 +00:00
|
|
|
Release: 1
|
|
|
|
|
License: GPL+ or Artistic
|
2010-11-01 11:37:42 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-11-11 17:09:52 +00:00
|
|
|
Url: http://search.cpan.org/dist/Test-Fatal/
|
2011-04-28 15:04:42 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Fatal-%{version}.tar.gz
|
2010-11-11 17:09:52 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:52:06 +00:00
|
|
|
%{perl_requires}
|
2010-11-01 11:37:42 +00:00
|
|
|
BuildRequires: perl
|
2010-11-11 17:09:52 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-11-01 11:37:42 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2010-11-11 17:09:52 +00:00
|
|
|
#
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Exporter) >= 5.59
|
2010-11-01 11:37:42 +00:00
|
|
|
BuildRequires: perl(overload)
|
|
|
|
|
BuildRequires: perl(Try::Tiny) >= 0.07
|
2010-11-11 17:09:52 +00:00
|
|
|
#
|
2010-11-01 11:37:42 +00:00
|
|
|
Requires: perl(Carp)
|
2010-11-11 17:09:52 +00:00
|
|
|
Requires: perl(Exporter) >= 5.59
|
|
|
|
|
Requires: perl(Try::Tiny) >= 0.07
|
2010-11-01 11:37:42 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Test::Fatal is an alternative to the popular Test::Exception. It does much
|
|
|
|
|
less, but should allow greater flexibility in testing exception-throwing
|
|
|
|
|
code with about the same amount of typing.
|
|
|
|
|
It exports one routine by default: "exception".
|
|
|
|
|
|
2010-11-11 17:09:52 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Ricardo Signes <rjbs@cpan.org>
|
|
|
|
|
|
2010-11-01 11:37:42 +00:00
|
|
|
%prep
|
2010-11-11 17:09:52 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-11-01 11:37:42 +00:00
|
|
|
|
|
|
|
|
%build
|
2010-11-11 17:09:52 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__make} test
|
2010-11-01 11:37:42 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
2010-11-11 17:09:52 +00:00
|
|
|
# do not perl_process_packlist (noarch)
|
|
|
|
|
# remove .packlist file
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
|
# remove perllocal.pod file
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
|
|
|
%perl_gen_filelist
|
2010-11-01 11:37:42 +00:00
|
|
|
|
|
|
|
|
%clean
|
2010-11-11 17:09:52 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes LICENSE README
|
2010-11-01 11:37:42 +00:00
|
|
|
|
2010-11-11 17:09:52 +00:00
|
|
|
%changelog
|