diff --git a/drop-march-native.patch b/drop-march-native.patch new file mode 100644 index 0000000..b66038a --- /dev/null +++ b/drop-march-native.patch @@ -0,0 +1,23 @@ +From e7ec8ea718e73a8fee7dbc007c262e1584f7f94b Mon Sep 17 00:00:00 2001 +From: Andrew Resch +Date: Sun, 22 Jun 2025 09:50:26 -0700 +Subject: [PATCH] Change default COMPILE_ARGS to just '-O3' + +--- + build.py | 3 --- + 1 file changed, 3 deletions(-) + +Index: rencode-1.0.8/build.py +=================================================================== +--- rencode-1.0.8.orig/build.py ++++ rencode-1.0.8/build.py +@@ -11,7 +11,8 @@ from setuptools import Extension + from setuptools.command.build_ext import build_ext + + +-COMPILE_ARGS = ["-march=native", "-O3", "-msse", "-msse2", "-mfma", "-mfpmath=sse"] ++COMPILE_ARGS = ["-O3"] ++ + LINK_ARGS: list[str] = [] + INCLUDE_DIRS: list[str] = [] + LIBRARIES: list[str] = [] diff --git a/python-rencode.changes b/python-rencode.changes index 8291fee..2a8e7d2 100644 --- a/python-rencode.changes +++ b/python-rencode.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 24 00:34:03 UTC 2025 - Steve Kowalik + +- Add patch drop-march-native.patch: + * Do not use CPU-specific build flags. (bsc#1246916) + ------------------------------------------------------------------- Tue Jul 22 03:56:14 UTC 2025 - Steve Kowalik diff --git a/python-rencode.spec b/python-rencode.spec index ad11200..33f9694 100644 --- a/python-rencode.spec +++ b/python-rencode.spec @@ -24,6 +24,8 @@ License: GPL-3.0-or-later URL: https://github.com/aresch/rencode Source0: https://github.com/aresch/rencode/archive/v%{version}.tar.gz Source1: %{name}.changes +# PATCH-FIX-UPSTREAM Based on gh#aresch/rencode#e7ec8ea718e73a8fee7dbc007c262e1584f7f94b +Patch0: drop-march-native.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} @@ -40,7 +42,7 @@ many small elements, r-encodings take up significantly less space than b-encodings. Python2 version of package %prep -%setup -q -n rencode-%{version} +%autosetup -p1 -n rencode-%{version} %build export CFLAGS="%{optflags} -fno-strict-aliasing"