forked from pool/perl-Test-Strict
refresh spec with cpanspec
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Strict?expand=0&rev=35
This commit is contained in:
parent
22169f1a80
commit
34de2af111
@ -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: |-
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user