14
0

- 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:
2025-07-24 00:34:52 +00:00
committed by Git OBS Bridge
commit 8b9c4ce2ca
7 changed files with 152 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

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] = []

36
python-rencode.changes Normal file
View File

@@ -0,0 +1,36 @@
-------------------------------------------------------------------
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>
- Update to 1.0.6:
* Various packaging fixes
- Switch to github tarball to get all needed files (missing pyx on pypi)
- Run tests
-------------------------------------------------------------------
Thu Jul 20 17:26:53 UTC 2017 - aloisio@gmx.com
- Set correct license
-------------------------------------------------------------------
Mon Jun 5 12:48:15 UTC 2017 - aloisio@gmx.com
- Initial package (v. 1.0.5)

63
python-rencode.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# spec file for package python-rencode
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-rencode
Version: 1.0.8
Release: 0
Summary: Web safe object pickling/unpickling
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}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%python_subpackages
%description
The rencode module is a modified version of bencode from the
BitTorrent project. For complex, heterogeneous data structures with
many small elements, r-encodings take up significantly less space than
b-encodings. Python2 version of package
%prep
%autosetup -p1 -n rencode-%{version}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}/rencode
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_rencode.py
%files %{python_files}
%license COPYING
%{python_sitearch}/rencode
%{python_sitearch}/rencode-%{version}.dist-info
%changelog

3
v1.0.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
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