From 0943bd66ecb453a0c54c92a961065241a479d0b1419f865507961e1cdb93261b Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 9 Feb 2024 11:24:57 +0000 Subject: [PATCH] fix Leap build OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-ares?expand=0&rev=61 --- c-ares.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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")