Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 9192bf5623 | |||
| 43cdbacac2 | |||
| d32f18ec6a | |||
| 6cfbca6efc | |||
| c95b1f9b6d | |||
| e6efe89658 |
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,21 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Update to 1.0.8:
|
||||
* Add new build file to build the cython extension and update
|
||||
pyproject.toml to use it.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 11 11:43:51 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 1 09:43:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-rencode
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,20 +16,21 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-rencode
|
||||
Version: 1.0.6
|
||||
Version: 1.0.8
|
||||
Release: 0
|
||||
Summary: Web safe object pickling/unpickling
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
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}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%python_subpackages
|
||||
@@ -41,19 +42,14 @@ many small elements, r-encodings take up significantly less space than
|
||||
b-encodings. Python2 version of package
|
||||
|
||||
%prep
|
||||
%setup -q -n rencode-%{version}
|
||||
# to "avoid python-bytecode-inconsistent-mtime" warnings
|
||||
FAKE_TIMESTAMP=$(LC_ALL=C date -u -r %{SOURCE1} +%%y%%m%%d%%H%%M)
|
||||
find . -name '*.py' -exec touch -mat $FAKE_TIMESTAMP {} \;
|
||||
# do not use O3
|
||||
sed -i -e '/extra_compile_args/d' setup.py
|
||||
%autosetup -p1 -n rencode-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}/rencode
|
||||
|
||||
%check
|
||||
@@ -62,6 +58,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%{python_sitearch}/rencode
|
||||
%{python_sitearch}/rencode-%{version}-py%{python_version}.egg-info
|
||||
%{python_sitearch}/rencode-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0ed61111f053ea37511da86ca7aed2a3cfda6bdaa1f54a237c4b86eea52f0733
|
||||
size 25455
|
||||
3
v1.0.8.tar.gz
Normal file
3
v1.0.8.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:480aab74948a7f339b749b5c39bdb4caf15429f4b49a998c770d5f371098d351
|
||||
size 26072
|
||||
Reference in New Issue
Block a user