python-argon2-cffi/python-argon2-cffi.spec
2023-06-19 09:18:49 +08:00

64 lines
1.6 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-argon2-cffi
Version: 21.3.0
Release: 1
Summary: The secure Argon2 password hashing algorithm.
License: MIT
URL: https://argon2-cffi.readthedocs.io/
Source0: %{pypi_source argon2-cffi}
BuildArch: noarch
%description
CFFI-based Argon2 Bindings for Python
%package -n python3-argon2-cffi
Summary: The secure Argon2 password hashing algorithm.
Provides: python-argon2-cffi
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-flit
%description -n python3-argon2-cffi
CFFI-based Argon2 Bindings for Python
%package help
Summary: Development documents and examples for argon2-cffi
Provides: python3-argon2-cffi-doc
%description help
CFFI-based Argon2 Bindings for Python
%prep
%autosetup -n argon2-cffi-%{version}
%build
%pyproject_build
%install
%pyproject_install
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
%files -n python3-argon2-cffi
%{python3_sitelib}/*
%doc README.rst
%license LICENSE
%files help
%{_docdir}/*
%changelog
* Thu Apr 27 2023 wangkai <13474090681@163.com> - 21.3.0-1
- Update to 21.3.0
- Obsoletes subpackage python-argon2-cffi-help
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 20.1.0-2
- DESC: delete BuildRequires gdb
* Mon Jul 06 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated