--- /dev/null
+--- CGI-SpeedyCGI-2.22/src/speedy_inc.h~ 2003-10-07 06:03:48.000000000 +0200
++++ CGI-SpeedyCGI-2.22/src/speedy_inc.h 2016-01-02 10:31:56.452878078 +0100
+@@ -40,13 +40,15 @@
+ #ifndef MAP_FAILED
+ # define MAP_FAILED (-1)
+ #endif
+-
++/*
+ #ifdef __GNUC__
+ #define SPEEDY_INLINE __inline__
+ #else
++*/
+ #define SPEEDY_INLINE
++/*
+ #endif
+-
++*/
+ #ifdef EWOULDBLOCK
+ # define SP_EWOULDBLOCK(e) ((e) == EWOULDBLOCK)
+ #else
#
%define apxs1 /usr/sbin/apxs1
%define apxs2 /usr/sbin/apxs
-%include /usr/lib/rpm/macros.perl
+%include /usr/lib/rpm/macros.perl
%define pdir CGI
%define pnam SpeedyCGI
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: 25
+Release: 26
License: GPL v2+
Group: Networking/Daemons
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
Patch0: %{name}-DESTDIR.patch
Patch1: %{name}-APXS.patch
Patch2: %{name}-debian.patch
+Patch3: bad-inline.patch
URL: http://daemoninc.com/SpeedyCGI/
%{?with_apache2:BuildRequires: apache-devel}
%{?with_apache1:BuildRequires: apache1-devel}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
%{__perl} Makefile.PL </dev/null \