14
0
forked from pool/python-PyICU

- Add remove_six.patch which removes the need to use six.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=29
This commit is contained in:
2023-06-25 20:54:36 +00:00
committed by Git OBS Bridge
parent aa51bc1ad4
commit 8cde1c7ba5
3 changed files with 263 additions and 5 deletions

View File

@@ -25,10 +25,13 @@ License: MIT
Group: Development/Libraries/Python
URL: https://gitlab.pyicu.org
Source0: https://files.pythonhosted.org/packages/source/P/PyICU/PyICU-2.11.tar.gz
# PATCH-FEATURE-UPSTREAM remove_six.patch mcepl@suse.com
# Remove dependency on six
Patch0: remove_six.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
@@ -46,15 +49,15 @@ Python extension wrapping IBM's International Components for Unicode C++
library (ICU).
%prep
%setup -q -n %{modname}-%{version}
%autosetup -p1 -n %{modname}-%{version}
%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check