diff --git a/libzypp-17.32.6.tar.bz2 b/libzypp-17.32.6.tar.bz2 index 87c05aa..1d354b8 100644 --- a/libzypp-17.32.6.tar.bz2 +++ b/libzypp-17.32.6.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:42a07134cffa2117b9beab4ab1f3e8b2b88db62feabb517c9076d9792e5f5831 -size 5596887 +oid sha256:137a2edb8439ce6b50465cd6b73c2dde302597cd20e9776003ec79c9d1ce567c +size 5597686 diff --git a/libzypp.spec b/libzypp.spec index dd451ba..6075a27 100644 --- a/libzypp.spec +++ b/libzypp.spec @@ -38,6 +38,13 @@ %bcond_with sigc_block_workaround %endif + +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150600 +%bcond_without visibility_hidden +%else +%bcond_with visibility_hidden +%endif + # Distros using just zypper may want to enable this as default earlier %bcond_with enable_preview_single_rpmtrans_as_default_for_zypper @@ -236,7 +243,7 @@ Group: Documentation/HTML Developer documentation for libzypp. %prep -%setup -q +%autosetup -p1 %build mkdir build @@ -261,6 +268,7 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=1 \ -DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \ + %{?with_visibility_hidden:-DENABLE_VISIBILITY_HIDDEN=1} \ %{?with_zchunk:-DENABLE_ZCHUNK_COMPRESSION=1} \ %{?with_zstd:-DENABLE_ZSTD_COMPRESSION=1} \ %{?with_sigc_block_workaround:-DENABLE_SIGC_BLOCK_WORKAROUND=1} \