File saltbundlepy-bcrypt.spec of Package saltbundlepy-bcrypt

# spec file for package saltbundlepy-bcrypt
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2016, Martin Hauke <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
%define pythons saltbundlepy

# Disable python bytecompile for all distros
# It's called explicitly in the spec
%global __brp_python_bytecompile %{nil}

Name:           saltbundlepy-bcrypt
Version:        3.2.0
Release:        0
Summary:        BSD type 2a and 2b password hashing
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  %{saltbundlepy_module cffi >= 1.1}
BuildRequires:  %{saltbundlepy_module devel >= 3.10}
BuildRequires:  %{saltbundlepy_module pytest >= 3.2.1}
# setuptools 40.8.0 is required by upstream only for a pip issue that doesn't
# affect us, so we relax the requirement to build in SLE/Leap 15.2 with 40.5.0
BuildRequires:  %{saltbundlepy_module setuptools >= 40.5.0}
BuildRequires:  %{saltbundlepy_module six >= 1.4.1}
BuildRequires:  fdupes
BuildRequires:  pkgconfig
BuildRequires:  saltbundlepy-rpm-macros
BuildRequires:  pkgconfig(libffi)
Requires:       saltbundlepy-cffi
Requires:       saltbundlepy-six >= 1.4.1

This Python module supports creating (and verifying) password hashes
using the BSD-originating hashing methods known as "2a" and "2b".

%setup -q -n bcrypt-%{version}

export CFLAGS="%{optflags} -fno-strict-aliasing"

%python_expand %fdupes %{buildroot}/%{$python_sitearch}

%pytest_arch tests/

%files %{python_files}
%license LICENSE
%doc README.rst

openSUSE Build Service is sponsored by