# Created by pyp2rpm-3.3.1 %global pypi_name bcrypt %global debug_package %nil Name: python-%{pypi_name} Version: 4.0.0 Release: %mkrel 1 Summary: Modern password hashing for your software and your servers Group: Development/Python #crypt_blowfish code is in Public domain and all other code in ASL 2.0 License: ASL 2.0 and Public Domain and BSD URL: https://github.com/pyca/bcrypt/ Source0: %{pypi_source} # created by ./vendor_rust.py helper script inside SOURCES dir based on one from python-cryptography Source1: bcrypt-%{version}-vendor.tar.bz2 Source2: vendor_rust.py ExclusiveArch: %{rust_arches} BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3dist(cffi) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) BuildRequires: python3dist(funcsigs) BuildRequires: python3dist(setuptools-rust) BuildRequires: python3dist(tox) BuildRequires: python3dist(tox-current-env) BuildRequires: python3dist(coverage) BuildRequires: python3dist(pytest) BuildRequires: rustc >= 1.56.0 BuildRequires: rust-packaging %description Modern password hashing for your software and your servers %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Modern password hashing for your software and your servers %prep %autosetup -n %{pypi_name}-%{version} -a1 # Build with current py3 support sed -i -e 's/py3[0-9]\+/py%{python3_version_nodots}/g' setup.py pyproject.toml %global cargo_registry $(pwd)/vendor %cargo_prep %build export RUSTFLAGS='%{build_rustflags}' %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %tox %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst