From 3933ecbfcd1886962e97ab92415d6812e24cd0775e564689ffd0664ed54a6f7e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 17 May 2023 12:15:36 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-json_tricks?expand=0&rev=24 --- python-json_tricks.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-json_tricks.spec b/python-json_tricks.spec index 7425527..ea6a2cf 100644 --- a/python-json_tricks.spec +++ b/python-json_tricks.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-json_tricks Version: 3.16.1 @@ -25,7 +24,8 @@ Summary: Extra features for Python's JSON License: BSD-3-Clause URL: https://github.com/mverleg/pyjson_tricks Source: https://github.com/mverleg/pyjson_tricks/archive/v%{version}.tar.gz#/pyjson_tricks-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Recommends: python-numpy @@ -62,13 +62,13 @@ python handling of json files: As well as compression and disallowing duplicate keys. %prep -%setup -q -n pyjson_tricks-%{version} +%autosetup -p1 -n pyjson_tricks-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check