SPECS: drupal-mod-tinymce.spec - install apache config for /module...

glen glen at pld-linux.org
Mon Aug 15 14:07:21 CEST 2005


Author: glen                         Date: Mon Aug 15 12:07:21 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- install apache config for /modules/tinymce alias

---- Files affected:
SPECS:
   drupal-mod-tinymce.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/drupal-mod-tinymce.spec
diff -u SPECS/drupal-mod-tinymce.spec:1.4 SPECS/drupal-mod-tinymce.spec:1.5
--- SPECS/drupal-mod-tinymce.spec:1.4	Mon Aug 15 13:45:21 2005
+++ SPECS/drupal-mod-tinymce.spec	Mon Aug 15 14:07:16 2005
@@ -4,7 +4,7 @@
 Summary(pl):	Moduł edytora WYSIWYG TinyMCE dla Drupala
 Name:		drupal-mod-%{modname}
 Version:	4.6.0
-Release:	0.16
+Release:	0.20
 Epoch:		0
 License:	GPL
 Group:		Applications/WWW
@@ -21,7 +21,6 @@
 
 %define		_sysconfdir	/etc/drupal
 %define		_moddir		%{_datadir}/drupal/modules
-%define		_htmlmoddir	%{_datadir}/drupal/htdocs/modules
 %define		_tinymceplugindir	%{_datadir}/tinymce/plugins
 
 %description
@@ -52,16 +51,15 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_moddir},%{_htmlmoddir}}
+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%{_htmlmoddir}/tinymce/jscripts
-ln -s %{_datadir}/tinymce $RPM_BUILD_ROOT%{_htmlmoddir}/tinymce/jscripts/tiny_mce
-ln -s ../htdocs/modules/tinymce $RPM_BUILD_ROOT%{_moddir}/tinymce
+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
@@ -75,13 +73,30 @@
 EOF
 fi
 
+%triggerin -- apache1 >= 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
-%{_htmlmoddir}/tinymce
 %{_tinymceplugindir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -90,6 +105,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/08/15 12:07:16  glen
+- install apache config for /modules/tinymce alias
+
 Revision 1.4  2005/08/15 11:45:21  glen
 - unify drupal path macros
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/drupal-mod-tinymce.spec?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list