From 063253be2035ac8d1a8cf1ab3d3db8941c065fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 2 Oct 2023 11:02:33 +0200 Subject: [PATCH] Remove some unnecessary complexity from the spec --- python-cffi.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python-cffi.spec b/python-cffi.spec index b9a543f..c33fd5e 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -1,6 +1,5 @@ Name: python-cffi -%global general_version 1.15.1 -Version: %{general_version}%{?prerel:~%{prerel}} +Version: 1.15.1 Release: 6%{?dist} Summary: Foreign Function Interface for Python to call C code # Patch 482f0af has bits copied from CPython (PSF-2.0) @@ -36,7 +35,7 @@ reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI. %package -n python3-cffi -Summary: Foreign Function Interface for Python 3 to call C code +Summary: %{summary} %description -n python3-cffi Foreign Function Interface for Python, providing a convenient and @@ -52,7 +51,7 @@ BuildRequires: python3-sphinx Documentation for CFFI, the Foreign Function Interface for Python. %prep -%autosetup -p1 -n cffi-v%{general_version}%{?prerel} +%autosetup -p1 -n cffi-v%{version} %generate_buildrequires %pyproject_buildrequires requirements.txt @@ -61,7 +60,7 @@ Documentation for CFFI, the Foreign Function Interface for Python. %pyproject_wheel cd doc -make SPHINXBUILD=sphinx-build-3 html +make html rm build/html/.buildinfo %install @@ -69,7 +68,7 @@ rm build/html/.buildinfo %pyproject_save_files _cffi_backend cffi %check -%pytest c/ testing/ +%pytest %files -n python3-cffi -f %{pyproject_files} %doc README.md