diff --git a/mythes-1.2.1-rhbz675806.patch b/mythes-1.2.1-rhbz675806.patch new file mode 100644 index 0000000..fa2aab1 --- /dev/null +++ b/mythes-1.2.1-rhbz675806.patch @@ -0,0 +1,10 @@ +--- mythes.cxx 2011-02-08 10:42:57.262964286 +0000 ++++ mythes.cxx 2011-02-08 10:43:06.305076490 +0000 +@@ -14,6 +14,7 @@ + encoding = NULL; + list = NULL; + offst = NULL; ++ pdfile = NULL; + + if (thInitialize(idxpath, datpath) != 1) { + fprintf(stderr,"Error - can't open %s or %s\n",idxpath, datpath); diff --git a/mythes.spec b/mythes.spec index 9efa48e..c9f2513 100644 --- a/mythes.spec +++ b/mythes.spec @@ -1,13 +1,14 @@ Name: mythes Summary: A thesaurus library Version: 1.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Source: http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz Group: System Environment/Libraries URL: http://hunspell.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: BSD BuildRequires: hunspell-devel +Patch0: mythes-1.2.1-rhbz675806.patch %description MyThes is a simple thesaurus that uses a structured text data file and an @@ -24,6 +25,7 @@ Includes and definitions for developing with mythes %prep %setup -q +%patch0 -p0 -b .rhbz675806 %build %configure --disable-rpath --disable-static @@ -62,6 +64,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/th_gen_idx.pl %changelog +* Tue Feb 08 2011 Caolán McNamara - 1.2.1-2 +- Resolves: rhbz#675806 fix crash if thesarus is busted + * Mon Jun 21 2010 Caolán McNamara - 1.2.1-1 - latest version