Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Benjamin A. Beasley
7d1176404f Backport to EPEL8 2025-01-21 12:19:35 -05:00

View file

@ -2,11 +2,11 @@
# numbers of args and/or types? Packaging guidelines dont *require* us to do
# this, and there is probably no benefit in this case, but it is nice to
# demonstrate how it can be done if needed.
%bcond regenerate 0
%dnl %global max_types 16
%dnl %global max_types 5
%bcond_with regenerate
# %%global max_types 16
# %%global max_types 5
%bcond tests 1
%bcond_without tests
Name: variant-lite
Version: 2.0.0
@ -70,18 +70,14 @@ ln -s /usr/include/lest test/lest
%endif
%conf
%cmake %{?!with_tests:-DVARIANT_LITE_OPT_BUILD_TESTS:BOOL=OFF}
%build
%cmake %{?!with_tests:-DVARIANT_LITE_OPT_BUILD_TESTS:BOOL=OFF}
%if %{with regenerate}
%{python3} script/generate_header.py \
%{?max_types:--max-types %{max_types}} \
%{?max_args:--max-args %{max_args}} \
--verbose
%endif
%cmake_build