]> git.pld-linux.org Git - packages/apache-mod_auth_mysql.git/blobdiff - apache-mod_auth_mysql.spec
- sed -e "s/%{_sbindir}\/apxs -e/\%{apxs} -e/"
[packages/apache-mod_auth_mysql.git] / apache-mod_auth_mysql.spec
index 2626249b0b3e7453139b6daf030299d5877fc1f5..e6a0c9864b6742b1e1b4cdc167651a1a8a223133 100644 (file)
@@ -14,7 +14,7 @@ Summary(pt_BR):       Autentica
 Summary(sv):   Grundläggande autenticering för webbservern Apache med en MySQL-databas
 Name:          apache-mod_%{mod_name}
 Version:       2.20a
-Release:       2
+Release:       3
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://web.oyvax.com/src/mod_auth_mysql-%{version}.tar.gz
@@ -26,6 +26,7 @@ Requires(post,preun): %{_sbindir}/apxs
 Requires:      apache(EAPI)
 Requires:      apache-mod_auth
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     mod_auth_mysql
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
 
@@ -93,20 +94,18 @@ install -d $RPM_BUILD_ROOT%{_pkglibdir}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 
-gzip -9nf README* USAGE
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_sbindir}/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       %{_sbindir}/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
@@ -114,5 +113,5 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
+%doc README* USAGE
 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.068018 seconds and 4 git commands to generate.