From 6e471f6927eaa384efd17f072209d99b2fc86007 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 22 Oct 2001 12:28:37 +0000 Subject: [PATCH] - module name changed back to auth_mysql, added patch to change module name in source (apxs requires filename and module name to be consistent) - release 3 Changed files: apache-mod_auth_mysql.spec -> 1.6 --- apache-mod_auth_mysql.spec | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apache-mod_auth_mysql.spec b/apache-mod_auth_mysql.spec index 1619a24..6c73b4b 100644 --- a/apache-mod_auth_mysql.spec +++ b/apache-mod_auth_mysql.spec @@ -3,12 +3,13 @@ Summary: This is the MySQL authentication module for Apache Summary(pl): Modu³ autentykacji MySQL dla Apache Name: apache-mod_%{mod_name} Version: 0.3 -Release: 2 +Release: 3 License: GPL Group: Networking/Daemons Group(de): Netzwerkwesen/Server Group(pl): Sieciowe/Serwery Source0: ftp://ftp.kcilink.com/pub/mod_%{mod_name}.c.gz +Patch0: %{name}-name.patch BuildRequires: mysql-devel BuildRequires: /usr/sbin/apxs BuildRequires: apache(EAPI)-devel @@ -29,8 +30,8 @@ klient %prep %setup -q -T -c -cp %{SOURCE0} . -gzip -d mod_%{mod_name}.c.gz +gzip -dc %{SOURCE0} > mod_%{mod_name}.c +%patch -p1 %build /usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lmysqlclient @@ -41,23 +42,23 @@ install -d $RPM_BUILD_ROOT%{_pkglibdir} install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} +%clean +rm -rf $RPM_BUILD_ROOT + %post -/usr/sbin/apxs -e -a -n mysql_auth_module %{_pkglibdir}/mod_%{mod_name}.so 1>&2 +/usr/sbin/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 - /usr/sbin/apxs -e -A -n mysql_auth_module %{_pkglibdir}/mod_%{mod_name}.so 1>&2 + /usr/sbin/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 fi -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(644,root,root,755) %attr(755,root,root) %{_pkglibdir}/* -- 2.44.0