]> git.pld-linux.org Git - packages/drupal-mod-tinymce.git/commitdiff
- works
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 15 Aug 2005 11:42:43 +0000 (11:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal-mod-tinymce.spec -> 1.3

drupal-mod-tinymce.spec

index 9c118257e7b41e1ac52d1720df48603b87ebaa7a..e700500b1589d4122606b4bd9d7d37ede9eca4be 100644 (file)
@@ -3,19 +3,25 @@ Summary:      Drupal TinyMCE WYSIWYG Editor Module
 Summary(pl):   Modu³ edytora WYSIWYG TinyMCE dla Drupala
 Name:          drupal-mod-%{modname}
 Version:       4.6.0
-Release:       0.1
+Release:       0.15
 Epoch:         0
 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
+Requires:      tinymce >= 1.44
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _sysconfdir     /etc/drupal
 %define                _moddir         %{_datadir}/drupal/modules
+%define                _htmldir        %{_datadir}/drupal/htdocs/modules
+%define                _tinymceplugindir       %{_datadir}/tinymce/plugins
 
 %description
 Use the TinyMCE WYSIWYG editor for editing site content. A
@@ -40,16 +46,40 @@ Mo
 %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%{_moddir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_moddir},%{_htmldir}}
+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%{_htmldir}/tinymce/jscripts
+ln -s %{_datadir}/tinymce $RPM_BUILD_ROOT%{_htmldir}/tinymce/jscripts/tiny_mce
+ln -s ../htdocs/modules/tinymce $RPM_BUILD_ROOT%{_moddir}/tinymce
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+If this your first install of %{modname} module, load the database definition file:
+zcat %{_docdir}/%{name}-%{version}/tinymce.mysql.gz | mysql drupal
+
+EOF
+fi
+
 %files
 %defattr(644,root,root,755)
-%doc *.txt
+%doc *.txt tinymce.{mysql,pgsql}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
 %{_moddir}/*.module
+%{_moddir}/tinymce
+%{_htmldir}/tinymce
+%{_tinymceplugindir}/*
This page took 0.085509 seconds and 4 git commands to generate.