From 4b221c6050d4fe2cc54047f40b8c4000c2276409 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Tue, 23 Apr 2024 07:39:33 -0400 Subject: [PATCH] package: Enable shared library for all platforms but SLE < 16 This simplifies things for interfacing with the library and ensures that when libsolv is updated that package managers get the correct functionality. This also allows us to drop the hacks to deal with static libsolv for DNF in SUSE distributions. --- package/libsolv.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index 21c21a850..c10aa0239 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -60,8 +60,13 @@ %bcond_with ruby %bcond_with perl %endif +%if 0%{?suse_version} && 0%{?suse_version} < 1600 %bcond_without static %bcond_with shared +%else +%bcond_with static +%bcond_without shared +%endif %bcond_with zypp Name: libsolv