%define modname tinymce Summary: Drupal TinyMCE WYSIWYG Editor Module Summary(pl): Moduł edytora WYSIWYG TinyMCE dla Drupala Name: drupal-mod-%{modname} Version: 4.6.0 Release: 0.23 License: GPL Group: Applications/WWW Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz # Source0-md5: dd7630860baf1f7f470d71c272d275eb Source1: %{name}.conf URL: http://drupal.org/project/tinymce BuildRequires: rpmbuild(macros) >= 1.194 BuildRequires: sed >= 4.0 Requires: drupal >= 4.6.0 Requires: tinymce >= 1.44 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/drupal %define _drupaldir %{_datadir}/drupal %define _moddir %{_drupaldir}/modules %define _tinymceplugindir %{_datadir}/tinymce/plugins %description Use the TinyMCE WYSIWYG editor for editing site content. A collaborative project by richardb, mathias and jjeff. Features include: - Drupal image upload integration - 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, 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 %prep %setup -q -n %{modname} rm -f LICENSE.txt # pure GPL # undos the source find '(' -name '*.txt' ')' -print0 | xargs -0 sed -i -e 's, $,,' %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_moddir}} install -d $RPM_BUILD_ROOT%{_tinymceplugindir} install *.module $RPM_BUILD_ROOT%{_moddir} cp -a plugins/* $RPM_BUILD_ROOT%{_tinymceplugindir} install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{modname}.conf install -d $RPM_BUILD_ROOT%{_moddir}/tinymce/jscripts ln -s %{_datadir}/tinymce $RPM_BUILD_ROOT%{_moddir}/tinymce/jscripts/tiny_mce %clean rm -rf $RPM_BUILD_ROOT %post if [ "$1" = 1 ]; then %banner -e %{name} <= 1.3.33-2 # install it only if this apache instance has drupal configured if [ -L /etc/apache/conf.d/??_drupal.conf ]; then %apache_config_install -v 1 -c %{_sysconfdir}/apache-%{modname}.conf fi %triggerun -- apache1 >= 1.3.33-2 %apache_config_uninstall -v 1 %triggerin -- apache >= 2.0.0 # install it only if this apache instance has drupal configured if [ -L /etc/httpd/httpd.conf/??_drupal.conf ]; then %apache_config_install -v 2 -c %{_sysconfdir}/apache-%{modname}.conf fi %triggerun -- apache >= 2.0.0 %apache_config_uninstall -v 2 %files %defattr(644,root,root,755) %doc *.txt tinymce.{mysql,pgsql} %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf %{_moddir}/*.module %{_moddir}/tinymce %{_tinymceplugindir}/*