Remove some unnecessary complexity from the spec

This commit is contained in:
Miro Hrončok 2023-10-02 11:02:33 +02:00
parent 91c1b89caa
commit 063253be20

View File

@ -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 LuaJITs 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