diff --git a/hunspell-1.2.2-xulrunner.pita.patch b/hunspell-1.2.2-xulrunner.pita.patch new file mode 100644 index 0000000..80ea43e --- /dev/null +++ b/hunspell-1.2.2-xulrunner.pita.patch @@ -0,0 +1,42 @@ +--- hunspell-1.2.2.orig/src/hunspell/hunspell.hxx 2008-04-02 13:12:03.000000000 +0100 ++++ hunspell-1.2.2/src/hunspell/hunspell.hxx 2008-05-16 14:49:12.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) */ +@@ -181,7 +181,7 @@ + const char * get_xml_pos(const char * s, const char * attr); + int get_xml_list(char ***slst, char * list, char * tag); + int check_xml_par(char * q, char * attr, char * value); +- ++ void init(const char * affpath, const char * dpath, const char * key); + }; + + #endif +--- hunspell-1.2.2.orig/src/hunspell/hunspell.cxx 2008-04-02 13:12:30.000000000 +0100 ++++ hunspell-1.2.2/src/hunspell/hunspell.cxx 2008-05-16 14:49:50.000000000 +0100 +@@ -22,8 +22,18 @@ + #endif + #endif + ++Hunspell::Hunspell(const char * affpath, const char * dpath) ++{ ++ init(affpath, dpath, NULL); ++} ++ + Hunspell::Hunspell(const char * affpath, const char * dpath, const char * key) + { ++ init(affpath, dpath, key); ++} ++ ++void Hunspell::init(const char * affpath, const char * dpath, const char * key) ++{ + encoding = NULL; + csconv = NULL; + utf8 = 0; diff --git a/hunspell.spec b/hunspell.spec index efd91b3..abb70c5 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -9,6 +9,7 @@ URL: http://hunspell.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: LGPLv2+ or GPLv2+ or MPLv1.1 BuildRequires: libtool, ncurses-devel +Patch0: hunspell-1.2.2-xulrunner.pita.patch %description Hunspell is a spell checker and morphological analyzer library and program @@ -26,6 +27,7 @@ Includes and definitions for developing with hunspell %prep %setup -q +%patch0 -p1 -b .pita.patch # Filter unwanted Requires for the "use explicitely" string in ispellaff2myspell cat << \EOF > %{name}-req #!/bin/sh