15
0
Files
python-precis-i18n/python-precis-i18n.spec
Dirk Mueller 2b9dc1f691 - update to 1.0.4:
* Update internal tables for Unicode 14.0. These updates also affect context
   rules for Unicode 11.0 through 13.0.
  * In limited cases under previous versions of precis_i18n, valid strings under
   Unicode 11.0-13.0 were erroneously DISALLOWED due to context reasons
   hebrew_punctuation, katakana_middle_dot, and zero_width_nonjoiner. (Issue #19)
  * Add type hints for package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-precis-i18n?expand=0&rev=11
2022-02-14 21:52:02 +00:00

70 lines
2.3 KiB
RPMSpec

#
# spec file for package python-precis-i18n
#
# Copyright (c) 2022 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() python3-%{**}}
%define skip_python2 1
%define _name precis_i18n
Name: python-precis-i18n
Version: 1.0.4
Release: 0
Summary: Internationalised Usernames and Passwords
License: MIT
Group: Development/Languages/Python
URL: https://github.com/byllyfish/precis_i18n
Source: https://github.com/byllyfish/precis_i18n/archive/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-unicodedata2
BuildArch: noarch
%python_subpackages
%description
The PRECIS framework makes internationalised user names and
passwords safer for use by applications. PRECIS profiles transform
unicode strings into a canonical form, suitable for comparison.
This module implements the PRECIS Framework as described in:
- PRECIS Framework: Preparation, Enforcement, and Comparison of
Internationalized Strings in Application Protocols (RFC 8264).
- Preparation, Enforcement, and Comparison of Internationalized
Strings Representing Usernames and Passwords (RFC 8265).
- Preparation, Enforcement, and Comparison of Internationalized
Strings Representing Nicknames (RFC 8266).
%prep
%autosetup -n %{_name}-%{version} -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
%check
%pyunittest -v
%files %{python_files}
%license LICENSE.txt
%doc CHANGELOG.rst README.rst
%{python_sitelib}/%{_name}/
%{python_sitelib}/%{_name}-*
%changelog