From 76015774dffdc480c51137d126b3af2148edd8ee Mon Sep 17 00:00:00 2001 From: radek Date: Sun, 29 Aug 2004 19:00:45 +0000 Subject: [PATCH] - mv apache{,1}-*; release 1 Changed files: apache1-mod_auth_ldap.spec -> 1.35 --- apache1-mod_auth_ldap.spec | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/apache1-mod_auth_ldap.spec b/apache1-mod_auth_ldap.spec index b2de341..9407bf3 100644 --- a/apache1-mod_auth_ldap.spec +++ b/apache1-mod_auth_ldap.spec @@ -1,4 +1,5 @@ -%define apxs /usr/sbin/apxs +%define mod_name auth_ldap +%define apxs /usr/sbin/apxs1 Summary: This is a LDAP authentication module for Apache Summary(cs): Autentizaèní modul LDAP pro WWW server Apache Summary(da): En LDAP-autenticeringsmodul for Apache @@ -16,9 +17,9 @@ Summary(ru): Summary(sl): Avtentikacijski modul LDAP za Apache Summary(sv): En LDAP autentiseringsmodul för Apache Summary(zh_CN): ÕâÊÇÓÃÓÚ Apache µÄ LDAP Ñé֤ģ¿é -Name: apache-mod_auth_ldap +Name: apache1-mod_%{mod_name} Version: 1.6.0 -Release: 8 +Release: 1 License: BSD Group: Networking/Daemons Source0: http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz @@ -26,15 +27,16 @@ Source0: http://www.rudedog.org/auth_ldap/auth_ldap-%{version}.tar.gz Patch0: %{name}-makefile.patch URL: http://www.rudedog.org/auth_ldap/ BuildRequires: autoconf -BuildRequires: apache(EAPI)-devel +BuildRequires: apache1-devel BuildRequires: openldap-devel BuildRequires: %{apxs} -PreReq: apache(EAPI) -PreReq: apache-mod_auth +PreReq: apache1 +PreReq: apache1-mod_auth Requires(post,preun): %{apxs} +Obsoletes: apache-mod_%{mod_name} <= %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _libexecdir %{_prefix}/lib/apache +%define _pkglibdir %(%{apxs} -q LIBEXECDIR) %description This is an authentication module for Apache that allows you to @@ -127,28 +129,28 @@ mv -f auth_ldap.c mod_auth_ldap.c %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_pkglibdir} -%{__make} install \ - DESTDIR=$RPM_BUILD_ROOT +install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} %clean rm -rf $RPM_BUILD_ROOT %post -%{apxs} -e -a -n auth_ldap %{_libexecdir}/mod_auth_ldap.so 1>&2 -if [ -f /var/lock/subsys/httpd ]; then - /etc/rc.d/init.d/httpd restart 1>&2 +%{apxs} -e -a -n auth_ldap %{_pkglibdir}/mod_auth_ldap.so 1>&2 +if [ -f /var/lock/subsys/apache ]; then + /etc/rc.d/init.d/apache restart 1>&2 fi %preun if [ "$1" = "0" ]; then - %{apxs} -e -A -n auth_ldap %{_libexecdir}/mod_auth_ldap.so 1>&2 - if [ -f /var/lock/subsys/httpd ]; then - /etc/rc.d/init.d/httpd restart 1>&2 + %{apxs} -e -A -n auth_ldap %{_pkglibdir}/mod_auth_ldap.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 *.html PROBLEMS -%attr(755,root,root) %{_libexecdir}/mod_auth_ldap.so +%attr(755,root,root) %{_pkglibdir}/mod_auth_ldap.so -- 2.44.0