Blame python-precis_i18n.spec

d7a55d6
%global srcname precis_i18n
d3eb3f4
%global gitcommit 1498def50914b8d4f670874cc282072790619399
d7a55d6
d7a55d6
Name:           python-%{srcname}
d44bf0c
Version:        1.0.1
7dc96bf
Release:        9.20200622git1498def50914%{?dist}
d7a55d6
Summary:        Python library for internationalized usernames and passwords
d7a55d6
d7a55d6
License:        MIT
d7a55d6
URL:            https://github.com/byllyfish/precis_i18n
d3eb3f4
#Source0:        https://github.com/byllyfish/precis_i18n/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
d3eb3f4
Source0:	https://github.com/byllyfish/precis_i18n/archive/%{gitcommit}.tar.gz
f83aa90
# Support Unicode 12.1 for Python 3.8:
f83aa90
Source1:	https://raw.githubusercontent.com/byllyfish/precis_i18n/7b6987e206881b002ddcc87dde16f978c080eedd/test/derived-props-12.1.txt
d3eb3f4
# Support Unicode 13.0 for Python 3.9
d3eb3f4
# File generated by running "python3 test/test_derived_props.py > derived-props-13.0.txt" with Python 3.9:
d3eb3f4
Source2:	derived-props-13.0.txt
d3eb3f4
d3eb3f4
Patch0001:	0001-factory-replace-with-_-in-profile-names.patch
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
d3eb3f4
#autosetup -p1 -n %{srcname}-%{version}
d3eb3f4
%autosetup -p1 -n %{srcname}-%{gitcommit}
d3eb3f4
cp -p %{SOURCE1} %{SOURCE2} test/
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
7dc96bf
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9.20200622git1498def50914
7dc96bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7dc96bf
d3eb3f4
* Mon Jun 22 2020 Michal Schmidt <mschmidt@redhat.com> - 1.0.1-8.20200622git1498def50914
d3eb3f4
- Use a snapshot of the current current upstream git.
d3eb3f4
- Add derived-props-13.0.txt for Python 3.9.
d3eb3f4
- Replace ":" with "_" in profile names. (rhbz#1792953)
d3eb3f4
1ee964a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-7
1ee964a
- Rebuilt for Python 3.9
1ee964a
26b616b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
26b616b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
26b616b
6c788e9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-5
6c788e9
- Rebuilt for Python 3.8.0rc1 (#1748018)
6c788e9
805f2eb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-4
805f2eb
- Rebuilt for Python 3.8
805f2eb
018b1e9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
018b1e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
018b1e9
f83aa90
* Mon Jul 22 2019 Michal Schmidt <mschmidt@redhat.com> - 1.0.1-2
f83aa90
- Support Unicode 12.1 for Python 3.8.
f83aa90
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.