diff --git a/python-cffi.spec b/python-cffi.spec index c33fd5e..6000a31 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -34,6 +34,7 @@ Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI. + %package -n python3-cffi Summary: %{summary} @@ -42,6 +43,7 @@ Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI. + %package doc Summary: Documentation for CFFI BuildArch: noarch @@ -50,12 +52,15 @@ BuildRequires: python3-sphinx %description doc Documentation for CFFI, the Foreign Function Interface for Python. + %prep %autosetup -p1 -n cffi-v%{version} + %generate_buildrequires %pyproject_buildrequires requirements.txt + %build %pyproject_wheel @@ -63,13 +68,16 @@ cd doc make html rm build/html/.buildinfo + %install %pyproject_install %pyproject_save_files _cffi_backend cffi + %check %pytest + %files -n python3-cffi -f %{pyproject_files} %doc README.md @@ -77,6 +85,7 @@ rm build/html/.buildinfo %license LICENSE %doc doc/build/html + %changelog * Fri Jul 21 2023 Fedora Release Engineering - 1.15.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild