2016-10-05 11:56:23 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-bcrypt
|
|
|
|
|
#
|
2022-05-04 19:22:21 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-10-05 11:56:23 +00:00
|
|
|
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-03-01 11:20:43 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-05 11:56:23 +00:00
|
|
|
#
|
|
|
|
|
|
2017-05-03 14:51:07 +00:00
|
|
|
|
2016-10-05 11:56:23 +00:00
|
|
|
Name: python-bcrypt
|
2022-11-02 17:41:25 +00:00
|
|
|
Version: 4.0.1
|
2016-10-05 11:56:23 +00:00
|
|
|
Release: 0
|
2017-05-03 14:51:07 +00:00
|
|
|
Summary: BSD type 2a and 2b password hashing
|
2017-04-27 18:20:34 +00:00
|
|
|
License: Apache-2.0
|
2016-10-05 11:56:23 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-08-29 10:30:38 +00:00
|
|
|
URL: https://github.com/pyca/bcrypt/
|
2022-11-02 17:41:25 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
|
|
|
|
|
Source1: vendor.tar.gz
|
|
|
|
|
Source2: cargo_config
|
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-08-29 10:30:38 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 3.2.1}
|
2022-11-02 17:41:25 +00:00
|
|
|
BuildRequires: %{python_module setuptools-rust}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2020-05-13 11:43:25 +00:00
|
|
|
# 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: %{python_module setuptools >= 40.5.0}
|
2022-11-02 17:41:25 +00:00
|
|
|
BuildRequires: cargo-packaging
|
2017-05-03 14:51:07 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-08-29 10:30:38 +00:00
|
|
|
Provides: python-py-bcrypt = %{version}
|
|
|
|
|
Obsoletes: python-py-bcrypt < %{version}
|
2020-08-28 07:11:53 +00:00
|
|
|
|
2017-04-24 13:36:05 +00:00
|
|
|
%python_subpackages
|
2016-10-05 11:56:23 +00:00
|
|
|
|
|
|
|
|
%description
|
2017-05-03 14:51:07 +00:00
|
|
|
This Python module supports creating (and verifying) password hashes
|
|
|
|
|
using the BSD-originating hashing methods known as "2a" and "2b".
|
2016-10-05 11:56:23 +00:00
|
|
|
|
|
|
|
|
%prep
|
2022-11-02 17:41:25 +00:00
|
|
|
%autosetup -p1 -a1 -n bcrypt-%{version}
|
|
|
|
|
mkdir .cargo
|
|
|
|
|
cp %{SOURCE2} .cargo/config
|
|
|
|
|
mv Cargo.lock src/_bcrypt
|
2016-10-05 11:56:23 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2022-11-02 17:41:25 +00:00
|
|
|
%pyproject_wheel
|
2016-10-05 11:56:23 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-11-02 17:41:25 +00:00
|
|
|
%pyproject_install
|
2017-04-24 16:18:12 +00:00
|
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitearch}
|
2016-10-05 11:56:23 +00:00
|
|
|
|
|
|
|
|
%check
|
2020-10-08 10:14:03 +00:00
|
|
|
%pytest_arch tests/
|
2016-10-05 11:56:23 +00:00
|
|
|
|
2017-04-24 13:36:05 +00:00
|
|
|
%files %{python_files}
|
2018-08-29 10:30:38 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2016-10-05 11:56:23 +00:00
|
|
|
%{python_sitearch}/bcrypt
|
2022-11-02 17:41:25 +00:00
|
|
|
%{python_sitearch}/bcrypt-%{version}*-info
|
2016-10-05 11:56:23 +00:00
|
|
|
|
|
|
|
|
%changelog
|