15
0
forked from pool/python-bcrypt
Files
python-bcrypt/python-bcrypt.spec

73 lines
2.3 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-bcrypt
#
Accepting request 1254917 from home:glaubitz:branches:devel:languages:python - Update 4.3.0 * Bump proc-macro2 from 1.0.89 to 1.0.90 in /src/_bcrypt (#916) * Bump unicode-ident from 1.0.13 to 1.0.14 in /src/_bcrypt (#915) * fixes #917 -- correctly handle a salt that's too short (#918) * Bump cpufeatures from 0.2.15 to 0.2.16 in /src/_bcrypt (#919) * Bump proc-macro2 from 1.0.90 to 1.0.92 in /src/_bcrypt (#920) * Bump syn from 2.0.87 to 2.0.89 in /src/_bcrypt (#921) * Fix new ruff warning (#923) * Build manylinux 2.34 images (#922) * Bump portable-atomic from 1.9.0 to 1.10.0 in /src/_bcrypt (#924) * drop py37 (#926) * Bump pyo3 from 0.23.1 to 0.23.2 in /src/_bcrypt (#927) * Bump libc from 0.2.164 to 0.2.165 in /src/_bcrypt (#928) * Bump libc from 0.2.165 to 0.2.166 in /src/_bcrypt (#929) * Bump dawidd6/action-download-artifact from 6 to 7 (#932) * Bump syn from 2.0.89 to 2.0.90 in /src/_bcrypt (#931) * Bump libc from 0.2.166 to 0.2.167 in /src/_bcrypt (#930) * Bump pyo3 from 0.23.2 to 0.23.3 in /src/_bcrypt (#933) * Bump actions/cache from 4.1.2 to 4.2.0 (#934) * Bump libc from 0.2.167 to 0.2.168 in /src/_bcrypt (#935) * Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 (#936) * Bump dtolnay/rust-toolchain (#937) * Bump actions/upload-artifact from 4.4.3 to 4.5.0 (#938) * Bump libc from 0.2.168 to 0.2.169 in /src/_bcrypt (#939) * Bump syn from 2.0.90 to 2.0.91 in /src/_bcrypt (#940) * Bump quote from 1.0.37 to 1.0.38 in /src/_bcrypt (#942) * Bump syn from 2.0.91 to 2.0.92 in /src/_bcrypt (#941) * Bump syn from 2.0.92 to 2.0.93 in /src/_bcrypt (#943) * Bump syn from 2.0.93 to 2.0.94 in /src/_bcrypt (#944) * Bump syn from 2.0.94 to 2.0.95 in /src/_bcrypt (#945) OBS-URL: https://build.opensuse.org/request/show/1254917 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=43
2025-03-21 13:01:02 +00:00
# Copyright (c) 2025 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
Accepting request 1254917 from home:glaubitz:branches:devel:languages:python - Update 4.3.0 * Bump proc-macro2 from 1.0.89 to 1.0.90 in /src/_bcrypt (#916) * Bump unicode-ident from 1.0.13 to 1.0.14 in /src/_bcrypt (#915) * fixes #917 -- correctly handle a salt that's too short (#918) * Bump cpufeatures from 0.2.15 to 0.2.16 in /src/_bcrypt (#919) * Bump proc-macro2 from 1.0.90 to 1.0.92 in /src/_bcrypt (#920) * Bump syn from 2.0.87 to 2.0.89 in /src/_bcrypt (#921) * Fix new ruff warning (#923) * Build manylinux 2.34 images (#922) * Bump portable-atomic from 1.9.0 to 1.10.0 in /src/_bcrypt (#924) * drop py37 (#926) * Bump pyo3 from 0.23.1 to 0.23.2 in /src/_bcrypt (#927) * Bump libc from 0.2.164 to 0.2.165 in /src/_bcrypt (#928) * Bump libc from 0.2.165 to 0.2.166 in /src/_bcrypt (#929) * Bump dawidd6/action-download-artifact from 6 to 7 (#932) * Bump syn from 2.0.89 to 2.0.90 in /src/_bcrypt (#931) * Bump libc from 0.2.166 to 0.2.167 in /src/_bcrypt (#930) * Bump pyo3 from 0.23.2 to 0.23.3 in /src/_bcrypt (#933) * Bump actions/cache from 4.1.2 to 4.2.0 (#934) * Bump libc from 0.2.167 to 0.2.168 in /src/_bcrypt (#935) * Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 (#936) * Bump dtolnay/rust-toolchain (#937) * Bump actions/upload-artifact from 4.4.3 to 4.5.0 (#938) * Bump libc from 0.2.168 to 0.2.169 in /src/_bcrypt (#939) * Bump syn from 2.0.90 to 2.0.91 in /src/_bcrypt (#940) * Bump quote from 1.0.37 to 1.0.38 in /src/_bcrypt (#942) * Bump syn from 2.0.91 to 2.0.92 in /src/_bcrypt (#941) * Bump syn from 2.0.92 to 2.0.93 in /src/_bcrypt (#943) * Bump syn from 2.0.93 to 2.0.94 in /src/_bcrypt (#944) * Bump syn from 2.0.94 to 2.0.95 in /src/_bcrypt (#945) OBS-URL: https://build.opensuse.org/request/show/1254917 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=43
2025-03-21 13:01:02 +00:00
Version: 4.3.0
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}
Accepting request 1189264 from home:glaubitz:branches:devel:languages:python - Update to 4.2.0 * Bump version for 4.2.0 release (#843) * Import improvements from cryptography wheel building and release (#840) * Remove setup.py (#842) * Small cleanup (#841) * Added 3.13 to CI (#839) * Bump portable-atomic from 1.6.0 to 1.7.0 in /src/_bcrypt (#836) * Bump syn from 2.0.71 to 2.0.72 in /src/_bcrypt (#837) * Bump pyo3 from 0.22.1 to 0.22.2 in /src/_bcrypt (#834) * Bump syn from 2.0.70 to 2.0.71 in /src/_bcrypt (#833) * Bump actions/setup-python from 5.1.0 to 5.1.1 (#832) * Bump syn from 2.0.69 to 2.0.70 in /src/_bcrypt (#831) * Bump target-lexicon from 0.12.14 to 0.12.15 in /src/_bcrypt (#830) * Don't import things from prelude (#829) * Bump actions/upload-artifact from 4.3.3 to 4.3.4 (#824) * Bump actions/download-artifact from 4.1.7 to 4.1.8 (#825) * Bump syn from 2.0.68 to 2.0.69 in /src/_bcrypt (#827) * Bump pyo3 from 0.22.0 to 0.22.1 in /src/_bcrypt (#828) * Update for new ruff syntax (#826) * Switch to using the new pyo3 syntax for declarative modules (#823) * Bump pyo3 to 0.22 (#822) * Bump bitflags from 2.5.0 to 2.6.0 in /src/_bcrypt (#821) * Bump syn from 2.0.67 to 2.0.68 in /src/_bcrypt (#818) * Bump syn from 2.0.66 to 2.0.67 in /src/_bcrypt (#817) * Bump proc-macro2 from 1.0.85 to 1.0.86 in /src/_bcrypt (#816) * Bump subtle from 2.5.0 to 2.6.0 in /src/_bcrypt (#814) * Bump redox_syscall from 0.5.1 to 0.5.2 in /src/_bcrypt (#813) * Bump actions/checkout from 4.1.6 to 4.1.7 (#812) * Bump proc-macro2 from 1.0.84 to 1.0.85 in /src/_bcrypt (#811) * Bump proc-macro2 from 1.0.83 to 1.0.84 in /src/_bcrypt (#808) OBS-URL: https://build.opensuse.org/request/show/1189264 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bcrypt?expand=0&rev=39
2024-07-24 10:38:12 +00:00
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