SPECS: tinymce-spellchecker.spec - install js part to tinymce dir, alias on...
glen
glen at pld-linux.org
Mon Sep 1 19:22:46 CEST 2008
Author: glen Date: Mon Sep 1 17:22:46 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- install js part to tinymce dir, alias only rpc.php
---- Files affected:
SPECS:
tinymce-spellchecker.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/tinymce-spellchecker.spec
diff -u SPECS/tinymce-spellchecker.spec:1.1 SPECS/tinymce-spellchecker.spec:1.2
--- SPECS/tinymce-spellchecker.spec:1.1 Mon Jun 16 10:53:11 2008
+++ SPECS/tinymce-spellchecker.spec Mon Sep 1 19:22:41 2008
@@ -3,12 +3,13 @@
Summary: TinyMCE spellchecker plugin
Name: tinymce-spellchecker
Version: 2.0.2
-Release: 0.1
+Release: 0.3
License: LGPL v2
Group: Applications/WWW
Source0: http://dl.sourceforge.net/tinymce/tinymce_spellchecker_php_%{ver}.zip
# Source0-md5: 71ea3f554466fed09530a89fb98e6eee
-URL: http://tinymce.moxiecode.com/
+URL: http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker
+Requires: tinymce >= 3.1.1-0.2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -16,32 +17,35 @@
%define _webapp %{name}
%define _sysconfdir %{_webapps}/%{_webapp}
%define _appdir %{_datadir}/%{_webapp}
+%define _plugindir %{_datadir}/tinymce/plugins/spellchecker
%description
-Serverside spellchecker plugin, current version only supports PHP with
-pspell or the Google XML service.
+This plugin adds spellchecker functionality to TinyMCE by providing a
+new button that performs a AJAX call to a backend PHP page that uses
+PSpell/ASpell or Google spellchecker.
%prep
%setup -qc
mv spellchecker/* .
cat <<'EOF' > apache.conf
-Alias /%{_webapp} %{_appdir}/htdocs
-<Directory %{_appdir}/htdocs>
+Alias /tinymce/plugins/spellchecker/rpc.php %{_appdir}/rpc.php
+<Directory %{_appdir}>
Allow from all
</Directory>
EOF
cat > lighttpd.conf <<'EOF'
alias.url += (
- "/%{_webapp}" => "%{_appdir}/htdocs",
+ "/tinymce/plugins/spellchecker/rpc.php" => "%{_appdir}/rpc.php",
)
EOF
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/htdocs}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},%{_plugindir}}
-cp -a editor_plugin.js rpc.php css img $RPM_BUILD_ROOT%{_appdir}/htdocs
+cp -a editor_plugin.js css img $RPM_BUILD_ROOT%{_plugindir}
+cp -a rpc.php $RPM_BUILD_ROOT%{_appdir}
cp -a classes includes $RPM_BUILD_ROOT%{_appdir}
cp -a config.php $RPM_BUILD_ROOT%{_sysconfdir}
cp -a apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
@@ -78,6 +82,7 @@
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
%{_appdir}
+%{_plugindir}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -85,5 +90,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2008/09/01 17:22:41 glen
+- install js part to tinymce dir, alias only rpc.php
+
Revision 1.1 2008/06/16 08:53:11 glen
- new
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tinymce-spellchecker.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list