]> git.pld-linux.org Git - packages/apache-mod_fcgid.git/blame - apache-mod_fcgid.spec
- added patch to allow setting path to suexec binary
[packages/apache-mod_fcgid.git] / apache-mod_fcgid.spec
CommitLineData
87332fa3 1%define mod_name fcgid
2%define apxs /usr/sbin/apxs
73aff1ad 3Summary: A binary compatibility alternative to Apache module mod_fastcgi
2e2443df 4Summary(pl.UTF-8): Binarnie kompatybilna alternatywa dla modułu Apache'a mod_fastcgi
87332fa3 5Name: apache-mod_%{mod_name}
45e0597a 6Version: 2.2
4b369af8 7Release: 3
080f7bbe 8License: GPL v2
0fb52da2 9Group: Networking/Daemons/HTTP
45e0597a 10Source0: http://dl.sourceforge.net/mod-fcgid/mod_%{mod_name}.%{version}.tar.gz
11# Source0-md5: ce7d7b16e69643dbd549d43d85025983
cbc1d3a3 12Source1: %{name}.conf
4b369af8 13Patch0: %{name}-suexec-path.patch
73aff1ad 14URL: http://fastcgi.coremail.cn/
6bbe118a 15BuildRequires: %{apxs}
ae2885e5 16BuildRequires: apache-devel >= 2.0.52-2
73aff1ad 17BuildRequires: libtool
61385084 18BuildRequires: rpmbuild(macros) >= 1.268
6222f6e9 19Requires: apache(modules-api) = %apache_modules_api
73aff1ad
AM
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
6222f6e9 22%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
179f8082 23%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
73aff1ad
AM
24
25%description
26A binary compatibility alternative to Apache module mod_fastcgi.
6222f6e9
ER
27mod_fcgid has a new process management strategy, which concentrates on
28reducing the number of fastcgi server, and kick out the corrupt
73aff1ad
AM
29fastcgi server as soon as possible.
30
e0e89299
JR
31%description -l pl.UTF-8
32Binarnie kompatybilna alternatywa dla modułu Apache'a mod_fastcgi.
33mod_fcgid to nowa strategia zarządzania procesami, koncentrująca się
34na redukcji liczby serwerów fastcgi i usuwaniu uszkodzonych serwerów
35fastcgi najszybciej jak to możliwe.
5d1e3ce5 36
73aff1ad 37%prep
87332fa3 38%setup -q -n mod_%{mod_name}.%{version}
4b369af8 39%patch0 -p1
73aff1ad
AM
40
41%build
87332fa3 42%{__make} \
43 top_dir=%{_pkglibdir} \
eab87e6a 44 APXS=%{apxs} \
87332fa3 45 INCLUDES="-I%(%{apxs} -q INCLUDEDIR)"
73aff1ad
AM
46
47%install
48rm -rf $RPM_BUILD_ROOT
179f8082 49install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
73aff1ad 50
87332fa3 51install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
179f8082 52install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/70_mod_%{mod_name}.conf
73aff1ad
AM
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%post
61385084 58%service -q httpd restart
73aff1ad 59
cae47895 60%postun
73aff1ad 61if [ "$1" = "0" ]; then
61385084 62 %service -q httpd restart
73aff1ad
AM
63fi
64
65%files
66%defattr(644,root,root,755)
67%doc AUTHOR ChangeLog
179f8082 68%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
87332fa3 69%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.085617 seconds and 4 git commands to generate.