%global _empty_manifest_terminate_build 0
Name:		python-scramp
Version:	1.4.13
Release:	1
Summary:	An implementation of the SCRAM protocol.
License:	MIT
URL:		https://github.com/tlocke/scramp
Source0:	https://files.pythonhosted.org/packages/18/68/2c1b2d59fbcde6616cd44decbbd0a60d4036df1e4157f5a98f043dc61e5b/scramp-1.4.13.tar.gz
Patch0:		0001-add-setup.py.patch
BuildArch:	noarch

Requires:	python3-asn1crypto

%description
A pure-Python implementation of the SCRAM authentication protocol.

%package -n python3-scramp
Summary:	An implementation of the SCRAM protocol.
Provides:	python-scramp = %{version}-%{release}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
BuildRequires:	python3-hatchling
BuildRequires:  python3-wheel

%description -n python3-scramp
A pure-Python implementation of the SCRAM authentication protocol.

%package help
Summary:	Development documents and examples for scramp
Provides:	python3-scramp-doc

%description help
A pure-Python implementation of the SCRAM authentication protocol.

%prep
%autosetup -p1 -n scramp-%{version}

%build
%pyproject_build

%install
%pyproject_install
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}

%files -n python3-scramp
%license LICENSE
%{python3_sitelib}/*

%files help
%doc README.md

%changelog
* Fri Jul 24 2026 peiliya <peiliya@kylinos.cn> - 1.4.13-1
- Update to 1.4.13

* Mon Jul 13 2026 shaoning <shaoning@kylinos.cn> - 1.4.12-1
- Update to 1.4.12
* Thu Apr 09 2026 YangengLiu <dev01202@linx-info.com> - 1.4.8-1
- update version to 1.4.8
  * Use the secrets module from the Standard Library for generating the salt and nonce.
  * Use hashlib.pbkdf2_hmac() from the standard library, rather than our own Python implementation.
  * To avoid timing attacks we now use hmac.compare_digest() for digest comparisons.

* Wed Sep 17 2025 lvfei <lvfei@kylinos.cn> - 1.4.6-1
- Update package to version 1.4.6
- Uploaded via: twine/6.1.0 CPython/3.13.5

* Thu Oct 24 2024 dongqi <dongqi1@kylinos.cn> - 1.4.5-1
- Update package to version 1.4.5
- Remove support for Python 3.7
- Use Flake8-pyproject to get rid of setup.cfg

* Fri Nov 18 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.4-1
- Update package to version 1.4.4

* Wed Sep 28 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.4.1-1
- Upgrade to 1.4.1

* Sun May 23 2021 Python_Bot <Python_Bot@openeuler.org> - 1.4.0-1
- Package Spec generated