+# TODO
+# - webapps: register this pkg only if this webserver instance has drupal webapp configured
%define modname tinymce
Summary: Drupal TinyMCE WYSIWYG Editor Module
-Summary(pl): Modu³ edytora WYSIWYG TinyMCE dla Drupala
+Summary(pl.UTF-8): Moduł edytora WYSIWYG TinyMCE dla Drupala
Name: drupal-mod-%{modname}
Version: 4.6.0
-Release: 0.25
+Release: 1
License: GPL
Group: Applications/WWW
Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
-# Source0-md5: dd7630860baf1f7f470d71c272d275eb
+# Source0-md5: 050b885a5437c492f2e9d49181db9326
Source1: %{name}.conf
URL: http://drupal.org/project/tinymce
BuildRequires: rpmbuild(macros) >= 1.264
BuildRequires: sed >= 4.0
-Requires: webapps >= 0.2
Requires: drupal >= 4.6.0
+Requires: tinymce < 2.0
Requires: tinymce >= 1.44
+Requires: webapps >= 0.2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
- Dynamically turn off/on TinyMCE per textarea field
- Assign different tinymce profiles per role
-%description -l pl
-Ten modu³ pozwala u¿ywaæ edytora WYSIWYG TinyMCE do modyfikowania
-tre¶ci stron. Jest to wspólny projekt, który stworzyli richardb,
+%description -l pl.UTF-8
+Ten moduł pozwala używać edytora WYSIWYG TinyMCE do modyfikowania
+treści stron. Jest to wspólny projekt, który stworzyli richardb,
mathias i jjeff.
-Mo¿liwo¶ci obejmuj±:
-- integracjê umieszczania obrazków w Drupalu
-- dynamiczne wy³±czanie/w³±czanie TinyMCE dla pól textarea
-- przypisywanie ró¿nych profili tinymce dla ról
+Możliwości obejmują:
+- integrację umieszczania obrazków w Drupalu
+- dynamiczne wyłączanie/włączanie TinyMCE dla pól textarea
+- przypisywanie różnych profili tinymce dla ról
%prep
%setup -q -n %{modname}
rm -f LICENSE.txt # pure GPL
# undos the source
-find '(' -name '*.txt' ')' -print0 | xargs -0 sed -i -e 's,
-$,,'
+find '(' -name '*.txt' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
%install
rm -rf $RPM_BUILD_ROOT
EOF
fi
-%triggerin -- apache1
# TODO install it only if this apache instance has drupal configured
+%triggerin -- apache1 < 1.3.37-3, apache1-base
%webapp_register apache %{_webapp}
-%triggerun -- apache1
+%triggerun -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
-%triggerin -- apache >= 2.0.0
-# TODO install it only if this apache instance has drupal configured
+%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.0-0.25
-# migrate from apache-config macros
-if [ -f /etc/drupal/apache-tinymce.conf.rpmsave ]; then
- if [ -d /etc/apache/webapps.d ]; then
- cp -f %{_sysconfdir}/apache.conf{,.rpmnew}
- cp -f /etc/drupal/apache-tinymce.conf.rpmsave %{_sysconfdir}/apache.conf
- fi
-
- if [ -d /etc/httpd/webapps.d ]; then
- cp -f %{_sysconfdir}/httpd.conf{,.rpmnew}
- cp -f /etc/drupal/apache-tinymce.conf.rpmsave %{_sysconfdir}/httpd.conf
- fi
- rm -f /etc/drupal/apache-tinymce.conf.rpmsave
-fi
-
-# place new config location, as trigger puts config only on first install, do it here.
-if [ -L /etc/apache/conf.d/99_%{name}.conf ]; then
- rm -f /etc/apache/conf.d/99_%{name}.conf
- /usr/sbin/webapp register apache %{_webapp}
- apache_reload=1
-fi
-if [ -L /etc/httpd/httpd.conf/99_%{name}.conf ]; then
- rm -f /etc/httpd/httpd.conf/99_%{name}.conf
- /usr/sbin/webapp register httpd %{_webapp}
- httpd_reload=1
-fi
-
-if [ "$httpd_reload" ]; then
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd reload 1>&2
- fi
-fi
-if [ "$apache_reload" ]; then
- if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache reload 1>&2
- fi
-fi
-
%files
%defattr(644,root,root,755)
%doc *.txt tinymce.{mysql,pgsql}