fix Leap build
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-ares?expand=0&rev=61
This commit is contained in:
parent
ddddc211b5
commit
0943bd66ec
12
c-ares.spec
12
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 <Andreas.Stieger@gmx.de>
|
||||
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user