File apache2-mod_fcgid.spec of Package apache2-mod_fcgid

#
# spec file for package apache2-mod_fcgid
#
# Copyright (c) 2013 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/
#


Name:           apache2-mod_fcgid
%define apache_branch     %(rpm -q --qf %%{version} apache2 | grep -E -o "2\\.[0-9]+")
%if "%{apache_branch}" == "2.4"
  %define apxs %{_bindir}/apxs2
%else
  %define apxs %{_sbindir}/apxs2
%endif
%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.9
Release:        0
#
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  apache2-devel
Requires:       %{apache_mmn}
Requires:       apache2
#
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
License:        GPL-2.0+
Group:          Productivity/Networking/Web/Servers

%description
A binary compatibile alternative to the Apache
module mod_fastcgi.

The module implements an efficient process pool management for external
CGI program invocation. The pool of CGI programs is mapped against the
pool of apache workers in such way that there is always a weighted number
of programs waiting for requests in the pool.

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.

%prep
%setup -n mod_fcgid-%{version}
%patch

%build
APXS="%{apxs}-prefork" ./configure.apxs
make %{?_smp_mflags}

%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/

%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
openSUSE Build Service is sponsored by