BR: ExtUtils::CBuilder
- Arch-specific package using Module::Build needs to use ExtUtils::CBuilder (https://bugzilla.redhat.com/show_bug.cgi?id=1547165#c7) - Drop explicit gcc build-require as EU::CB is effectively our compiler here - Add build-require coreutils for %{_fixperms} - Simplify find command using -empty
This commit is contained in:
parent
d311e003d1
commit
58ec55471e
@ -1,6 +1,6 @@
|
||||
Name: perl-Lexical-Var
|
||||
Version: 0.009
|
||||
Release: 15%{?dist}
|
||||
Release: 16%{?dist}
|
||||
Summary: Static variables without name space pollution
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
@ -8,12 +8,13 @@ URL: http://search.cpan.org/dist/Lexical-Var/
|
||||
Source0: http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/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
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(:VERSION) >= 5.6
|
||||
BuildRequires: perl(ExtUtils::CBuilder) >= 0.15
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
@ -21,7 +22,6 @@ BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(Lexical::SealRequireHints) >= 0.006
|
||||
BuildRequires: perl(XSLoader)
|
||||
# Tests
|
||||
#BuildRequires: perl(ExtUtils::CBuilder) >= 0.15
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
@ -40,13 +40,13 @@ infrastructure for modules that manage name spaces.
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
|
||||
perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS"
|
||||
./Build
|
||||
|
||||
%install
|
||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete
|
||||
%{_fixperms} $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
./Build test
|
||||
@ -58,6 +58,13 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Mar 1 2018 Paul Howarth <paul@city-fan.org> - 0.009-16
|
||||
- Arch-specific package using Module::Build needs to use ExtUtils::CBuilder
|
||||
(https://bugzilla.redhat.com/show_bug.cgi?id=1547165#c7)
|
||||
- Drop explicit gcc build-require as EU::CB is effectively our compiler here
|
||||
- Add build-require coreutils for %%{_fixperms}
|
||||
- Simplify find command using -empty
|
||||
|
||||
* Mon Feb 19 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.009-15
|
||||
- Add build-require gcc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user