packages: lenya/lenya.spec - configured to use mysql - added mysql db initi...

pawelz pawelz at pld-linux.org
Thu Oct 8 13:34:48 CEST 2009


Author: pawelz                       Date: Thu Oct  8 11:34:48 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- configured to use mysql
- added mysql db initialization script as %doc

---- Files affected:
packages/lenya:
   lenya.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/lenya/lenya.spec
diff -u packages/lenya/lenya.spec:1.1 packages/lenya/lenya.spec:1.2
--- packages/lenya/lenya.spec:1.1	Mon Oct  5 14:03:04 2009
+++ packages/lenya/lenya.spec	Thu Oct  8 13:34:42 2009
@@ -13,6 +13,9 @@
 # Source0-md5:	7e600d88ad6c866b5eda30d6d0133d11
 Source1:	%{name}-context.xml
 Source2:	%{name}-log4j.xconf
+Source3:	%{name}-cocoon.xconf
+Source4:	%{name}-web.xml
+Source5:	${name}-mysql-schema.sql
 URL:		http://lenya.apache.org/
 BuildRequires:	jpackage-utils
 BuildRequires:	rpm-javaprov
@@ -30,6 +33,8 @@
 %prep
 %setup -q -n apache-%{name}-%{version}-src
 
+cp %{SOURCE5} mysql-schema.sql
+
 %build
 required_jars="bcel regexp xalan xercesImpl xml-apis"
 CLASSPATH=$(build-classpath $required_jars)
@@ -49,6 +54,8 @@
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sharedstatedir}/tomcat/conf/Catalina/localhost/lenya.xml
 cp -a build/lenya/webapp $RPM_BUILD_ROOT%{_datadir}/lenya
 cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/lenya/WEB-INF/log4j.xconf
+cp %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/lenya/WEB-INF/cocoon.xconf
+cp %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/lenya/WEB-INF/web.xml
 mv $RPM_BUILD_ROOT%{_datadir}/lenya/WEB-INF/{*conf,*xml,*properties} $RPM_BUILD_ROOT%{_sysconfdir}/lenya
 for I in $RPM_BUILD_ROOT%{_sysconfdir}/lenya/*; do
   ln -sf %{_sysconfdir}/lenya/$(basename $I) $RPM_BUILD_ROOT%{_datadir}/lenya/WEB-INF/
@@ -65,6 +72,7 @@
 
 %files
 %defattr(644,root,root,755)
+%doc mysql-schema.sql
 %dir %{_sysconfdir}/lenya
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lenya/*
 %config(noreplace) %verify(not md5 mtime size) %{_sharedstatedir}/tomcat/conf/Catalina/localhost/lenya.xml
@@ -78,6 +86,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/10/08 11:34:42  pawelz
+- configured to use mysql
+- added mysql db initialization script as %doc
+
 Revision 1.1  2009/10/05 12:03:04  pawelz
 - initial
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lenya/lenya.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list