Blame python-precis_i18n.spec

d7a55d6
%global srcname precis_i18n
d7a55d6
d7a55d6
Name:           python-%{srcname}
d44bf0c
Version:        1.0.1
d44bf0c
Release:        1%{?dist}
d7a55d6
Summary:        Python library for internationalized usernames and passwords
d7a55d6
d7a55d6
License:        MIT
d7a55d6
URL:            https://github.com/byllyfish/precis_i18n
d7a55d6
Source0:        https://github.com/byllyfish/precis_i18n/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
d7a55d6
d7a55d6
BuildArch:      noarch
d7a55d6
d7a55d6
%global desc If you want your application to accept Unicode user names and passwords, you\
d7a55d6
must be careful in how you validate and compare them. The PRECIS framework\
d7a55d6
makes internationalized user names and passwords safer for use by applications.\
d7a55d6
PRECIS profiles transform Unicode strings into a canonical form, suitable for\
d7a55d6
comparison.\
d7a55d6
\
d7a55d6
This Python module implements the PRECIS Framework as described in:\
d7a55d6
\
d7a55d6
  PRECIS Framework: Preparation, Enforcement, and Comparison of\
d7a55d6
  Internationalized Strings in Application Protocols (RFC 8264)\
d7a55d6
\
d7a55d6
  Preparation, Enforcement, and Comparison of Internationalized Strings\
d7a55d6
  Representing Usernames and Passwords (RFC 8265)\
d7a55d6
\
d7a55d6
  Preparation, Enforcement, and Comparison of Internationalized Strings\
d7a55d6
  Representing Nicknames (RFC 8266)
d7a55d6
d7a55d6
%description
d7a55d6
%{desc}
d7a55d6
d7a55d6
%package -n python3-%{srcname}
d7a55d6
Summary:        %{summary}
d7a55d6
BuildRequires:  python3-devel
d7a55d6
%{?python_provide:%python_provide python3-%{srcname}}
d7a55d6
d7a55d6
%description -n python3-%{srcname}
d7a55d6
%{desc}
d7a55d6
d7a55d6
%prep
d7a55d6
%autosetup -n %{srcname}-%{version}
d7a55d6
d7a55d6
%build
d7a55d6
%py3_build
d7a55d6
d7a55d6
%install
d7a55d6
%py3_install
d7a55d6
d7a55d6
%check
d7a55d6
%{__python3} setup.py test
d7a55d6
d7a55d6
%files -n python3-%{srcname}
d7a55d6
%license LICENSE.txt
d7a55d6
%doc README.rst CHANGELOG.rst
d7a55d6
%{python3_sitelib}/%{srcname}-*.egg-info/
d7a55d6
%{python3_sitelib}/%{srcname}/
d7a55d6
d7a55d6
%changelog
d44bf0c
* Mon Jul 22 2019 Michal Schmidt <mschmidt@redhat.com> - 1.0.1-1
d44bf0c
- Upstream release 1.0.1.
d44bf0c
828a0dd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
828a0dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
828a0dd
d7a55d6
* Mon Jan 28 2019 Michal Schmidt <mschmidt@redhat.com> - 1.0-2
d7a55d6
- In the package description spell "Unicode" with uppercase U.
d7a55d6
d7a55d6
* Wed Jan 23 2019 Michal Schmidt <mschmidt@redhat.com> - 1.0-1
d7a55d6
- Initial package.