forked from pool/python-PyICU
Accepting request 504936 from home:okurz:branches:devel:languages:python
Submission of version 1.9.7; dependency for python-vobject; clean dups with fdupes OBS-URL: https://build.opensuse.org/request/show/504936 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=1
This commit is contained in:
84
python-PyICU.spec
Normal file
84
python-PyICU.spec
Normal file
@@ -0,0 +1,84 @@
|
||||
#
|
||||
# spec file for package python-PyICU
|
||||
#
|
||||
# Copyright (c) 2017 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# 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/
|
||||
#
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global modname PyICU
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.9.7
|
||||
Release: 0
|
||||
Summary: Python Extension Wrapping the ICU C++ API
|
||||
License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://pyicu.osafoundation.org/
|
||||
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++
|
||||
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
|
||||
Python extension wrapping IBM's International Components for Unicode C++
|
||||
library (ICU).
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%patch0
|
||||
|
||||
%build
|
||||
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%if 0%{?suse_version} > 1320
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%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
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user