From 98dac78090877718b51a516b50981cd37a28b843ffa0b83a0d31020600c847d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 2 Aug 2018 07:42:42 +0000 Subject: [PATCH] - 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 --- python-pyuca.changes | 9 +++++++++ python-pyuca.spec | 26 +++++++++++++------------- pyuca-1.1.tar.gz | 3 --- pyuca-1.2.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 16 deletions(-) delete mode 100644 pyuca-1.1.tar.gz create mode 100644 pyuca-1.2.tar.gz diff --git a/python-pyuca.changes b/python-pyuca.changes index f37c5f1..0b5d151 100644 --- a/python-pyuca.changes +++ b/python-pyuca.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Aug 2 07:39:26 UTC 2018 - tchvatal@suse.com + +- Update to 1.2 release: + * Unicode 8.0 support + * Python3 support +- Switch to singlespec +- Install license + ------------------------------------------------------------------- Thu Jul 16 07:44:36 UTC 2015 - mcihar@suse.cz diff --git a/python-pyuca.spec b/python-pyuca.spec index fa701db..8aed7c7 100644 --- a/python-pyuca.spec +++ b/python-pyuca.spec @@ -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 diff --git a/pyuca-1.1.tar.gz b/pyuca-1.1.tar.gz deleted file mode 100644 index bb838d8..0000000 --- a/pyuca-1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b6aeab245647a8014ced8e8ff5bf523bb4f2ecac0816c7192da9f3d5f091ab8 -size 525527 diff --git a/pyuca-1.2.tar.gz b/pyuca-1.2.tar.gz new file mode 100644 index 0000000..f929b29 --- /dev/null +++ b/pyuca-1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a382fe74627f08c0d18908c0713ca4a20aad5385f077579e56208beea2893b2 +size 1398641