]> git.pld-linux.org Git - packages/apache1-mod_fastcgi.git/blobdiff - apache1-mod_fastcgi.spec
- confdir enabled apache1 (no triggers as it wasn't on ftp)
[packages/apache1-mod_fastcgi.git] / apache1-mod_fastcgi.spec
index 1f50c548ce03631cda1051d63a13b7340103d81b..f358d3c6398971e6d580b6efecc610dc4254a274 100644 (file)
@@ -7,22 +7,21 @@ Summary(uk):  FastCGI - ¦
 Name:          apache1-mod_%{mod_name}
 # NOTE: remember about apache-mod_fastcgi.spec when messing here
 Version:       2.4.2
-Release:       1
+Release:       1.1
 License:       distributable
 Group:         Networking/Daemons
 Source0:       http://www.FastCGI.com/dist/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: e994414304b535cb99e10b7d1cad1d1e
-Patch0:                apache-mod_%{mod_name}-allow-uid-gid.patch
+Patch0:                %{name}-allow-uid-gid.patch
 URL:           http://www.FastCGI.com/
 BuildRequires: %{apxs}
-BuildRequires: apache1-devel >= 1.3.1
+BuildRequires: apache1-devel >= 1.3.33-2
 BuildRequires: libtool
-Requires(post,preun):  %{apxs}
-Requires:      apache1 >= 1.3.1
+Requires:      apache1 >= 1.3.33-2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR)
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 This 3rd party module provides support for the FastCGI protocol.
@@ -58,30 +57,32 @@ FastCGI - 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 
+echo 'LoadModule %{mod_name}_module    modules/mod_%{mod_name}.so' > \
+       $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 if [ -f /var/lock/subsys/apache ]; then
        /etc/rc.d/init.d/apache restart 1>&2
 else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
+
 %preun
 if [ "$1" = "0" ]; then
-%{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
+
 %files
 %defattr(644,root,root,755)
-%doc docs/LICENSE.TERMS CHANGES docs/*.html 
+%doc docs/LICENSE.TERMS CHANGES docs/*.html
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.061758 seconds and 4 git commands to generate.