packages: v8cgi/v8cgi.spec - apache build deps, config should not be replaced

glen glen at pld-linux.org
Mon Mar 15 00:31:35 CET 2010


Author: glen                         Date: Sun Mar 14 23:31:35 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- apache build deps, config should not be replaced

---- Files affected:
packages/v8cgi:
   v8cgi.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/v8cgi/v8cgi.spec
diff -u packages/v8cgi/v8cgi.spec:1.7 packages/v8cgi/v8cgi.spec:1.8
--- packages/v8cgi/v8cgi.spec:1.7	Mon Mar 15 00:29:16 2010
+++ packages/v8cgi/v8cgi.spec	Mon Mar 15 00:31:30 2010
@@ -19,17 +19,21 @@
 Source0:	%{name}-%{svnrev}.tar.bz2
 # Source0-md5:	5578247aebd00b5c8a08b0c8b5e3459d
 Source1:	%{name}.conf
-Patch0:	%{name}-pgsql.patch
+Patch0:		%{name}-pgsql.patch
+BuildRequires:	apache-devel >= 2.2
 BuildRequires:	fcgi-devel
 BuildRequires:	gcc >= 5:4.0
 BuildRequires:	libstdc++-devel
 BuildRequires:	postgresql-devel
+BuildRequires:	rpmbuild(macros) >= 1.268
 BuildRequires:	scons
 BuildRequires:	v8-devel
 ExclusiveArch:	%{ix86} %{x8664} arm
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		apxs	/usr/sbin/apxs
+%define		_apacheconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
+%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
 
 %description
 Small set of C++ and JS libraries, allowing coder to use JS as a
@@ -44,9 +48,6 @@
 %description -n apache-mod_v8cgi
 Support for v8cgi within Apache.
 
-%define		_apacheconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
-%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
-
 %prep
 %setup -q -n %{name}
 %if "%{pld_release}" == "ac"
@@ -108,7 +109,7 @@
 
 %files -n apache-mod_v8cgi
 %defattr(644,root,root,755)
-%{_apacheconfdir}/90_mod_%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_apacheconfdir}/90_mod_%{name}.conf
 %attr(755,root,root) %{_pkglibdir}/mod_v8cgi.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -117,6 +118,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2010/03/14 23:31:30  glen
+- apache build deps, config should not be replaced
+
 Revision 1.7  2010/03/14 23:29:16  glen
 - do not remove todo that is not completed
 - fix gcc epoch
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/v8cgi/v8cgi.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list