diff --git a/variant-lite.spec b/variant-lite.spec index f8fc289..95a5d04 100644 --- a/variant-lite.spec +++ b/variant-lite.spec @@ -2,11 +2,11 @@ # numbers of args and/or types? Packaging guidelines don’t *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