forked from pool/python-PyICU
- Version update to 2.2:
* Many fixes to build well with newest ICU releases - Drop not really needed service - Cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
a7416abbdb
commit
c045f610d5
@@ -12,42 +12,32 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global modname PyICU
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 2.0.2
|
||||
Version: 2.2
|
||||
Release: 0
|
||||
Summary: Python Extension Wrapping the ICU C++ API
|
||||
License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
Url: https://github.com/ovalhub/pyicu
|
||||
Source0: https://pypi.io/packages/source/P/%{modname}/%{modname}-%{version}.tar.gz
|
||||
%{?python_provide:%python_provide python-%{modname}}
|
||||
URL: https://github.com/ovalhub/pyicu
|
||||
Source0: https://files.pythonhosted.org/packages/source/P/PyICU/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: pkgconfig(icu-i18n)
|
||||
BuildRequires: pkgconfig(icu-uc)
|
||||
Provides: %{modname} = %{version}
|
||||
Provides: python-ICU = %{version}
|
||||
Obsoletes: python-ICU < 1.2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 1320
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%if 0%{?suse_version} >= 1210
|
||||
BuildRequires: pkgconfig(icu-i18n)
|
||||
BuildRequires: pkgconfig(icu-uc)
|
||||
%else
|
||||
BuildRequires: libicu-devel
|
||||
Requires: python = %{py_ver}
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -64,23 +54,15 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%if 0%{?suse_version} > 1320
|
||||
%check
|
||||
# Running test on python3 only due to pyicu issue 61
|
||||
%if 0%{?have_python3}
|
||||
python3 setup.py test
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%if 0%{?suse_version} >= 1310
|
||||
%doc CHANGES CREDITS LICENSE README.md
|
||||
%else
|
||||
%doc CHANGES CREDITS LICENSE README
|
||||
%endif
|
||||
%license LICENSE
|
||||
%doc CHANGES CREDITS README.md
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user