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