15
0
forked from pool/python-ansel
Files
python-ansel/python-ansel.spec
Matej Cepl e0762c48f5 Accepting request 932529 from home:pgajdos:python
- version update to 0.2.0
  * Improve encoding (~50%) and decoding (~25%) performance.
  * Fix handling of combining characters that occur at the end of a file or before
    a control character. In those cases an implicit space (`U+0020`) is
    introduced.
- do not require pytest-runner, it is not needed

OBS-URL: https://build.opensuse.org/request/show/932529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ansel?expand=0&rev=6
2021-11-21 23:42:36 +00:00

64 lines
1.8 KiB
RPMSpec

#
# spec file for package python-ansel
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ansel
Version: 0.2.0
Release: 0
Summary: Codecs for reading/writing documents in the ANSEL character set
License: MIT
Group: Development/Languages/Python
URL: https://github.com/haney/python-ansel
Source: https://files.pythonhosted.org/packages/source/a/ansel/ansel-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pyfakefs}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
# /SECTION
%python_subpackages
%description
Codecs for reading/writing documents in the ANSEL character set.
%prep
%setup -q -n ansel-%{version}
# https://github.com/haney/python-ansel/issues/109
sed -i 's:.pytest-runner.::' setup.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE
%{python_sitelib}/*
%changelog