Compare commits

6 Commits

Author SHA256 Message Date
9192bf5623 Accepting request 1295406 from devel:languages:python
- Add patch drop-march-native.patch:
  * Do not use CPU-specific build flags. (bsc#1246916)

OBS-URL: https://build.opensuse.org/request/show/1295406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rencode?expand=0&rev=5
2025-07-24 16:46:40 +00:00
43cdbacac2 - 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
2025-07-24 00:34:52 +00:00
d32f18ec6a Accepting request 1294922 from devel:languages:python
- Update to 1.0.8:
  * Add new build file to build the cython extension and update
    pyproject.toml to use it.

OBS-URL: https://build.opensuse.org/request/show/1294922
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rencode?expand=0&rev=4
2025-07-22 10:20:44 +00:00
6cfbca6efc - Update to 1.0.8:
* Add new build file to build the cython extension and update
    pyproject.toml to use it.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rencode?expand=0&rev=10
2025-07-22 03:57:00 +00:00
c95b1f9b6d Accepting request 1284806 from devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1284806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rencode?expand=0&rev=3
2025-06-11 14:27:50 +00:00
e6efe89658 - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rencode?expand=0&rev=8
2025-06-11 11:44:04 +00:00
5 changed files with 54 additions and 17 deletions

23
drop-march-native.patch Normal file
View 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] = []

View File

@@ -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>

View File

@@ -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

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:480aab74948a7f339b749b5c39bdb4caf15429f4b49a998c770d5f371098d351
size 26072