# Created by pyp2rpm-3.3.1 %global pypi_name argon2_cffi Name: python-%{pypi_name} Version: 18.1.0 Release: %mkrel 1 Summary: The secure Argon2 password hashing algorithm Group: Development/Python License: MIT URL: https://argon2-cffi.readthedocs.io/ Source0: %{pypi_name}-%{version}.tar.gz BuildRequires: pkgconfig(python2) BuildRequires: python2dist(cffi) >= 1.0.0 BuildRequires: python2dist(coverage) BuildRequires: python2dist(hypothesis) BuildRequires: python2dist(pytest) BuildRequires: python2dist(setuptools) BuildRequires: python2dist(six) BuildRequires: python2dist(wheel) BuildRequires: pkgconfig(python3) BuildRequires: python3dist(cffi) >= 1.0.0 BuildRequires: python3dist(coverage) BuildRequires: python3dist(hypothesis) BuildRequires: python3dist(pytest) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) BuildRequires: python3dist(wheel) BuildRequires: python3dist(sphinx) %description CFFI-based Argon2 Bindings for Python .. image:: %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2dist(cffi) >= 1.0.0 Requires: python2dist(coverage) Requires: python2dist(hypothesis) Requires: python2dist(pytest) Requires: python2dist(six) Requires: python2dist(sphinx) %description -n python2-%{pypi_name} CFFI-based Argon2 Bindings for Python .. image:: %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(cffi) >= 1.0.0 Requires: python3dist(coverage) Requires: python3dist(hypothesis) Requires: python3dist(pytest) Requires: python3dist(six) Requires: python3dist(sphinx) %description -n python3-%{pypi_name} CFFI-based Argon2 Bindings for Python .. image:: %package -n python-%{pypi_name}-doc Summary: argon2_cffi documentation %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 %build %py2_build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install # Must do the default python version install last because # the scripts in /usr/bin are overwritten with every setup.py install. %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-%{pypi_name} %license LICENSE docs/license.rst extras/libargon2/LICENSE %doc README.rst extras/libargon2/README.md %{python2_sitearch}/argon2 %{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license LICENSE docs/license.rst extras/libargon2/LICENSE %doc README.rst extras/libargon2/README.md %{python3_sitearch}/argon2 %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python-%{pypi_name}-doc %doc html %license LICENSE docs/license.rst extras/libargon2/LICENSE