import python-cffi-1.14.3-2.module+el8.4.0+9822+20bf1249
This commit is contained in:
parent
3905c2497c
commit
09f3d52cdb
@ -1,6 +1,8 @@
|
|||||||
# RHEL: Docs disabled due to python3-sphinx not being installable during build of the python39 module
|
# RHEL: Docs disabled due to python3-sphinx not being installable during build of the python39 module
|
||||||
%bcond_with docs
|
%bcond_with docs
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
Name: python-cffi
|
Name: python-cffi
|
||||||
Version: 1.14.3
|
Version: 1.14.3
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
@ -18,8 +20,10 @@ BuildRequires: make
|
|||||||
BuildRequires: libffi-devel
|
BuildRequires: libffi-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
# For tests:
|
# For tests:
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
%endif
|
||||||
|
|
||||||
%?python_enable_dependency_generator
|
%?python_enable_dependency_generator
|
||||||
|
|
||||||
@ -31,9 +35,11 @@ based on LuaJIT’s FFI.
|
|||||||
%package -n python%{python3_pkgversion}-cffi
|
%package -n python%{python3_pkgversion}-cffi
|
||||||
Summary: Foreign Function Interface for Python 3 to call C code
|
Summary: Foreign Function Interface for Python 3 to call C code
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinx
|
BuildRequires: python3-sphinx
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with tests}
|
||||||
BuildRequires: python%{python3_pkgversion}-pytest
|
BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
|
%endif
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
@ -71,8 +77,10 @@ rm build/html/.buildinfo
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-cffi
|
%files -n python%{python3_pkgversion}-cffi
|
||||||
%doc PKG-INFO
|
%doc PKG-INFO
|
||||||
|
Loading…
Reference in New Issue
Block a user