File apache2-mod_fcgid.spec of Package apache2-mod_fcgid
#
# spec file for package apache2-mod_fcgid (Version 2.3.6)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: apache2-mod_fcgid
%define apxs /usr/sbin/apxs2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
#
Version: 2.3.6
Release: 1
#
Group: Productivity/Networking/Web/Servers
License: GPLv2+
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: apache2-devel
Requires: apache2 %{apache_mmn}
#
Url: http://httpd.apache.org/mod_fcgid/
Source: http://mirror.synyx.de/apache/httpd/mod_fcgid/mod_fcgid-%{version}.tar.bz2
Source1: apache2-mod_fcgid.conf
Patch: mod_fcgid-2.3.5_suse_paths.patch
#
Summary: Alternative FastCGI module for Apache2
%description
What is mod_fcgid? It is a binary compatibility alternative to Apache
module mod_fastcgi.
mod_fcgid has a new process management strategy, which concentrates on
reducing the number of fastcgi server, and kick out the corrupt fastcgi
server as soon as possible.
To load the module into Apache, run the command "a2enmod fcgid" as
root.
See /etc/apache2/conf.d/mod_fcgid.conf and
/usr/share/doc/packages/apache2-mod_fcgid for configuration.
Authors:
--------
Pan qingfeng <pqf@tebie.com>
%prep
%setup -n mod_fcgid-%{version}
%patch
%build
APXS="%{apxs}-prefork" ./configure.apxs
%{__make}
%install
%makeinstall
%{__install} -D -m 0644 %{S:1} %{buildroot}%{apache_sysconfdir}/conf.d/mod_fcgid.conf
%{__install} -d -m 0755 %{buildroot}/var/lib/apache2/fcgid/
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{apache_libexecdir}/mod_fcgid.so
%config(noreplace) %{apache_sysconfdir}/conf.d/mod_fcgid.conf
%doc CHANGES-FCGID LICENSE-FCGID NOTICE-FCGID README-FCGID STATUS-FCGID
%dir %{_datadir}/apache2/manual/
%dir %{_datadir}/apache2/manual/mod/
%{_datadir}/apache2/manual/mod/mod_fcgid*
%attr(750,wwwrun,www) /var/lib/apache2/fcgid/
%changelog