SPECS: drupal.spec - database related stuff to database subpackages

glen glen at pld-linux.org
Mon Oct 31 15:00:30 CET 2005


Author: glen                         Date: Mon Oct 31 14:00:30 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- database related stuff to database subpackages

---- Files affected:
SPECS:
   drupal.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: SPECS/drupal.spec
diff -u SPECS/drupal.spec:1.35 SPECS/drupal.spec:1.36
--- SPECS/drupal.spec:1.35	Mon Oct 31 14:53:22 2005
+++ SPECS/drupal.spec	Mon Oct 31 15:00:18 2005
@@ -3,7 +3,7 @@
 Summary(pl):	Platforma do zarządzania treścią o otwartych źródłach
 Name:		drupal
 Version:	4.6.3
-Release:	0.32
+Release:	0.33
 License:	GPL
 Group:		Applications/WWW
 Source0:	http://drupal.org/files/projects/%{name}-%{version}.tar.gz
@@ -199,20 +199,26 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
+%post db-mysql
 if [ "$1" = 1 ]; then
-%banner -e %{name} <<EOF
-If this is your first install of Drupal, you need to create drupal database:
-mysqladmin create drupal
-
-and import initial schema:
-zcat %{_docdir}/%{name}-%{version}/database/database.mysql.gz | mysql drupal
+%banner -e %{name}-db-mysql <<EOF
+If this is your first install of Drupal, you need to create Drupal database:
 
-and grant permissions:
+mysqladmin create drupal
+zcat %{_docdir}/%{name}-db-mysql-%{version}/database.mysql.gz | mysql drupal
 mysql -e "GRANT SELECT, INSERT, UPDATE, DELETE ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'PASSWORD'"
 mysql -e "GRANT CREATE TEMPORARY TABLES, LOCK TABLES ON *.* TO 'drupal'@'localhost"
 
-Be sure to read INSTALL.txt from documentation!
+EOF
+fi
+
+%post db-pgsql
+if [ "$1" = 1 ]; then
+%banner -e %{name}-db-pgsql <<EOF
+If this is your first install of Drupal, you need to create Drupal database:
+
+and import initial schema from
+%{_docdir}/%{name}-db-pgsql-%{version}/database.pgsql.gz
 
 EOF
 fi
@@ -231,7 +237,8 @@
 
 %files
 %defattr(644,root,root,755)
-%doc *.txt database README.replication README.PLD
+%doc *.txt README.PLD
+%doc database/updates.inc
 
 %attr(750,root,http) %dir %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
@@ -266,9 +273,12 @@
 
 %files db-mysql
 %defattr(644,root,root,755)
+%doc database/*.mysql
+%doc README.replication
 
 %files db-pgsql
 %defattr(644,root,root,755)
+%doc database/*.pgsql
 
 %files xmlrpc
 %defattr(644,root,root,755)
@@ -280,6 +290,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2005/10/31 14:00:18  glen
+- database related stuff to database subpackages
+
 Revision 1.35  2005/10/31 13:53:22  glen
 - sample for granting mysql access permissions
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/drupal.spec?r1=1.35&r2=1.36&f=u




More information about the pld-cvs-commit mailing list