* Bump version for 4.2.1 (#914) * Bump bcrypt from 0.15.1 to 0.16.0 in /src/_bcrypt (#912) * Fix warnings from pyo3 0.23 (#911) * Bump pyo3 from 0.22.6 to 0.23.1 in /src/_bcrypt (#909) * Bump libc from 0.2.162 to 0.2.164 in /src/_bcrypt (#910) * Bump cpufeatures from 0.2.14 to 0.2.15 in /src/_bcrypt (#908) * Bump libc from 0.2.161 to 0.2.162 in /src/_bcrypt (#907) * Bump pypa/gh-action-pypi-publish from 1.12.0 to 1.12.2 (#906) * Bump pyo3 from 0.22.5 to 0.22.6 in /src/_bcrypt (#905) * Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.0 (#904) * Bump syn from 2.0.86 to 2.0.87 in /src/_bcrypt (#903) * Bump syn from 2.0.85 to 2.0.86 in /src/_bcrypt (#902) * Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 (#901) * Bump actions/setup-python from 5.2.0 to 5.3.0 (#899) * Bump syn from 2.0.82 to 2.0.85 in /src/_bcrypt (#898) * Bump actions/checkout from 4.2.1 to 4.2.2 (#897) * Bump actions/cache from 4.1.1 to 4.1.2 (#896) * Bump proc-macro2 from 1.0.88 to 1.0.89 in /src/_bcrypt (#895) * Bump syn from 2.0.79 to 2.0.82 in /src/_bcrypt (#894) * Bump libc from 0.2.159 to 0.2.161 in /src/_bcrypt (#893) * Bump proc-macro2 from 1.0.87 to 1.0.88 in /src/_bcrypt (#892) * Bump pyo3 from 0.22.4 to 0.22.5 in /src/_bcrypt (#891) * Bump pyo3 from 0.22.3 to 0.22.4 in /src/_bcrypt (#890) * Update CI for 3.13 (#888) * Bump actions/upload-artifact from 4.4.2 to 4.4.3 (#889) * Bump actions/upload-artifact from 4.4.1 to 4.4.2 (#886) * Bump actions/cache from 4.1.0 to 4.1.1 (#887) * Bump proc-macro2 from 1.0.86 to 1.0.87 in /src/_bcrypt (#884) * Bump actions/upload-artifact from 4.4.0 to 4.4.1 (#883) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=41
73 lines
2.3 KiB
RPMSpec
73 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-bcrypt
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-bcrypt
|
|
Version: 4.2.1
|
|
Release: 0
|
|
Summary: BSD type 2a and 2b password hashing
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/pyca/bcrypt/
|
|
Source0: https://files.pythonhosted.org/packages/source/b/bcrypt/bcrypt-%{version}.tar.gz
|
|
Source1: vendor.tar.gz
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest >= 3.2.1}
|
|
BuildRequires: %{python_module setuptools-rust >= 1.7.0}
|
|
BuildRequires: %{python_module wheel}
|
|
# 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}
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Provides: python-py-bcrypt = %{version}
|
|
Obsoletes: python-py-bcrypt < %{version}
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
This Python module supports creating (and verifying) password hashes
|
|
using the BSD-originating hashing methods known as "2a" and "2b".
|
|
|
|
%prep
|
|
%autosetup -p1 -a1 -n bcrypt-%{version}
|
|
rm -v src/_bcrypt/Cargo.lock
|
|
|
|
%build
|
|
export RUSTFLAGS=%{rustflags}
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitearch}
|
|
|
|
%check
|
|
%pytest_arch tests/
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitearch}/bcrypt
|
|
%{python_sitearch}/bcrypt-%{version}*-info
|
|
|
|
%changelog
|