From 34de2af1115d8e07079dda7e979ef4d07766538509eebbf109a2b915be99288c Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Sat, 5 Aug 2023 11:49:58 +0000 Subject: [PATCH] refresh spec with cpanspec OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Strict?expand=0&rev=35 --- cpanspec.yml | 2 +- perl-Test-Strict.spec | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cpanspec.yml b/cpanspec.yml index 11e7573..44669e9 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -5,7 +5,7 @@ # - source1 # - source2 patches: - test-perl-5.38.patch: -p1 + test-perl-5.38.patch: -p1 PATCH-FIX-UPSTREAM test-perl-5.38.patch gh#manwar/Test-Strict#33 -- Don't simultaneously test -c and -v switches # foo.patch: -p1 # bar.patch: #preamble: |- diff --git a/perl-Test-Strict.spec b/perl-Test-Strict.spec index d58a1da..0e1f7b0 100644 --- a/perl-Test-Strict.spec +++ b/perl-Test-Strict.spec @@ -16,22 +16,21 @@ # +%define cpan_name Test-Strict Name: perl-Test-Strict Version: 0.52 Release: 0 -%define cpan_name Test-Strict -Summary: Check syntax, presence of use strict; and test coverage License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl +Summary: Check syntax, presence of use strict; and test coverage URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml # PATCH-FIX-UPSTREAM test-perl-5.38.patch gh#manwar/Test-Strict#33 -- Don't simultaneously test -c and -v switches Patch0: test-perl-5.38.patch BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64 BuildRequires: perl(IO::Scalar) BuildRequires: perl(Test::More) >= 1.00 %{perl_requires} @@ -55,12 +54,11 @@ paths are untainted with the following pattern: 'qr|^([-+@\w./:\\]+)$|' controlled by '$Test::Strict::UNTAINT_PATTERN'. %prep -%setup -q -n %{cpan_name}-%{version} -%patch0 -p1 +%autosetup -n %{cpan_name}-%{version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -71,7 +69,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %license LICENSE