Accepting request 826113 from devel:languages:perl

OBS-URL: https://build.opensuse.org/request/show/826113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Fatal?expand=0&rev=19
This commit is contained in:
2020-08-15 19:17:26 +00:00
committed by Git OBS Bridge
5 changed files with 68 additions and 19 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bcdcef5c7b2790a187ebca810b0a08221a63256062cfab3c3b98685d91d1cbb0
size 19685

3
Test-Fatal-0.016.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7283d430f2ba2030b8cd979ae3039d3f1b2ec3dde1a11ca6ae09f992a66f788f
size 21246

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Aug 10 03:10:33 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 0.016
see /usr/share/doc/packages/perl-Test-Fatal/Changes
0.016 2020-08-08 22:00:14-04:00 America/New_York
- no changes since trial release of 0.015
0.015 2018-03-10 17:06:11-05:00 America/New_York (TRIAL RELEASE)
- add default descriptions to tests
- work on ancient Test::Builder code
-------------------------------------------------------------------
Tue Apr 14 17:28:38 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-Fatal
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,45 +12,52 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Test-Fatal
Version: 0.014
Version: 0.016
Release: 0
%define cpan_name Test-Fatal
Summary: incredibly simple helpers for testing code with exceptions
License: Artistic-1.0 or GPL-1.0+
Summary: Incredibly simple helpers for testing code with exceptions
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-Fatal/
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::More) >= 0.65
BuildRequires: perl(Try::Tiny) >= 0.07
Requires: perl(Try::Tiny) >= 0.07
%{perl_requires}
%description
Test::Fatal is an alternative to the popular the Test::Exception manpage.
It does much less, but should allow greater flexibility in testing
exception-throwing code with about the same amount of typing.
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'.
*Achtung!* 'exception' intentionally does not manipulate the call stack.
User-written test functions that use 'exception' must be careful to avoid
false positives if exceptions use stack traces that show arguments. For a
more magical approach involving globally overriding 'caller', see
Test::Exception.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
%{__make} test
make test
%install
%perl_make_install
@@ -59,6 +66,7 @@ find . -type f -print0 | xargs -0 chmod 644
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples LICENSE README
%doc Changes examples README
%license LICENSE
%changelog