%define _ver 4.6
-%define _patchlevel 5
+%define _patchlevel 7
Summary: Open source content management platform
Summary(pl): Platforma do zarz±dzania tre¶ci± o otwartych ¼ród³ach
Name: drupal
Version: %{_ver}.%{_patchlevel}
-Release: 0.21
+Release: 3
License: GPL
Group: Applications/WWW
Source0: http://drupal.org/files/projects/%{name}-%{version}.tar.gz
-# Source0-md5: 21e5e768d92fb6ecf52d56cacd37706e
+# Source0-md5: 8c15ded4450a1afcf0c5b6593dc74541
Source1: %{name}.conf
Source2: %{name}.cron
Source3: %{name}.PLD
%package themes
Summary: Themes distributed with Drupal
+Summary(pl): Motywy rozprowadzane z Drupalem
Group: Applications/WWW
Requires: %{name} = %{version}-%{release}
Provides: drupal(theme) = %{_ver}
%description themes
This package contains themes distributed with Drupal.
+%description themes -l pl
+Ten pakiet zawiera motywy rozprowadzane z Drupalem.
+
%package xmlrpc
Summary: XMLRPC server for Drupal
Summary(pl): Serwer XMLRPC dla Drupala
%triggerun -- apache1
%webapp_unregister apache %{_webapp}
-%triggerin -- apache >= 2.0.0
+%triggerin -- apache < 2.2.0, apache-base
%webapp_register httpd %{_webapp}
-%triggerun -- apache >= 2.0.0
+%triggerun -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
%triggerpostun -- %{name} < 4.6.4-0.4
fi
if [ "$httpd_reload" ]; then
- %service httpd reload
+ %service -q httpd reload
fi
if [ "$apache_reload" ]; then
- %service apache reload
+ %service -q apache reload
fi
+%triggerpostun -- %{name} < 4.6.7-2.6
+grep -c This_is_a_Drupal_security_line_do_not_remove \
+%{_sysconfdir}/apache.conf %{_sysconfdir}/httpd.conf \
+| awk -F: '/:0/{print $1}' | xargs -r \
+sed -i -e '
+/<Directory \/var\/lib\/drupal>/{
+ n
+ a\ SetHandler This_is_a_Drupal_security_line_do_not_remove
+}'
+[ ! -L /etc/httpd/webapps.d/drupal.conf ] || %service -q httpd reload
+[ ! -L /etc/apache/webapps.d/drupal.conf ] || %service -q apache reload
+
%files
%defattr(644,root,root,755)
%doc *.txt README.PLD
%{_appdir}/modules
%{_appdir}/scripts
%dir %{_appdir}/themes
+%dir %{_appdir}/themes/engines
%{_appdir}/po
%{_appdir}/update.php
# symlinks
%files themes
%defattr(644,root,root,755)
-%{_appdir}/themes/*
+%{_appdir}/themes/[!e]*
+%{_appdir}/themes/engines/*
%{_appdir}/htdocs/themes/*
%files xmlrpc