7
0
Files
perl-Test-Class/perl-Test-Class.spec
Dirk Stoecker be504b6446 Accepting request 873327 from devel:languages:perl:autoupdate
- updated to 0.52
   see /usr/share/doc/packages/perl-Test-Class/Changes
  0.52   [2021-02-17]
      - Change bugtracker link to point GitHub issues instead of RT.
      - Remove some old and broken links.
      - Work by (Kaycie Goodman).
      - Test fix (Pali, PR#32).
      - Fix reporting caller information (file+line) when number of tests does
        not match (Pali).
      - Use better class names in t/runtests_return.t (Pali).
      - Fix documentation to be more accurate regarding support and author
        activity (Karen Etheridge).
      - Ensure metadata is processed as v2 (Karen Etheridge).
      - Remove unnecessary shebangs (Karen Etheridge).
      - chmod ugo-x (Karen Etheridge).
  0.51   [2019-04-29]
      - Create fail_if_returned_late (Jason Terry, Oaxlin, PR#23)

OBS-URL: https://build.opensuse.org/request/show/873327
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Class?expand=0&rev=18
2021-02-19 07:50:19 +00:00

77 lines
2.5 KiB
RPMSpec

#
# spec file for package perl-Test-Class
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Test-Class
Name: perl-Test-Class
Version: 0.52
Release: 0
Summary: Easily create test classes in an xUnit/JUnit style
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SZ/SZABGAB/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(MRO::Compat) >= 0.11
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Test::Builder) >= 0.78
BuildRequires: perl(Test::Exception) >= 0.250000
BuildRequires: perl(Test::More) >= 0.78
BuildRequires: perl(Test::Simple) >= 0.78
BuildRequires: perl(Try::Tiny)
Requires: perl(MRO::Compat) >= 0.11
Requires: perl(Module::Runtime)
Requires: perl(Test::Builder) >= 0.78
Requires: perl(Test::Simple) >= 0.78
Requires: perl(Try::Tiny)
%{perl_requires}
%description
Test::Class provides a simple way of creating classes and objects to test
your code in an xUnit style.
Built using Test::Builder, it was designed to work with other Test::Builder
based modules (Test::More, Test::Differences, Test::Exception, etc.).
_Note:_ This module will make more sense, if you are already familiar with
the "standard" mechanisms for testing perl code. Those unfamiliar with
Test::Harness, Test::Simple, Test::More and friends should go take a look
at them now. Test::Tutorial is a good starting point.
%prep
%autosetup -n %{cpan_name}-%{version}
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_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog