14
0
forked from pool/python-pyuca

- Update to 1.2 release:

* Unicode 8.0 support
  * Python3 support
- Switch to singlespec
- Install license

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyuca?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2018-08-02 07:42:42 +00:00
committed by Git OBS Bridge
parent 7e2c9adff6
commit 98dac78090
4 changed files with 25 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyuca
#
# Copyright (c) 2015 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
@@ -16,22 +16,20 @@
#
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
BuildArch: noarch
%endif
Name: python-pyuca
Version: 1.1
Version: 1.2
Release: 0
Summary: Python implementation of the Unicode Collation Algorithm
License: MIT
Group: Development/Languages/Python
Url: http://github.com/jtauber/pyuca
Source: https://pypi.python.org/packages/source/p/pyuca/pyuca-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
%description
This is a Python implementation of the Unicode Collation Algorithm (UCA). It
@@ -42,13 +40,15 @@ variable-weighting setting of Non-ignorable.
%setup -q -n pyuca-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%defattr(-,root,root,-)
%files %{python_files}
%license LICENSE*
%doc README.md
%{python_sitelib}/*
%changelog