SPECS: apache-mod_vhost_dbi.spec - unified - package the config fi...

glen glen at pld-linux.org
Tue Dec 27 02:13:19 CET 2005


Author: glen                         Date: Tue Dec 27 01:13:19 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unified
- package the config file
- add BR libdbi-devel

---- Files affected:
SPECS:
   apache-mod_vhost_dbi.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/apache-mod_vhost_dbi.spec
diff -u SPECS/apache-mod_vhost_dbi.spec:1.4 SPECS/apache-mod_vhost_dbi.spec:1.5
--- SPECS/apache-mod_vhost_dbi.spec:1.4	Tue Sep 13 13:40:29 2005
+++ SPECS/apache-mod_vhost_dbi.spec	Tue Dec 27 02:13:14 2005
@@ -1,4 +1,4 @@
-# $Rev$, $Date$
+# $Revision$, $Date$
 %define		mod_name	vhost_dbi
 %define 	apxs		/usr/sbin/apxs
 Summary:	mod_vhost_dbi - dynamic virtual hosting using database to store information
@@ -12,18 +12,19 @@
 # Source0-md5:	fd70c654e6b2e78280acb4643207ab68
 URL:		http://www.outoforder.cc/projects/apache/mod_vhost_dbi/
 BuildRequires:	%{apxs}
-BuildRequires:	autoconf
-BuildRequires:	automake
 BuildRequires:	apache-devel >= 2.0.40
 BuildRequires:	apache-mod_dbi_pool-devel >= 0.4.0
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	libdbi-devel
 BuildRequires:	libtool
-BuildRequires:	sed
-Requires:	apache >= 2.0.40
+BuildRequires:	sed >= 4.0
+Requires:	apache(modules-api) = %apache_modules_api
 Requires:	apache-mod_dbi_pool >= 0.4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
-%define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 mod_vhost_dbi creates virtual hosts for Apache 2.0 completely
@@ -56,10 +57,8 @@
 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_includedir}/apache,%{_sysconfdir}/httpd.conf}
 
 install src/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/79_%{mod_name}.conf
-LoadModule %{mod_name}_module        modules/mod_%{mod_name}.so
-# vim: filetype=apache ts=4 sw=4 et
-EOF
+echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
+	$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/79_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -78,6 +77,7 @@
 
 %files
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -86,6 +86,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/12/27 01:13:14  glen
+- unified
+- package the config file
+- add BR libdbi-devel
+
 Revision 1.4  2005/09/13 11:40:29  spider
 - use config file to load module (thanks glen)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/apache-mod_vhost_dbi.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list