Dirk Stoecker 2023-08-05 11:49:58 +00:00 committed by Git OBS Bridge
parent 22169f1a80
commit 34de2af111
2 changed files with 6 additions and 9 deletions

View File

@ -5,7 +5,7 @@
# - source1 # - source1
# - source2 # - source2
patches: 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 # foo.patch: -p1
# bar.patch: # bar.patch:
#preamble: |- #preamble: |-

View File

@ -16,22 +16,21 @@
# #
%define cpan_name Test-Strict
Name: perl-Test-Strict Name: perl-Test-Strict
Version: 0.52 Version: 0.52
Release: 0 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 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} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
# PATCH-FIX-UPSTREAM test-perl-5.38.patch gh#manwar/Test-Strict#33 -- Don't simultaneously test -c and -v switches # 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 Patch0: test-perl-5.38.patch
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
BuildRequires: perl(IO::Scalar) BuildRequires: perl(IO::Scalar)
BuildRequires: perl(Test::More) >= 1.00 BuildRequires: perl(Test::More) >= 1.00
%{perl_requires} %{perl_requires}
@ -55,12 +54,11 @@ paths are untainted with the following pattern: 'qr|^([-+@\w./:\\]+)$|'
controlled by '$Test::Strict::UNTAINT_PATTERN'. controlled by '$Test::Strict::UNTAINT_PATTERN'.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{version} -p1
%patch0 -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} %make_build
%check %check
make test make test
@ -71,7 +69,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README %doc Changes README
%license LICENSE %license LICENSE