python-argon2-cffi/python-argon2-cffi.spec

74 lines
2.2 KiB
RPMSpec
Raw Normal View History

2020-07-09 19:42:52 +08:00
%global _empty_manifest_terminate_build 0
Name: python-argon2-cffi
Version: 23.1.0
2023-04-27 16:00:32 +08:00
Release: 1
2020-07-09 19:42:52 +08:00
Summary: The secure Argon2 password hashing algorithm.
License: MIT
URL: https://argon2-cffi.readthedocs.io/
Source0: %{pypi_source argon2_cffi}
2023-04-27 16:00:32 +08:00
BuildArch: noarch
2020-07-09 19:42:52 +08:00
%description
CFFI-based Argon2 Bindings for Python
2020-07-09 19:42:52 +08:00
%package -n python3-argon2-cffi
Summary: The secure Argon2 password hashing algorithm.
Provides: python-argon2-cffi
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2023-04-27 16:00:32 +08:00
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-flit
BuildRequires: python3-hatchling python3-hatch-vcs python3-hatch-fancy-pypi-readme
2020-07-09 19:42:52 +08:00
%description -n python3-argon2-cffi
CFFI-based Argon2 Bindings for Python
2020-07-09 19:42:52 +08:00
%package help
Summary: Development documents and examples for argon2-cffi
Provides: python3-argon2-cffi-doc
%description help
CFFI-based Argon2 Bindings for Python
2020-07-09 19:42:52 +08:00
%prep
%autosetup -n argon2_cffi-%{version}
2020-07-09 19:42:52 +08:00
%build
2023-04-27 16:00:32 +08:00
%pyproject_build
2020-07-09 19:42:52 +08:00
%install
2023-04-27 16:00:32 +08:00
%pyproject_install
2020-07-09 19:42:52 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
2023-04-27 16:00:32 +08:00
%files -n python3-argon2-cffi
%{python3_sitelib}/*
%doc README.md
2023-04-27 16:00:32 +08:00
%license LICENSE
%files help
2020-07-09 19:42:52 +08:00
%{_docdir}/*
%changelog
* Fri Apr 19 2024 yueyuankun <yueyuankun@kylinos.cn> - 23.1.0-1
- Update to 23.1.0
- The InvalidHash exception is deprecated in favor of InvalidHashError
- argon2.hash_password(), argon2.hash_password_raw(), and argon2.verify_password() that have been soft-deprecated since 2016 are now hard-deprecated
- Official support for Python 3.11 and 3.12
- Python 3.6 is not supported anymore
- argon2.exceptions.InvalidHashError as a replacement for InvalidHash
- salt parameter to argon2.PasswordHasher.hash() to allow for custom salts
2023-04-27 16:00:32 +08:00
* Thu Apr 27 2023 wangkai <13474090681@163.com> - 21.3.0-1
- Update to 21.3.0
- Obsoletes subpackage python-argon2-cffi-help
2021-08-04 21:17:07 +08:00
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 20.1.0-2
- DESC: delete BuildRequires gdb
2020-07-09 19:42:52 +08:00
* Mon Jul 06 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated