Summary(pt_BR): Autenticação via MySQL para o Apache
Summary(sv): Grundläggande autenticering för webbservern Apache med en MySQL-databas
Name: apache-mod_%{mod_name}
-Version: 0.11
-Release: 4
+Version: 2.20a
+Release: 2
License: GPL
Group: Networking/Daemons
-Source0: ftp://ftp.kcilink.com/pub/mod_%{mod_name}.c.gz
-Source1: ftp://ftp.kciLink.com/pub/mysql-group-auth.txt
-Patch0: %{name}-name.patch
+Source0: http://web.oyvax.com/src/mod_auth_mysql-%{version}.tar.gz
+URL: http://www.diegonet.com/support/mod_auth_mysql.shtml
BuildRequires: mysql-devel
BuildRequires: %{apxs}
BuildRequires: apache(EAPI)-devel
-Prereq: %{_sbindir}/apxs
+Requires(post,preun): %{_sbindir}/apxs
Requires: apache(EAPI)
Requires: apache-mod_auth
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
MySQL-databas.
%prep
-%setup -q -T -c
-gzip -dc %{SOURCE0} > mod_%{mod_name}.c
-%patch -p1
+%setup -q -n mod_%{mod_name}-%{version}
%build
-%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lmysqlclient
+aclocal
+autoconf
+%configure \
+ --with-apxs=%{apxs} \
+ --with-mysql=%{_prefix}
+
+%{apxs} -c -I %{_includedir}/mysql mod_%{mod_name}.c -o mod_%{mod_name}.so -lmysqlclient
%install
rm -rf $RPM_BUILD_ROOT
install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
-install %{SOURCE1} .
-
-gzip -9nf *.txt
+gzip -9nf README* USAGE
%clean
rm -rf $RPM_BUILD_ROOT