From 63a8d16b9cd8d5be19459716da3e7f60146a6ad207add033bf3d74bd0f2d4295 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 20 Oct 2023 19:42:33 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astunparse?expand=0&rev=18 --- python-astunparse.changes | 5 +++++ python-astunparse.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-astunparse.changes b/python-astunparse.changes index cc98d9d..0675496 100644 --- a/python-astunparse.changes +++ b/python-astunparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 20 19:42:26 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Fri Apr 21 12:22:15 UTC 2023 - Dirk Müller diff --git a/python-astunparse.spec b/python-astunparse.spec index fed634d..5fab8a8 100644 --- a/python-astunparse.spec +++ b/python-astunparse.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-astunparse Version: 1.6.3 @@ -30,6 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/a/astunparse/astu Patch0: astunparse-pr57-py39.patch # https://github.com/simonpercivall/astunparse/pull/59 Patch1: fix-formatted-value.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.6.1} BuildRequires: %{python_module wheel >= 0.23.0} @@ -56,14 +56,14 @@ Added to this is a pretty-printing dump utility function. %autosetup -p1 -n astunparse-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # fails to parse the 32bit stdlib -%if "%_lib" == "lib64" +%if "%{_lib}" == "lib64" %check %pyunittest discover -v %endif