- updated to 2.8
authorblekot <blekot@pld-linux.org>
Thu, 19 Apr 2007 12:49:16 +0000 (12:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ajax-spell-fixes.patch -> 1.4
    ajax-spell.spec -> 1.7

ajax-spell-fixes.patch
ajax-spell.spec

index af80578..74f7cb6 100644 (file)
@@ -1,6 +1,5 @@
-diff -u ../pspell_comp.php ./pspell_comp.php
---- ../pspell_comp.php 2005-06-24 15:32:02.000000000 +0300
-+++ ./pspell_comp.php  2005-06-24 15:38:15.000000000 +0300
+--- spell_checker/pspell_comp.php.oryg 2007-04-19 14:37:05.000000000 +0200
++++ spell_checker/pspell_comp.php      2007-04-19 14:38:49.000000000 +0200
 @@ -44,9 +44,9 @@
  
  if(!defined('ASPELL_BIN')) define('ASPELL_BIN','aspell');
@@ -14,35 +13,24 @@ diff -u ../pspell_comp.php ./pspell_comp.php
  
  function pspell_config_create($language, $spelling=null, $jargon=null, $encoding='iso8859-1'){
      return new Pspell($language, $spelling, $jargon, $encoding);
-@@ -120,23 +120,23 @@
-     function _prepareArgs(){
-         $this->args = '';
--        if($this->$language){
--            $this->args .= ' --lang='.escapeshellarg($language);
--        }else{
-+        if ($this->language) {
-+            $this->args .= ' --lang='.escapeshellarg($this->language);
-+        } else {
-             return false; // no lang no spell
-         }
+@@ -129,11 +129,11 @@
          #FIXME how to support spelling?
  
--        if($this->$jargon){
+         if($this->$jargon){
 -            $this->args .= ' --jargon='.escapeshellarg($jargon);
-+        if ($this->jargon){
 +            $this->args .= ' --jargon='.escapeshellarg($this->jargon);
          }
  
--        if($this->$encoding){
+         if($this->$encoding){
 -            $this->args .= ' --encoding='.escapeshellarg($encoding);
-+        if($this->encoding){
 +            $this->args .= ' --encoding='.escapeshellarg($this->encoding);
          }
  
--        switch ($this->mode){
-+        switch ($this->mode) {
-             case PSPELL_FAST:
-                 $this->args .= ' --sug-mode=fast';
-                 break;
+         switch ($this->mode){
+@@ -233,4 +233,4 @@
+     }
+ }
+-?>
+\ Brak znaku nowej linii na koñcu pliku
++?>
index f1741b8..526baf7 100644 (file)
@@ -4,13 +4,13 @@
 Summary:       AJAX spell checker
 Summary(pl.UTF-8):     AJAX - narzędzie do sprawdzania pisowni
 Name:          ajax-spell
-Version:       2.2
+Version:       2.8
 Release:       1
 Epoch:         0
 License:       BSD
 Group:         Applications/WWW
 Source0:       http://dl.sourceforge.net/ajax-spell/spell_checker-%{version}.zip
-# Source0-md5: 7574b0c1f6635301533f914be7caea2b
+# Source0-md5: 6ff8f7e585533d6166932608ea3541ea
 Patch0:                %{name}-fixes.patch
 URL:           http://www.broken-notebook.com/spell_checker/
 Requires:      pspell
@@ -31,18 +31,18 @@ użyciu PHP, JavaScriptu oraz pspella/aspella.
 # undos the source
 find . -type f -print0 | xargs -0 sed -i -e 's,
 $,,'
-%patch0 -p1
+%patch0 -p0
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-cp -a *.js *.php *.css $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -a spell_checker/js/*js spell_checker/*.php spell_checker/css/*.css $RPM_BUILD_ROOT%{_datadir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Readme.txt
+%doc spell_checker/Readme.txt
 %{_datadir}/%{name}
This page took 0.048886 seconds and 4 git commands to generate.