Remove some unnecessary complexity from the spec
This commit is contained in:
parent
91c1b89caa
commit
063253be20
@ -1,6 +1,5 @@
|
|||||||
Name: python-cffi
|
Name: python-cffi
|
||||||
%global general_version 1.15.1
|
Version: 1.15.1
|
||||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
|
||||||
Release: 6%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Foreign Function Interface for Python to call C code
|
Summary: Foreign Function Interface for Python to call C code
|
||||||
# Patch 482f0af has bits copied from CPython (PSF-2.0)
|
# 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.
|
based on LuaJIT’s FFI.
|
||||||
|
|
||||||
%package -n python3-cffi
|
%package -n python3-cffi
|
||||||
Summary: Foreign Function Interface for Python 3 to call C code
|
Summary: %{summary}
|
||||||
|
|
||||||
%description -n python3-cffi
|
%description -n python3-cffi
|
||||||
Foreign Function Interface for Python, providing a convenient and
|
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.
|
Documentation for CFFI, the Foreign Function Interface for Python.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n cffi-v%{general_version}%{?prerel}
|
%autosetup -p1 -n cffi-v%{version}
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires requirements.txt
|
%pyproject_buildrequires requirements.txt
|
||||||
@ -61,7 +60,7 @@ Documentation for CFFI, the Foreign Function Interface for Python.
|
|||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
cd doc
|
cd doc
|
||||||
make SPHINXBUILD=sphinx-build-3 html
|
make html
|
||||||
rm build/html/.buildinfo
|
rm build/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -69,7 +68,7 @@ rm build/html/.buildinfo
|
|||||||
%pyproject_save_files _cffi_backend cffi
|
%pyproject_save_files _cffi_backend cffi
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest c/ testing/
|
%pytest
|
||||||
|
|
||||||
%files -n python3-cffi -f %{pyproject_files}
|
%files -n python3-cffi -f %{pyproject_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Loading…
Reference in New Issue
Block a user