forked from pool/python-rencode
- Add patch drop-march-native.patch:
* Do not use CPU-specific build flags. (bsc#1246916) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rencode?expand=0&rev=12
This commit is contained in:
23
drop-march-native.patch
Normal file
23
drop-march-native.patch
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
From e7ec8ea718e73a8fee7dbc007c262e1584f7f94b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andrew Resch <andrewresch@gmail.com>
|
||||||
|
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] = []
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 24 00:34:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- 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 <steven.kowalik@suse.com>
|
Tue Jul 22 03:56:14 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -24,6 +24,8 @@ License: GPL-3.0-or-later
|
|||||||
URL: https://github.com/aresch/rencode
|
URL: https://github.com/aresch/rencode
|
||||||
Source0: https://github.com/aresch/rencode/archive/v%{version}.tar.gz
|
Source0: https://github.com/aresch/rencode/archive/v%{version}.tar.gz
|
||||||
Source1: %{name}.changes
|
Source1: %{name}.changes
|
||||||
|
# PATCH-FIX-UPSTREAM Based on gh#aresch/rencode#e7ec8ea718e73a8fee7dbc007c262e1584f7f94b
|
||||||
|
Patch0: drop-march-native.patch
|
||||||
BuildRequires: %{python_module Cython}
|
BuildRequires: %{python_module Cython}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pip}
|
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
|
b-encodings. Python2 version of package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n rencode-%{version}
|
%autosetup -p1 -n rencode-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
|
Reference in New Issue
Block a user