## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 13; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global pypi_name argon2-cffi Name: python-%{pypi_name} Version: 20.1.0 Release: %autorelease Summary: The secure Argon2 password hashing algorithm License: MIT URL: https://argon2-cffi.readthedocs.io/ Source0: %{pypi_source} BuildRequires: gcc BuildRequires: python3-devel >= 3.5 BuildRequires: python3dist(cffi) BuildRequires: python3dist(hypothesis) BuildRequires: python3dist(pytest) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(wheel) BuildRequires: pkgconfig(libargon2) %description CFFI-based Argon2 Bindings for Python. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} CFFI-based Argon2 Bindings for Python. %package -n python-%{pypi_name}-doc Summary: Documentation for argon2-cffi %description -n python-%{pypi_name}-doc Documentation for argon2-cffi. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # using system libargon rm -r extras/libargon2/LICENSE \ extras/libargon2/README.md \ docs/license.rst %build export ARGON2_CFFI_USE_SYSTEM=1 %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check # test_repr is temporarily disabled due to combatibility issues with Python 3.10., # once it is fixed in the upstream it can be enabled again. # For more info see: https://bugzilla.redhat.com/show_bug.cgi?id=1948967 %pytest -k "not test_repr" %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitearch}/argon2/ %{python3_sitearch}/argon2_cffi-%{version}-py%{python3_version}.egg-info/ %files -n python-%{pypi_name}-doc %license LICENSE %doc html %changelog * Fri Jul 22 2022 Fedora Release Engineering - 20.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 20.1.0-9 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 20.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 20.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 20.1.0-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Miro Hrončok - 20.1.0-5 - Stop requiring test dependencies on runtime - Run tests during build * Wed Jan 27 2021 Fedora Release Engineering - 20.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 20.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 20.1.0-2 - Rebuilt for Python 3.9 * Thu May 21 2020 Artem Polishchuk - 20.1.0-1 - Update to 20.1.0 - Disable LTO * Thu Jan 30 2020 Fedora Release Engineering - 19.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Jan 19 2020 Artem Polishchuk - 19.2.0-1 - Update to 19.2.0 - Switch to {pypi_source} - Enable LTO - Cosmetic spec file fix - Minimum Python version is >= 3.5 now * Fri Jun 14 2019 Pavlo Rudyi - 19.1.0-1 - initial build