diff --git a/c-ares.spec b/c-ares.spec index f285776..af39394 100644 --- a/c-ares.spec +++ b/c-ares.spec @@ -1,5 +1,5 @@ # -# spec file for package c-ares +# spec file # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 Andreas Stieger @@ -19,7 +19,13 @@ %define sonum 2 %define libname libcares%{sonum} -Name: c-ares%["@BUILD_FLAVOR@" == "testsuite" ? "-testsuite" : ""] +%define pkg_suffix %nil + +%if "@BUILD_FLAVOR@"%nil == "testsuite"%nil +%define pkg_suffix -testsuite +%endif + +Name: c-ares%pkg_suffix Version: 1.26.0 Release: 0 Summary: Library for asynchronous name resolves @@ -93,9 +99,7 @@ to build packages that depend on c-ares. -DCARES_BUILD_TESTS:BOOL=ON \ %endif %{nil} -%if ("@BUILD_FLAVOR@" != "testsuite") %cmake_build -%endif %install %if ("@BUILD_FLAVOR@" != "testsuite")