From 8fb654b5bfcc6dd40f243a8c402a0d93b26b2c62 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Thu, 24 Oct 2019 19:08:21 +0100 Subject: [PATCH] Use author-independent source URL, fix permissions verbosely --- perl-Lexical-Var.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-Lexical-Var.spec b/perl-Lexical-Var.spec index bb49457..4c08e31 100644 --- a/perl-Lexical-Var.spec +++ b/perl-Lexical-Var.spec @@ -4,9 +4,10 @@ Release: 21%{?dist} Summary: Static variables without name space pollution License: GPL+ or Artistic URL: https://metacpan.org/release/Lexical-Var -Source0: https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/Lexical-Var-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Lexical/Lexical-Var-%{version}.tar.gz # Update code to work with Perl 5.21.x (CPAN RT#101058) Patch0: Lexical-Var-0.009-Fix-RT-101058.patch +# Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: perl-devel @@ -22,8 +23,10 @@ BuildRequires: perl(Lexical::SealRequireHints) >= 0.006 BuildRequires: perl(XSLoader) # Tests BuildRequires: perl(Test::More) +# Optional Tests BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) +# Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Conflicts: perl(B::Hooks::OP::Check) < 0.19 @@ -45,7 +48,7 @@ perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" %install ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete -%{_fixperms} $RPM_BUILD_ROOT +%{_fixperms} -c $RPM_BUILD_ROOT %check ./Build test