Use author-independent source URL, fix permissions verbosely
This commit is contained in:
parent
79afeda5c0
commit
8fb654b5bf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user