Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ZArchive for openSUSE:Factory checked in at 2023-05-16 14:16:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ZArchive (Old) and /work/SRC/openSUSE:Factory/.ZArchive.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ZArchive" Tue May 16 14:16:44 2023 rev:3 rq:1087323 version:0.1.2+git20220908.d2c7177 Changes: -------- --- /work/SRC/openSUSE:Factory/ZArchive/ZArchive.changes 2023-05-05 15:59:24.296813832 +0200 +++ /work/SRC/openSUSE:Factory/.ZArchive.new.1533/ZArchive.changes 2023-05-16 14:28:06.035973288 +0200 @@ -1,0 +2,5 @@ +Mon May 15 19:29:55 UTC 2023 - Jaime MarquÃnez Ferrándiz <jaime.marquinez.ferran...@fastmail.net> + +- Add use_pkgconfig_for_zstd.patch + +------------------------------------------------------------------- New: ---- use_pkgconfig_for_zstd.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ZArchive.spec ++++++ --- /var/tmp/diff_new_pack.cI2P7s/_old 2023-05-16 14:28:06.587976445 +0200 +++ /var/tmp/diff_new_pack.cI2P7s/_new 2023-05-16 14:28:06.595976491 +0200 @@ -24,6 +24,8 @@ License: MIT-0 URL: https://github.com/Exzap/ZArchive Source0: ZArchive-%{version}.tar.xz +# PATCH-FIX-OPENSUSE +Patch1: use_pkgconfig_for_zstd.patch BuildRequires: cmake >= 3.15 %if 0%{?suse_version} < 1550 BuildRequires: gcc12-c++ @@ -49,7 +51,7 @@ This subpackage contains the devel files for ZArchive %prep -%autosetup +%autosetup -p1 %build %if 0%{?suse_version} < 1550 ++++++ ZArchive-0.1.2+git20220908.d2c7177.obscpio ++++++ ++++++ use_pkgconfig_for_zstd.patch ++++++ Index: ZArchive-0.1.2+git20220908.d2c7177/cmake/Findzstd.cmake =================================================================== --- ZArchive-0.1.2+git20220908.d2c7177.orig/cmake/Findzstd.cmake +++ ZArchive-0.1.2+git20220908.d2c7177/cmake/Findzstd.cmake @@ -3,31 +3,18 @@ include(FindPackageHandleStandardArgs) -find_package(zstd CONFIG QUIET) -if (zstd_FOUND) - # Use upstream zstdConfig.cmake if possible - if (NOT TARGET zstd::zstd) - if (TARGET zstd::libzstd_static) - add_library(zstd::zstd ALIAS zstd::libzstd_static) - elseif (TARGET zstd::libzstd_shared) - add_library(zstd::zstd ALIAS zstd::libzstd_shared) - endif() - endif() - find_package_handle_standard_args(zstd CONFIG_MODE) -else() - # Fallback to pkg-config otherwise - find_package(PkgConfig) - if (PKG_CONFIG_FOUND) - pkg_search_module(libzstd IMPORTED_TARGET GLOBAL libzstd) - if (libzstd_FOUND) - add_library(zstd::zstd ALIAS PkgConfig::libzstd) - endif() - endif() - - find_package_handle_standard_args(zstd - REQUIRED_VARS - libzstd_LINK_LIBRARIES - libzstd_FOUND - VERSION_VAR libzstd_VERSION - ) +# Fallback to pkg-config otherwise +find_package(PkgConfig) +if (PKG_CONFIG_FOUND) + pkg_search_module(libzstd IMPORTED_TARGET GLOBAL libzstd) + if (libzstd_FOUND) + add_library(zstd::zstd ALIAS PkgConfig::libzstd) + endif() endif() + +find_package_handle_standard_args(zstd + REQUIRED_VARS + libzstd_LINK_LIBRARIES + libzstd_FOUND + VERSION_VAR libzstd_VERSION +)