# # Conditional build: %bcond_without tests # do not perform "make test" %bcond_without apache1 # don't build apache1 module %bcond_without apache2 # don't build apache2 module # %define apxs1 /usr/sbin/apxs1 %define apxs2 /usr/sbin/apxs %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: 36 License: GPL v2+ Group: Networking/Daemons Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 2f80df78874e3efa80f180923c4967a1 Source1: apache-mod_speedycgi.conf Patch0: %{name}-DESTDIR.patch Patch1: %{name}-APXS.patch Patch2: %{name}-debian.patch Patch3: bad-inline.patch Patch4: CGI-SpeedyCGI-2.22-Fix-building-on-Perl-without-dot-in-INC.patch URL: http://daemoninc.com/SpeedyCGI/ %{?with_apache2:BuildRequires: apache-devel} %{?with_apache1:BuildRequires: apache1-devel} BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 3.0.3-16 BuildRequires: rpmbuild(macros) >= 1.268 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %if %{with apache1} %define apache1confdir %(%{apxs1} -q SYSCONFDIR 2>/dev/null)/conf.d %define apache1libdir %(%{apxs1} -q LIBEXECDIR 2>/dev/null) %define apache1docdir /home/services/apache %endif %if %{with apache2} %define apache2confdir %(%{apxs2} -q SYSCONFDIR 2>/dev/null)/conf.d %define apache2libdir %(%{apxs2} -q LIBEXECDIR 2>/dev/null) %define apache2docdir /home/services/httpd %endif %description SpeedyCGI is a way to run CGI perl scripts persistently, which usually makes them run much more quickly. After the script is initially run, instead of exiting, SpeedyCGI keeps the perl interpreter running in memory. During subsequent runs, this interpreter is used to handle new requests, instead of starting a new perl interpreter for each execution. %description -l pl.UTF-8 SpeedyCGI to sposób na ciągłe działanie perlowych skryptów CGI, co zazwyczaj powoduje, że uruchamiają się dużo szybciej. Po początkowym uruchomieniu skryptu, SpeedyCGI trzyma interpreter Perla w pamięci. Przy kolejnych uruchomieniach ten interpreter jest wykorzystywany do obsługi kolejnych zleceń, zamiast uruchamiania nowego interpretera Perla do każdego uruchomienia skryptu. %package -n apache-mod_speedycgi Summary: SpeedyCGI apache module Summary(pl.UTF-8): Moduł apache SpeedyCGI Group: Networking/Daemons Requires: %{name} = %{version}-%{release} Requires: apache(modules-api) = %apache_modules_api %description -n apache-mod_speedycgi SpeedyCGI apache module. %description -n apache-mod_speedycgi -l pl.UTF-8 Moduł apache SpeedyCGI. %package -n apache1-mod_speedycgi Summary: SpeedyCGI apache module Summary(pl.UTF-8): Moduł apache SpeedyCGI Group: Networking/Daemons Requires: %{name} = %{version}-%{release} Requires: apache1 >= 1.3.33-2 %description -n apache1-mod_speedycgi SpeedyCGI apache module. %description -n apache1-mod_speedycgi -l pl.UTF-8 Moduł apache SpeedyCGI. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %{__perl} Makefile.PL