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