62 lines
1.9 KiB
RPMSpec
62 lines
1.9 KiB
RPMSpec
|
Name: apache-mod_fcgid
|
||
|
Version: 2.3.9
|
||
|
Release: 1mamba
|
||
|
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: http://httpd.apache.org/mod_fcgid/
|
||
|
Source: http://apache.panu.it//httpd/mod_fcgid/mod_fcgid-%{version}.tar.bz2
|
||
|
License: Apache License 2.0
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## note: run 'autospec -u -a6 apache-mod_fcgid' to get the list of build requirements.
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: apache >= 2.4
|
||
|
Requires: apache >= 2.4
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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}
|
||
|
|
||
|
%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
|
||
|
* Thu Sep 04 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.9-1mamba
|
||
|
- package created using the webbuild interface
|