Adam Majer 2024-02-09 11:24:57 +00:00 committed by Git OBS Bridge
parent ddddc211b5
commit 0943bd66ec

View File

@ -1,5 +1,5 @@
# #
# spec file for package c-ares # spec file
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de> # Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
@ -19,7 +19,13 @@
%define sonum 2 %define sonum 2
%define libname libcares%{sonum} %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 Version: 1.26.0
Release: 0 Release: 0
Summary: Library for asynchronous name resolves Summary: Library for asynchronous name resolves
@ -93,9 +99,7 @@ to build packages that depend on c-ares.
-DCARES_BUILD_TESTS:BOOL=ON \ -DCARES_BUILD_TESTS:BOOL=ON \
%endif %endif
%{nil} %{nil}
%if ("@BUILD_FLAVOR@" != "testsuite")
%cmake_build %cmake_build
%endif
%install %install
%if ("@BUILD_FLAVOR@" != "testsuite") %if ("@BUILD_FLAVOR@" != "testsuite")