if xulrunner won't come to hunspell, hunspell will come to xulrunner
This commit is contained in:
parent
28e1593589
commit
c2ecaf82c3
28
hunspell-1.2.2-xulrunner.pita.patch
Normal file
28
hunspell-1.2.2-xulrunner.pita.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
diff -ru hunspell-1.2.2.orig/src/hunspell/hunspell.cxx hunspell-1.2.2/src/hunspell/hunspell.cxx
|
||||||
|
--- hunspell-1.2.2.orig/src/hunspell/hunspell.cxx 2008-05-14 20:49:20.000000000 +0100
|
||||||
|
+++ hunspell-1.2.2/src/hunspell/hunspell.cxx 2008-05-14 20:53:44.000000000 +0100
|
||||||
|
@@ -22,6 +22,11 @@
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+Hunspell::Hunspell(const char * affpath, const char * dpath)
|
||||||
|
+{
|
||||||
|
+ Hunspell::Hunspell(affpath, dpath, NULL);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
Hunspell::Hunspell(const char * affpath, const char * dpath, const char * key)
|
||||||
|
{
|
||||||
|
encoding = NULL;
|
||||||
|
diff -ru hunspell-1.2.2.orig/src/hunspell/hunspell.hxx hunspell-1.2.2/src/hunspell/hunspell.hxx
|
||||||
|
--- hunspell-1.2.2.orig/src/hunspell/hunspell.hxx 2008-05-14 20:49:20.000000000 +0100
|
||||||
|
+++ hunspell-1.2.2/src/hunspell/hunspell.hxx 2008-05-14 20:49:50.000000000 +0100
|
||||||
|
@@ -51,7 +51,8 @@
|
||||||
|
* input: path of affix file and dictionary file
|
||||||
|
*/
|
||||||
|
|
||||||
|
- Hunspell(const char * affpath, const char * dpath, const char * key = NULL);
|
||||||
|
+ Hunspell(const char * affpath, const char * dpath);
|
||||||
|
+ Hunspell(const char * affpath, const char * dpath, const char * key);
|
||||||
|
~Hunspell();
|
||||||
|
|
||||||
|
/* load extra dictionaries (only dic files) */
|
@ -1,7 +1,7 @@
|
|||||||
Name: hunspell
|
Name: hunspell
|
||||||
Summary: Hunspell is a spell checker and morphological analyzer library
|
Summary: Hunspell is a spell checker and morphological analyzer library
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
|
||||||
Source1: http://people.debian.org/~agmartin/misc/ispellaff2myspell
|
Source1: http://people.debian.org/~agmartin/misc/ispellaff2myspell
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -9,6 +9,7 @@ URL: http://hunspell.sourceforge.net/
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
License: LGPLv2+ or GPLv2+ or MPLv1.1
|
License: LGPLv2+ or GPLv2+ or MPLv1.1
|
||||||
BuildRequires: libtool, ncurses-devel
|
BuildRequires: libtool, ncurses-devel
|
||||||
|
Patch0: hunspell-1.2.2-xulrunner.pita.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hunspell is a spell checker and morphological analyzer library and program
|
Hunspell is a spell checker and morphological analyzer library and program
|
||||||
@ -26,6 +27,7 @@ Includes and definitions for developing with hunspell
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .xulrunner.pita.patch
|
||||||
# Filter unwanted Requires for the use explicitely string in ispellaff2myspell
|
# Filter unwanted Requires for the use explicitely string in ispellaff2myspell
|
||||||
cat << \EOF > %{name}-req
|
cat << \EOF > %{name}-req
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@ -91,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/pkgconfig/hunspell.pc
|
%{_libdir}/pkgconfig/hunspell.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 14 2008 Caolan McNamara <caolanm@redhat.com> - 1.2.2-2
|
||||||
|
- give xulrunner what it needs so we can get on with it
|
||||||
|
|
||||||
* Fri Apr 18 2008 Caolan McNamara <caolanm@redhat.com> - 1.2.2-1
|
* Fri Apr 18 2008 Caolan McNamara <caolanm@redhat.com> - 1.2.2-1
|
||||||
- latest version
|
- latest version
|
||||||
- drop integrated hunspell-1.2.1-1863239.badstructs.patch
|
- drop integrated hunspell-1.2.1-1863239.badstructs.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user