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
Requires: apache(EAPI)
Requires: apache-mod_auth
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes: mod_auth_mysql
%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
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
%files
%defattr(644,root,root,755)
-%doc *.gz
+%doc README* USAGE
%attr(755,root,root) %{_pkglibdir}/*