- add gcc43 patch
This commit is contained in:
parent
62db3a5514
commit
a93ccb1a48
81
aspell-0.60.5-gcc43.patch
Normal file
81
aspell-0.60.5-gcc43.patch
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
diff -up aspell-0.60.5/modules/speller/default/readonly_ws.cpp.pom aspell-0.60.5/modules/speller/default/readonly_ws.cpp
|
||||||
|
--- aspell-0.60.5/modules/speller/default/readonly_ws.cpp.pom 2006-11-18 10:17:19.000000000 +0100
|
||||||
|
+++ aspell-0.60.5/modules/speller/default/readonly_ws.cpp 2008-01-22 13:11:19.000000000 +0100
|
||||||
|
@@ -726,7 +726,7 @@ namespace {
|
||||||
|
struct WordLookupParms {
|
||||||
|
const char * block_begin;
|
||||||
|
WordLookupParms() {}
|
||||||
|
- typedef Vector<u32int> Vector;
|
||||||
|
+ typedef acommon::Vector<u32int> Vector;
|
||||||
|
typedef u32int Value;
|
||||||
|
typedef const char * Key;
|
||||||
|
static const bool is_multi = false;
|
||||||
|
diff -up aspell-0.60.5/modules/speller/default/affix.hpp.pom aspell-0.60.5/modules/speller/default/affix.hpp
|
||||||
|
--- aspell-0.60.5/modules/speller/default/affix.hpp.pom 2004-11-29 18:50:06.000000000 +0100
|
||||||
|
+++ aspell-0.60.5/modules/speller/default/affix.hpp 2008-01-22 13:11:19.000000000 +0100
|
||||||
|
@@ -109,7 +109,7 @@ namespace aspeller {
|
||||||
|
}
|
||||||
|
WordAff * expand_suffix(ParmString word, const unsigned char * new_aff,
|
||||||
|
ObjStack &, int limit = INT_MAX,
|
||||||
|
- unsigned char * new_aff = 0, WordAff * * * l = 0,
|
||||||
|
+ unsigned char * new_aff_2 = 0, WordAff * * * l = 0,
|
||||||
|
ParmString orig_word = 0) const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
diff -up aspell-0.60.5/modules/speller/default/affix.cpp.pom aspell-0.60.5/modules/speller/default/affix.cpp
|
||||||
|
--- aspell-0.60.5/modules/speller/default/affix.cpp.pom 2006-01-21 15:27:54.000000000 +0100
|
||||||
|
+++ aspell-0.60.5/modules/speller/default/affix.cpp 2008-01-22 13:11:19.000000000 +0100
|
||||||
|
@@ -193,7 +193,7 @@ struct CondsLookupParms {
|
||||||
|
typedef const Conds * Value;
|
||||||
|
typedef const char * Key;
|
||||||
|
static const bool is_multi = false;
|
||||||
|
- hash<const char *> hfun;
|
||||||
|
+ ::hash<const char *> hfun;
|
||||||
|
size_t hash(const char * s) {return hfun(s);}
|
||||||
|
bool equal(const char * x, const char * y) {return strcmp(x,y) == 0;}
|
||||||
|
const char * key(const Conds * c) {return c->str;}
|
||||||
|
diff -up aspell-0.60.5/prog/aspell.cpp.pom aspell-0.60.5/prog/aspell.cpp
|
||||||
|
--- aspell-0.60.5/prog/aspell.cpp.pom 2006-12-19 11:51:08.000000000 +0100
|
||||||
|
+++ aspell-0.60.5/prog/aspell.cpp 2008-01-22 13:11:19.000000000 +0100
|
||||||
|
@@ -1882,7 +1882,7 @@ struct SML_Parms {
|
||||||
|
typedef SML_WordEntry Value;
|
||||||
|
typedef const char * Key;
|
||||||
|
static const bool is_multi = false;
|
||||||
|
- hash<const char *> hash;
|
||||||
|
+ ::hash<const char *> hash;
|
||||||
|
bool equal(Key x, Key y) {return strcmp(x,y) == 0;}
|
||||||
|
Key key(const Value & v) {return v.word;}
|
||||||
|
};
|
||||||
|
@@ -2033,7 +2033,7 @@ struct CML_Parms {
|
||||||
|
typedef CML_Entry Value;
|
||||||
|
typedef const char * Key;
|
||||||
|
static const bool is_multi = true;
|
||||||
|
- hash<const char *> hash;
|
||||||
|
+ ::hash<const char *> hash;
|
||||||
|
bool equal(Key x, Key y) {return strcmp(x,y) == 0;}
|
||||||
|
Key key(const Value & v) {return v.word;}
|
||||||
|
};
|
||||||
|
diff -up aspell-0.60.5/common/string.hpp.pom aspell-0.60.5/common/string.hpp
|
||||||
|
--- aspell-0.60.5/common/string.hpp.pom 2004-11-29 18:50:05.000000000 +0100
|
||||||
|
+++ aspell-0.60.5/common/string.hpp 2008-01-22 13:11:19.000000000 +0100
|
||||||
|
@@ -492,7 +492,7 @@ namespace acommon {
|
||||||
|
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
- template<> static inline void swap(acommon::String & x, acommon::String & y) {return x.swap(y);}
|
||||||
|
+ template<> inline void swap(acommon::String & x, acommon::String & y) {return x.swap(y);}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
diff -up aspell-0.60.5/common/string_map.hpp.pom aspell-0.60.5/common/string_map.hpp
|
||||||
|
--- aspell-0.60.5/common/string_map.hpp.pom 2004-06-17 14:41:47.000000000 +0200
|
||||||
|
+++ aspell-0.60.5/common/string_map.hpp 2008-01-22 14:00:24.000000000 +0100
|
||||||
|
@@ -11,7 +11,7 @@
|
||||||
|
#include "parm_string.hpp"
|
||||||
|
#include "posib_err.hpp"
|
||||||
|
#include "string_pair.hpp"
|
||||||
|
-#include "hash.hpp"
|
||||||
|
+#include "hash-t.hpp"
|
||||||
|
#include "objstack.hpp"
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A spelling checker
|
Summary: A spelling checker
|
||||||
Name: aspell
|
Name: aspell
|
||||||
Version: 0.60.5
|
Version: 0.60.5
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Epoch: 12
|
Epoch: 12
|
||||||
License: LGPLv2 and MIT
|
License: LGPLv2 and MIT
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
@ -11,6 +11,7 @@ Patch1: aspell-0.50.3-gcc33.patch
|
|||||||
Patch3: aspell-0.60.3-install_info.patch
|
Patch3: aspell-0.60.3-install_info.patch
|
||||||
Patch5: aspell-0.60.5-fileconflict.patch
|
Patch5: aspell-0.60.5-fileconflict.patch
|
||||||
Patch7: aspell-0.60.5-pspell_conf.patch
|
Patch7: aspell-0.60.5-pspell_conf.patch
|
||||||
|
Patch8: aspell-0.60.5-gcc43.patch
|
||||||
Requires: aspell-en
|
Requires: aspell-en
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: gettext, ncurses-devel, pkgconfig
|
BuildRequires: gettext, ncurses-devel, pkgconfig
|
||||||
@ -52,6 +53,7 @@ static libraries and header files needed for Aspell development.
|
|||||||
%patch3 -p1 -b .iinfo
|
%patch3 -p1 -b .iinfo
|
||||||
%patch5 -p1 -b .fc
|
%patch5 -p1 -b .fc
|
||||||
%patch7 -p1 -b .mlib
|
%patch7 -p1 -b .mlib
|
||||||
|
%patch8 -p1 -b .gcc43
|
||||||
iconv -f windows-1252 -t utf-8 manual/aspell.info -o manual/aspell.info.aux
|
iconv -f windows-1252 -t utf-8 manual/aspell.info -o manual/aspell.info.aux
|
||||||
mv manual/aspell.info.aux manual/aspell.info
|
mv manual/aspell.info.aux manual/aspell.info
|
||||||
|
|
||||||
@ -129,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/pspell-config.1*
|
%{_mandir}/man1/pspell-config.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 22 2008 Ivana Varekova <varekova@redhat.com> - 12:0.60.5-4
|
||||||
|
- add gcc43 patch
|
||||||
|
|
||||||
* Thu Feb 8 2007 Ivana Varekova <varekova@redhat.com> - 12:0.60.5-3
|
* Thu Feb 8 2007 Ivana Varekova <varekova@redhat.com> - 12:0.60.5-3
|
||||||
- incorporate package review feedback
|
- incorporate package review feedback
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user