apache-mod_fcgid/apache-mod_fcgid.spec

68 lines
2.1 KiB
RPMSpec

Name: apache-mod_fcgid
Version: 2.3.9
Release: 2mamba
Summary: A high performance alternative to mod_cgi or mod_cgid
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://httpd.apache.org/mod_fcgid/
Source: http://apache.panu.it//httpd/mod_fcgid/mod_fcgid-%{version}.tar.bz2
Patch0: apache-mod_fcgid-2.3.9-fix-bts-691929.patch
Patch1: apache-mod_fcgid-2.3.9-large-file-upload.patch
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: apache >= 2.4
Requires: apache >= 2.4
%description
mod_fcgid is a high performance alternative to mod_cgi or mod_cgid, which starts a sufficient number instances of the CGI program to handle concurrent requests, and these programs remain running to handle further incoming requests. It is favored by the PHP developers, for example, as a preferred alternative to running mod_php in-process, delivering very similar performance.
%debug_package
%prep
%setup -q -n mod_fcgid-%{version}
%patch 0 -p1 -b .fix-bts-691929
%patch 1 -p0 -b .large-file-upload
%build
./configure.apxs
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
%{_bindir}/apxs -e -a -n fcgid %{_libdir}/apache/mod_fcgid.so > /dev/null
fi
:
%preun
if [ $1 -eq 0 ]; then
%{_bindir}/apxs -e -A -n fcgid %{_libdir}/apache/mod_fcgid.so > /dev/null
fi
:
%files
%defattr(-,root,root)
%{_libdir}/apache/mod_fcgid.so
%{_localstatedir}/www/manual/mod/mod_fcgid.html
%{_localstatedir}/www/manual/mod/mod_fcgid.html.en
%{_localstatedir}/www/manual/mod/mod_fcgid.xml
%{_localstatedir}/www/manual/mod/mod_fcgid.xml.meta
%doc README-FCGID
%changelog
* Tue Oct 24 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.9-2mamba
- rebuilt with patches
* Thu Sep 04 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.9-1mamba
- package created using the webbuild interface