From ffea347a319d9c9295e5efb8c1397cb42fc683f6534b56369f82fc74d2a30cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 8 Jan 2019 11:26:59 +0000 Subject: [PATCH] Accepting request 663619 from home:alarrosa:branches:devel:languages:python:flask - Use enchant 1 in SLE 15/Leap 15 OBS-URL: https://build.opensuse.org/request/show/663619 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyenchant?expand=0&rev=21 --- python-pyenchant.changes | 5 +++++ python-pyenchant.spec | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/python-pyenchant.changes b/python-pyenchant.changes index 5e35651..e1837c1 100644 --- a/python-pyenchant.changes +++ b/python-pyenchant.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 8 10:48:47 UTC 2019 - alarrosa@suse.com + +- Use enchant 1 in SLE 15/Leap 15 + ------------------------------------------------------------------- Fri Aug 24 13:01:16 UTC 2018 - tchvatal@suse.com diff --git a/python-pyenchant.spec b/python-pyenchant.spec index 7bacc17..0dbfec7 100644 --- a/python-pyenchant.spec +++ b/python-pyenchant.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyenchant # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -28,14 +28,22 @@ URL: https://github.com/rfk/pyenchant/ Source: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz Patch0: enchant2.patch BuildRequires: %{python_module setuptools} +%if 0%{?suse_version} > 1500 BuildRequires: enchant-2-backend-hunspell +%else +BuildRequires: enchant +%endif BuildRequires: fdupes BuildRequires: myspell-en BuildRequires: myspell-en_AU BuildRequires: myspell-en_US BuildRequires: python-rpm-macros BuildRequires: python3-2to3 +%if 0%{?suse_version} > 1500 Requires: enchant-2-backend-hunspell +%else +Requires: enchant +%endif Provides: python-enchant BuildArch: noarch %ifpython2