15
0
forked from pool/python-cbor

- Switch to pyproject macros.

- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cbor?expand=0&rev=4
This commit is contained in:
2025-05-02 03:35:48 +00:00
committed by Git OBS Bridge
parent 483ef3b110
commit 2a922c08c0
2 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 2 03:35:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Mon Apr 1 10:49:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cbor
#
# 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,21 +16,20 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cbor
Version: 1.0.0
Release: 0
Summary: RFC 7049 - Concise Binary Object Representation
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/brianolson/cbor_py
Source: https://files.pythonhosted.org/packages/source/c/cbor/cbor-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/brianolson/cbor_py/master/LICENSE
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-base
%python_subpackages
%description
@@ -42,14 +41,15 @@ cp %{SOURCE1} .
%build
export CFLAGS="-fno-strict-aliasing %{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files %{python_files}
%license LICENSE
%{python_sitearch}/*
%{python_sitearch}/cbor
%{python_sitearch}/cbor-%{version}.dist-info
%changelog