forked from pool/python-primp
Accepting request 1275453 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1275453 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-primp?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 6 04:44:56 UTC 2025 - Guang Yee <gyee@suse.com>
|
||||
|
||||
- Use a compatible GCC and stdc++ library version for 15.6.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 29 14:47:16 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
|
@@ -16,6 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?sle_version} && 0%{?sle_version} == 150600
|
||||
%define force_gcc_version 13
|
||||
%endif
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-primp
|
||||
Version: 0.15.0
|
||||
@@ -31,7 +35,12 @@ BuildRequires: cargo-packaging
|
||||
BuildRequires: clang-devel
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?force_gcc_version}
|
||||
BuildRequires: gcc%{?force_gcc_version}-c++
|
||||
BuildRequires: libstdc++6-gcc%{?force_gcc_version}
|
||||
%else
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
BuildRequires: git
|
||||
BuildRequires: llvm
|
||||
BuildRequires: openssl
|
||||
@@ -51,7 +60,15 @@ export CARGO_NET_OFFLINE=true
|
||||
export CARGO_PROFILE_RELEASE_DEBUG=full
|
||||
export CARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO=off
|
||||
export CARGO_PROFILE_RELEASE_STRIP=false
|
||||
%if 0%{?force_gcc_version}
|
||||
export C_INCLUDE_PATH=/usr/lib64/gcc/%_arch-suse-linux/%{force_gcc_version}/include
|
||||
export CXX=g++-%{force_gcc_version}
|
||||
export CC=gcc-%{force_gcc_version}
|
||||
export DCMAKE_C_COMPILER=gcc-%{force_gcc_version}
|
||||
export DCMAKE_CXX_COMPILER=g++-%{force_gcc_version}
|
||||
%else
|
||||
export C_INCLUDE_PATH=/usr/lib64/gcc/%_arch-suse-linux/%gcc_version/include
|
||||
%endif
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
|
Reference in New Issue
Block a user