From a1cc94e09e37f3d336b42aaffeba45ea2a16d9b3fdbe3a415e4eb44af93582f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 9 Mar 2020 08:31:44 +0000 Subject: [PATCH] - On python3 this package is compiled, so mark it such OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cbor2?expand=0&rev=6 --- python-cbor2.changes | 5 +++++ python-cbor2.spec | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/python-cbor2.changes b/python-cbor2.changes index 5bb8fd9..d51966d 100644 --- a/python-cbor2.changes +++ b/python-cbor2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 9 08:31:26 UTC 2020 - Tomáš Chvátal + +- On python3 this package is compiled, so mark it such + ------------------------------------------------------------------- Fri Jan 24 13:45:03 UTC 2020 - Marketa Calabkova diff --git a/python-cbor2.spec b/python-cbor2.spec index 8c6bf07..8e83552 100644 --- a/python-cbor2.spec +++ b/python-cbor2.spec @@ -22,15 +22,14 @@ Version: 5.0.1 Release: 0 Summary: Pure Python CBOR (de)serializer with extensive tag support License: MIT -Group: Development/Languages/Python URL: https://github.com/agronholm/cbor2 Source: https://files.pythonhosted.org/packages/source/c/cbor2/cbor2-%{version}.tar.gz +BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 36.2.7} BuildRequires: %{python_module setuptools_scm >= 1.7.0} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildArch: noarch %python_subpackages %description @@ -52,11 +51,16 @@ export LANG=en_US.UTF8 %check export LANG=en_US.UTF8 -%python_exec -m pytest +%pytest %files %{python_files} %doc README.rst %license LICENSE.txt +%ifpython2 %{python_sitelib}/* +%endif +%ifpython3 +%{python_sitearch}/* +%endif %changelog