From 86cc6154da8934fb26bb4c5b802acc6bbe1e8ad3 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Mon, 5 Jul 2010 12:36:29 +0000 Subject: [PATCH] fix tests --- hunspell-dict-ko-0.4.2-1278333282.fixtests.patch | 14 ++++++++++++++ hunspell-ko.spec | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 hunspell-dict-ko-0.4.2-1278333282.fixtests.patch diff --git a/hunspell-dict-ko-0.4.2-1278333282.fixtests.patch b/hunspell-dict-ko-0.4.2-1278333282.fixtests.patch new file mode 100644 index 0000000..b90f11a --- /dev/null +++ b/hunspell-dict-ko-0.4.2-1278333282.fixtests.patch @@ -0,0 +1,14 @@ +--- tests/runtest.py 2010-07-05 12:55:25.000000000 +0100 ++++ tests/runtest.py 2010-07-05 12:56:46.000000000 +0100 +@@ -18,9 +18,9 @@ + hunspell_cmd = './hunspell' + else: + hunspell_cmd = 'hunspell' +- hunspell = subprocess.Popen([hunspell_cmd, '-d', '../ko'], ++ hunspell = subprocess.Popen([hunspell_cmd, '-i', 'UTF-8', '-a', '-d', '../ko'], + stdin=subprocess.PIPE, stdout=subprocess.PIPE) +- hunspell.stdout.readline() # the first line "Husnpell 1.2.8 ..." ++ hunspell.stdout.readline() # the first line "Hunspell 1.2.8 ..." + lineno = 0 + errmsg = sys.stderr.write + for l in lines: diff --git a/hunspell-ko.spec b/hunspell-ko.spec index cd62140..932b33a 100644 --- a/hunspell-ko.spec +++ b/hunspell-ko.spec @@ -9,14 +9,16 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: MPLv1.1 or GPLv2 or LGPLv2 BuildArch: noarch BuildRequires: python-lxml, hunspell - Requires: hunspell +Patch0: hunspell-dict-ko-0.4.2-1278333282.fixtests.patch + %description Korean hunspell dictionaries. %prep %setup -q -n hunspell-dict-ko-%{version} +%patch0 -p0 -b .fixtests %build make