File project.diff of Package zstd

--- zstd.spec.orig
+++ zstd.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package zstd
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,14 +16,14 @@
 #
 
 
-%bcond_without cmake
-
 %define libname libzstd1
 %if 0%{?suse_version} <= 1500
 %define with_gzip 0
 %else
 %define with_gzip 1
 %endif
+%{!?make_build:%global make_build make %{?_smp_mflags}}
+%bcond_without cmake
 Name:           zstd
 Version:        1.5.7
 Release:        0
@@ -37,9 +37,6 @@ Source2:        zstd.keyring
 Source99:       baselibs.conf
 # PATCH-FIX-OPENSUSE -- 0001-Don-t-export-libzstd_static-CMake-target.patch
 Patch0:         0001-Don-t-export-libzstd_static-CMake-target.patch
-%if %{with cmake}
-BuildRequires:  cmake
-%endif
 BuildRequires:  gcc
 # C++ is needed for pzstd only
 BuildRequires:  gcc-c++
@@ -47,6 +44,9 @@ BuildRequires:  pkgconfig
 # for .gz support
 BuildRequires:  pkgconfig(zlib)
 %{?suse_build_hwcaps_libs}
+%if %{with cmake}
+BuildRequires:  cmake
+%endif
 
 %description
 Zstd, short for Zstandard, is a lossless compression algorithm. Speed
@@ -131,16 +131,17 @@ for dir in programs contrib/pzstd; do
 done
 %endif
 
+%if 0%{?suse_version} > 1500
 %check
 export CFLAGS="%{optflags}"
 export CXXFLAGS="%{optflags} -std=c++11"
 %make_build -C tests test-zstd
-#make_build -C contrib/pzstd test-pzstd
+%endif
 
 %install
 %if %{with cmake}
 %cmake_install
-rm %{buildroot}%{_datadir}/doc/packages/zstd/zstd_manual.html
+find %{buildroot}%{_datadir} -name zstd_manual.html -print -delete
 %else
 %make_install V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir}
 install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
@@ -152,7 +153,12 @@ ln -s zstd %{buildroot}/%{_bindir}/gunzi
 ln -s zstdcat %{buildroot}/%{_bindir}/zcat
 %endif
 
+%if %{undefined ldconfig_scriptlets}
+%post -n %{libname} -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
+%else
 %ldconfig_scriptlets -n %{libname}
+%endif
 
 %files
 %license COPYING LICENSE
openSUSE Build Service is sponsored by