Notification time stamped 2019-07-31 22:55:49 UTC
From 32c033a42b56d40d67ee7964d577eb5a23018b00 Mon Sep 17 00:00:00 2001
From: Robert Scheck <robert(a)fedoraproject.org>
Date: Jul 31 2019 22:55:37 +0000
Subject: Spec file modernization
---
diff --git a/perl-CGI-SpeedyCGI.spec b/perl-CGI-SpeedyCGI.spec
index 20ad40a..688a156 100644
--- a/perl-CGI-SpeedyCGI.spec
+++ b/perl-CGI-SpeedyCGI.spec
@@ -71,15 +71,16 @@ sed -i 's@apxs -@%{_httpd_apxs} -@g' Makefile.PL
src/SpeedyMake.pl \
mod_speedycgi/t/ModTest.pm mod_speedycgi/t/mod_perl.t
sed -i 's@APXS=apxs@APXS=%{_httpd_apxs}@g' mod_speedycgi/Makefile.tmpl
-echo yes | perl Makefile.PL INSTALLDIRS=vendor
+echo yes | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make OPTIMIZE="$RPM_OPT_FLAGS" # doesn't understand %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+%if 0%{?rhel} && 0%{?rhel} <= 7
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
+%endif
chmod -R u+w $RPM_BUILD_ROOT/*
mkdir -p $RPM_BUILD_ROOT{%{_httpd_moddir},%{_httpd_modconfdir},%{_httpd_confdir}}
@@ -97,7 +98,8 @@ install -p -m 644 10-speedycgi.conf
$RPM_BUILD_ROOT%{_httpd_modconfdir}/
%endif
%files
-%doc Changes COPYING README docs/*
+%license COPYING
+%doc Changes README docs/*
%{_bindir}/speedy*
%{perl_vendorlib}/CGI
https://src.fedoraproject.org/rpms/perl-CGI-SpeedyCGI/c/32c033a42b56d40d6...