[tinymce-spellchecker] Initial import (#608575).

ngompa ngompa at fedoraproject.org
Wed Jul 27 01:11:23 UTC 2011


commit 3a020feb692a08e6ed78792b5625f66e1b88c8eb
Author: Neal Gompa (Conan Kudo) <ngompa13 at gmail.com>
Date:   Sat Jul 23 16:46:06 2011 -0500

    Initial import (#608575).

 .gitignore                |    1 +
 sources                   |    1 +
 tinymce-spellchecker.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1b251d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tinymce_spellchecker_php_2_0_5.zip
diff --git a/sources b/sources
index e69de29..2ef77fc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bea88e531a784a9459b28c5cac9c4c66  tinymce_spellchecker_php_2_0_5.zip
diff --git a/tinymce-spellchecker.spec b/tinymce-spellchecker.spec
new file mode 100644
index 0000000..5dc01d4
--- /dev/null
+++ b/tinymce-spellchecker.spec
@@ -0,0 +1,81 @@
+%global		ver %(echo %{version} | tr . _)
+Summary:	TinyMCE spellchecker plugin
+Name:		tinymce-spellchecker
+Version:	2.0.5
+Release:	4%{?dist}
+Group:		Applications/Publishing
+URL:		http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker
+License:	LGPLv2+
+
+Source0:	http://cloud.github.com/downloads/tinymce/tinymce/tinymce_spellchecker_php_%{ver}.zip
+BuildArch:	noarch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires:	tinymce >= 3.1.1
+Requires:	php >= 5.2.0
+Requires:	php-pspell
+Requires:	php-mbstring
+
+%global		_plugindir	%{_datadir}/tinymce/jscripts/tiny_mce/plugins
+
+%description
+This plugin adds spellchecker functionality to TinyMCE by providing a
+new button that performs a AJAX call to a back-end PHP page that uses
+PSpell/ASpell or Google spellchecker.
+
+%prep
+%setup -q -n spellchecker
+# Convert to utf-8
+for file in changelog.txt; do
+    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
+    touch -r $file $file.new && \
+    mv $file.new $file
+done
+# Convert from DOS to UNIX line endings
+for file in changelog.txt; do
+ sed "s|\r||g" $file > $file.new && \
+ touch -r $file $file.new && \
+ mv $file.new $file
+done
+
+
+%build
+# Nothing here, since it is webapp
+# so, nothing has to be compiled
+
+%install
+mkdir -p ${RPM_BUILD_ROOT}%{_plugindir}/spellchecker
+cp -pr * ${RPM_BUILD_ROOT}%{_plugindir}/spellchecker
+# Remove unnecessary src *.js files
+find ${RPM_BUILD_ROOT} -name '*_src.js' | xargs rm
+# Remove empty files to make rpmlint happy
+find ${RPM_BUILD_ROOT} -empty -exec rm -f {} \;
+# Set the appropriate permissions, since unzip doesn't
+chmod -R 755 ${RPM_BUILD_ROOT}%{_plugindir}/spellchecker
+find ${RPM_BUILD_ROOT}%{_plugindir}/spellchecker -type f | xargs chmod 644
+# These are docs, remove them from here, docify them later
+rm -f ${RPM_BUILD_ROOT}%{_plugindir}/spellchecker/changelog.txt
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%files
+%defattr(-,root,root,-)
+%dir %{_plugindir}/spellchecker
+%doc changelog.txt
+%{_plugindir}/spellchecker/*
+
+
+%changelog
+* Tue Jul 26 2011 Neal Gompa <ngompa13{%}gmail{*}com> - 2.0.5-4
+- Converted defined macros into globally defined ones
+- Corrected spelling of "backend" to "back-end" to shut up rpmlinit
+* Mon Jul 11 2011 Neal Gompa <ngompa13{%}gmail{*}com> - 2.0.5-3
+- Update to 2.0.5
+- Change to new source URL
+- Removed redundant entries
+* Mon Jun 28 2010 Neal Gompa <ngompa13{%}gmail{*}com> - 2.0.3-2
+- Remove explicit unzip BuildRequires
+- Remove php-curl Requires, it is in php-common
+* Sun Jun 27 2010 Neal Gompa <ngompa13{%}gmail{*}com> - 2.0.3-1
+- Initial package created
+


More information about the scm-commits mailing list