diff --git a/python-wheel.spec b/python-wheel.spec index 6c38837..e1ad023 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -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