fix tests
This commit is contained in:
parent
290fb7ef39
commit
86cc6154da
14
hunspell-dict-ko-0.4.2-1278333282.fixtests.patch
Normal file
14
hunspell-dict-ko-0.4.2-1278333282.fixtests.patch
Normal file
@ -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:
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user