forked from pool/python-PyICU
Accepting request 568896 from home:mlin7442:branches:devel:languages:python
update to new version and fixed build failure with icu 60 OBS-URL: https://build.opensuse.org/request/show/568896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
78c32d7174
commit
a7416abbdb
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-PyICU
|
||||
# spec file for package python
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 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
|
||||
@@ -15,24 +15,24 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global modname PyICU
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.9.7
|
||||
Version: 2.0.2
|
||||
Release: 0
|
||||
Summary: Python Extension Wrapping the ICU C++ API
|
||||
License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://pyicu.osafoundation.org/
|
||||
Url: https://github.com/ovalhub/pyicu
|
||||
Source0: https://pypi.io/packages/source/P/%{modname}/%{modname}-%{version}.tar.gz
|
||||
Patch0: python-%{modname}-%{version}-quote_Version.patch
|
||||
%{?python_provide:%python_provide python-%{modname}}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python-rpm-macros
|
||||
Provides: %{modname} = %{version}
|
||||
Provides: python-ICU = %{version}
|
||||
Obsoletes: python-ICU < 1.2
|
||||
@@ -56,7 +56,6 @@ library (ICU).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%patch0
|
||||
|
||||
%build
|
||||
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
@@ -69,7 +68,10 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
|
||||
%if 0%{?suse_version} > 1320
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
# Running test on python3 only due to pyicu issue 61
|
||||
%if 0%{?have_python3}
|
||||
python3 setup.py test
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
|
Reference in New Issue
Block a user