|
|
@@ -133,7 +133,7 @@ Class: PLUS
|
|
|
Group: Web
|
|
|
License: GPL
|
|
|
Version: %{V_drupal}
|
|
|
-Release: 20060815
|
|
|
+Release: 20060816
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://drupal.org/files/projects/drupal-%{V_drupal}.tar.gz
|
|
|
@@ -245,7 +245,9 @@ BuildPreReq: OpenPKG, openpkg >= 20040130
|
|
|
PreReq: OpenPKG, openpkg >= 20040130
|
|
|
PreReq: apache
|
|
|
PreReq: apache::with_mod_php = yes
|
|
|
+PreReq: apache::with_mod_php_mm = yes
|
|
|
PreReq: apache::with_mod_php_mysql = yes
|
|
|
+PreReq: apache::with_mod_php_pcre = yes
|
|
|
PreReq: apache::with_mod_php_xml = yes
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
@@ -868,13 +870,20 @@ AutoReqProv: no
|
|
|
chmod a-x modules/*.module
|
|
|
) || exit $?
|
|
|
|
|
|
+ # adjust default theme because vendor default "blumarine"
|
|
|
+ # uses template engine XTemplate which, as of Drupal
|
|
|
+ # 4.6.x, is incompatible to PHP 5.0.5+/5.1.1+
|
|
|
+ # see http://drupal.org/node/42080
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's/s:10:"bluemarine"/s:9:"chameleon"/' \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/drupal/database/database.mysql
|
|
|
+
|
|
|
# move configuration location
|
|
|
- mv $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites/default \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/drupal/default
|
|
|
- mkdir $RPM_BUILD_ROOT%{l_prefix}/etc/drupal/default/themes
|
|
|
- rmdir $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites
|
|
|
- %{l_shtool} mkln -t -s \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/drupal \
|
|
|
+ mv $RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/drupal/
|
|
|
+ mkdir $RPM_BUILD_ROOT%{l_prefix}/etc/drupal/sites/default/themes
|
|
|
+ %{l_shtool} mkln -s \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/drupal/sites \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/share/drupal/sites
|
|
|
%{l_shtool} mkln -s \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/drupal/files \
|
|
|
@@ -1032,8 +1041,8 @@ AutoReqProv: no
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
%{l_files_std} \
|
|
|
'%config %{l_prefix}/etc/drupal/*' \
|
|
|
- '%config %{l_prefix}/etc/drupal/*/*' \
|
|
|
- '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/drupal/default/*' \
|
|
|
+ '%config %{l_prefix}/etc/drupal/sites/default/*' \
|
|
|
+ '%dir %attr(775,%{l_rusr},%{l_mgrp}) %{l_prefix}/etc/drupal/sites/default' \
|
|
|
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/share/drupal' \
|
|
|
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/drupal' \
|
|
|
'%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/drupal/files'
|