2017-06-07 10:29:06 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-rencode
|
|
|
|
#
|
2025-06-11 11:44:04 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2017-06-07 10:29:06 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-01 09:49:16 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-07 10:29:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-rencode
|
2025-07-22 03:57:00 +00:00
|
|
|
Version: 1.0.8
|
2017-06-07 10:29:06 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Web safe object pickling/unpickling
|
2019-03-01 09:49:16 +00:00
|
|
|
License: GPL-3.0-or-later
|
|
|
|
URL: https://github.com/aresch/rencode
|
|
|
|
Source0: https://github.com/aresch/rencode/archive/v%{version}.tar.gz
|
2017-06-07 10:29:06 +00:00
|
|
|
Source1: %{name}.changes
|
2025-07-24 00:34:52 +00:00
|
|
|
# PATCH-FIX-UPSTREAM Based on gh#aresch/rencode#e7ec8ea718e73a8fee7dbc007c262e1584f7f94b
|
|
|
|
Patch0: drop-march-native.patch
|
2017-06-07 10:29:06 +00:00
|
|
|
BuildRequires: %{python_module Cython}
|
|
|
|
BuildRequires: %{python_module devel}
|
2025-06-11 11:44:04 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2025-07-22 03:57:00 +00:00
|
|
|
BuildRequires: %{python_module poetry-core}
|
2019-03-01 09:49:16 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-06-07 10:29:06 +00:00
|
|
|
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
|
2025-07-24 00:34:52 +00:00
|
|
|
%autosetup -p1 -n rencode-%{version}
|
2017-06-07 10:29:06 +00:00
|
|
|
|
|
|
|
%build
|
2019-03-01 09:49:16 +00:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2025-06-11 11:44:04 +00:00
|
|
|
%pyproject_wheel
|
2017-06-07 10:29:06 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-11 11:44:04 +00:00
|
|
|
%pyproject_install
|
2019-03-01 09:49:16 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}/rencode
|
|
|
|
|
|
|
|
%check
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_rencode.py
|
2017-06-07 10:29:06 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-03-01 09:49:16 +00:00
|
|
|
%license COPYING
|
2017-06-07 10:29:06 +00:00
|
|
|
%{python_sitearch}/rencode
|
2025-07-22 03:57:00 +00:00
|
|
|
%{python_sitearch}/rencode-%{version}.dist-info
|
2017-06-07 10:29:06 +00:00
|
|
|
|
|
|
|
%changelog
|