2024-08-03 17:31:16 +00:00
committed by Git OBS Bridge
parent 5da05eabc9
commit 31bfa03ab6

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-Script-Run
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,27 @@
#
Name: perl-Test-Script-Run
Version: 0.08
Release: 0
%define cpan_name Test-Script-Run
Summary: Test scripts with run
Name: perl-Test-Script-Run
Version: 0.80.0
Release: 0
# 0.08 -> normalize -> 0.80.0
%define cpan_version 0.08
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SU/SUNNAVY/%{cpan_name}-%{version}.tar.gz
Summary: Test scripts with run
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SU/SUNNAVY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::Exception)
Requires: perl(IPC::Run3)
Requires: perl(Test::Exception)
Provides: perl(Test::Script::Run) = %{version}
%undefine __perllib_provides
Recommends: perl(String::ShellQuote)
%{perl_requires}
@@ -47,11 +50,11 @@ like those should live below 'Test::' namespace, that's why we packed them
and created this module.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%make_build
%check
make test
@@ -62,7 +65,6 @@ make test
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog