https://bugzilla.redhat.com/show_bug.cgi?id=1699030
--- Comment #3 from Xavier Bachelot xavier@bachelot.org --- (In reply to Robert-André Mauchin from comment #2)
- %{__perl} → perl
Fixed.
- %{__perl} Makefile.PL INSTALLDIRS=vendor
→
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
w/ BuildRequires: perl(ExtUtils::MakeMaker) >= 7.12
and:
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
→
%{make_install}
- As a result, not needed:
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ;
This a noarch package so OPTIMIZE doesn't matter. I will build for EL6 and EL7, so I can't use NO_PACKLIST and NO_PERLLOCAL as ExtUtils::MakeMaker is 6.55 and 6.68.
Also, you didn't mention it, but I made use of %make_build instead of make %{?_smp_mflags}.
Spec URL: https://www.bachelot.org/fedora/SPECS/perl-Mail-AuthenticationResults.spec SRPM URL: https://www.bachelot.org/fedora/SRPMS/perl-Mail-AuthenticationResults-1.2018...