SPECS: apache-mod_auth_any.spec - unified

glen glen at pld-linux.org
Mon Dec 26 19:26:22 CET 2005


Author: glen                         Date: Mon Dec 26 18:26:22 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unified

---- Files affected:
SPECS:
   apache-mod_auth_any.spec (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: SPECS/apache-mod_auth_any.spec
diff -u SPECS/apache-mod_auth_any.spec:1.27 SPECS/apache-mod_auth_any.spec:1.28
--- SPECS/apache-mod_auth_any.spec:1.27	Sun Aug 29 22:14:53 2004
+++ SPECS/apache-mod_auth_any.spec	Mon Dec 26 19:26:17 2005
@@ -22,12 +22,12 @@
 # Source0-md5:	e9a1825b818d108e1204692da3d7bfd0
 URL:		http://www.itlab.musc.edu/webNIS/mod_auth_any.html
 BuildRequires:	%{apxs}
-BuildRequires:	apache-devel >= 2
-Requires(post,preun):	%{apxs}
-Requires:	apache >= 2
+BuildRequires:	apache-devel >= 2.0
+Requires:	apache(modules-api) = %apache_modules_api
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR)
+%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 This module allows you to use any command line program (such as
@@ -80,22 +80,22 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pkglibdir}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
 
 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
+	$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{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
-	%{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
@@ -104,6 +104,7 @@
 %files
 %defattr(644,root,root,755)
 %doc docs/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -112,6 +113,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28  2005/12/26 18:26:17  glen
+- unified
+
 Revision 1.27  2004/08/29 20:14:53  qboosh
 - fixed linking
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/apache-mod_auth_any.spec?r1=1.27&r2=1.28&f=u



More information about the pld-cvs-commit mailing list