Use new %bcond syntax

This commit is contained in:
Maxwell G 2023-03-14 19:36:46 -05:00
parent 1d3028140f
commit f03709bb28
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -1,17 +1,12 @@
# The function of bootstrap is that it disables the wheel subpackage
%bcond_with bootstrap
%bcond bootstrap 0
# Default: when bootstrapping -> disable tests
%if %{with bootstrap}
%bcond_with tests
%else
%bcond_without tests
%endif
%bcond tests %{without bootstrap}
# Similar to what we have in pythonX.Y.spec files.
# If enabled, provides unversioned executables and other stuff.
# Disable it if you build this package in an alternative stack.
%bcond_without main_python
%bcond main_python 1
%global pypi_name wheel
%global python_wheel_name %{pypi_name}-%{version}-py3-none-any.whl