From f7ba2ec34920ae80f69d2619bba4fef483e869b3270be2d43acb3277f6d219e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 Sep 2024 11:21:15 +0000 Subject: [PATCH] Accepting request 1201230 from home:gladiac:mailman - Fix building on SLE based distributions OBS-URL: https://build.opensuse.org/request/show/1201230 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=228 --- python-cryptography.changes | 5 +++++ python-cryptography.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-cryptography.changes b/python-cryptography.changes index a62d39d..616aef7 100644 --- a/python-cryptography.changes +++ b/python-cryptography.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Sep 15 08:51:52 UTC 2024 - Andreas Schneider + +- Fix building on SLE based distributions + ------------------------------------------------------------------- Mon Aug 12 20:36:00 UTC 2024 - Matej Cepl diff --git a/python-cryptography.spec b/python-cryptography.spec index e8bd730..e6a0122 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,5 +1,5 @@ # -# spec file for package python-cryptography +# spec file # # Copyright (c) 2024 SUSE LLC # @@ -95,6 +95,8 @@ functions. export CARGO_NET_OFFLINE=true export CARGO_PROFILE_RELEASE_DEBUG=true export CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO=off +# https://pyo3.rs/main/building-and-distribution#configuring-the-python-version +%python_expand export PYO3_PYTHON="%{_bindir}/$python" cd src/rust tar xfv %{S:2} rm -v Cargo.lock