[packages/perl-CGI-SpeedyCGI] Rel 39; fix build

arekm arekm at pld-linux.org
Thu Aug 13 01:30:19 CEST 2026


commit 7e7e38672f141c5636804c70603553e59db6d826
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Aug 13 01:18:00 2026 +0200

    Rel 39; fix build

 perl-CGI-SpeedyCGI.spec | 16 +++++++++-------
 test-targets.patch      | 11 +++++++++++
 2 files changed, 20 insertions(+), 7 deletions(-)
---
diff --git a/perl-CGI-SpeedyCGI.spec b/perl-CGI-SpeedyCGI.spec
index 827b106..2084378 100644
--- a/perl-CGI-SpeedyCGI.spec
+++ b/perl-CGI-SpeedyCGI.spec
@@ -12,10 +12,10 @@ Summary:	Speed up perl CGI scripts by running them persistently
 Summary(pl.UTF-8):	Moduł przyspieszający perlowe skrypty CGI
 Name:		perl-CGI-SpeedyCGI
 Version:	2.22
-Release:	38
+Release:	39
 License:	GPL v2+
 Group:		Networking/Daemons
-Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0:	https://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	2f80df78874e3efa80f180923c4967a1
 Source1:	apache-mod_speedycgi.conf
 Patch0:		%{name}-DESTDIR.patch
@@ -26,7 +26,8 @@ Patch4:		CGI-SpeedyCGI-2.22-Fix-building-on-Perl-without-dot-in-INC.patch
 Patch5:		includes.patch
 Patch6:		types.patch
 Patch7:		extern.patch
-URL:		http://daemoninc.com/SpeedyCGI/
+Patch8:		test-targets.patch
+URL:		https://metacpan.org/dist/CGI-SpeedyCGI
 %{?with_apache2:BuildRequires:	apache-devel}
 %{?with_apache1:BuildRequires:	apache1-devel}
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -97,6 +98,7 @@ Moduł apache SpeedyCGI.
 %patch -P5 -p1
 %patch -P6 -p1
 %patch -P7 -p1
+%patch -P8 -p1
 
 %build
 %{__perl} Makefile.PL </dev/null \
@@ -106,20 +108,20 @@ Moduł apache SpeedyCGI.
 
 %{__make} -j1 \
 	CC="%{__cc}" \
-	OPTIMIZE="%{rpmcflags} -fcommon"
+	OPTIMIZE="%{rpmcflags} %{rpmcppflags}"
 
 %if %{with apache1}
 %{__make} -C mod_speedycgi APXS="%{apxs1}" \
 	CC="%{__cc}" \
-	OPTIMIZE="%{rpmcflags} -fcommon"
+	OPTIMIZE="%{rpmcflags} %{rpmcppflags}"
 %endif
 %if %{with apache2}
 %{__make} -C mod_speedycgi2 APXS="%{apxs2}" \
 	CC="%{__cc}" \
-	OPTIMIZE="%{rpmcflags} -fcommon"
+	OPTIMIZE="%{rpmcflags} %{rpmcppflags}"
 %endif
 
-%{?with_test:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/test-targets.patch b/test-targets.patch
new file mode 100644
index 0000000..e9b11be
--- /dev/null
+++ b/test-targets.patch
@@ -0,0 +1,11 @@
+--- CGI-SpeedyCGI-2.22/src/Makefile.PL.orig
++++ CGI-SpeedyCGI-2.22/src/Makefile.PL
+@@ -42,7 +42,7 @@
+ clean:
+ 	\$(RM_F) ${gen} Makefile
+ 
+-test:
++test test_dynamic test_static:
+ 
+ END
+ close(M);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-CGI-SpeedyCGI.git/commitdiff/588eeeb92559e89067a4d5c4d4abd2555c79d3a4



More information about the pld-cvs-commit mailing list