14
0
forked from pool/python-pyuca

Accepting request 707417 from home:pgajdos

- turn on the testsuite
- added sources
  + test.py

OBS-URL: https://build.opensuse.org/request/show/707417
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyuca?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2019-06-04 10:02:44 +00:00
committed by Git OBS Bridge
parent 98dac78090
commit 16b3afab20
3 changed files with 259 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyuca
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,7 +12,7 @@
# 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/
#
@@ -25,7 +25,9 @@ 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
Source0: https://pypi.python.org/packages/source/p/pyuca/pyuca-%{version}.tar.gz
# https://github.com/jtauber/pyuca/issues/21
Source1: https://raw.githubusercontent.com/jtauber/pyuca/master/test.py
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -38,6 +40,7 @@ variable-weighting setting of Non-ignorable.
%prep
%setup -q -n pyuca-%{version}
cp %{SOURCE1} .
%build
%python_build
@@ -46,6 +49,9 @@ variable-weighting setting of Non-ignorable.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand $python -munittest discover -v
%files %{python_files}
%license LICENSE*
%doc README.md