File mingw64-zstd.spec of Package mingw64-zstd

#
# spec file for package mingw64-zstd
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%{_mingw64_package_header_debug}
Name:           mingw64-zstd
Version:        1.5.7
Release:        0
Summary:        Zstandard compression tools
License:        BSD-3-Clause AND GPL-2.0-only
URL:            https://github.com/facebook/zstd
Source0:        https://github.com/facebook/zstd/releases/download/v%{version}/zstd-%{version}.tar.gz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildArch:      noarch
BuildSystem:    mingw64cmake
BuildOption:    -DZSTD_BUILD_PROGRAMS=OFF
BuildOption:    -DZSTD_BUILD_SHARED=OFF
BuildOption:    -DZSTD_BUILD_STATIC=ON

%description
Zstd, short for Zstandard, is a lossless compression algorithm.
Speed vs. compression trade-off is configurable in small
increments. Decompression speed is preserved and remains roughly
the same at all settings.

%{_mingw64_debug_package}

%conf -p
cd build/cmake

%build -p
cd build/cmake

%install -p
cd build/cmake

%files
%license COPYING
%{_mingw64_includedir}/z*.h
%{_mingw64_libdir}/libzstd.a
%{_mingw64_libdir}/cmake/zstd/
%{_mingw64_libdir}/pkgconfig/libzstd.pc

%changelog
openSUSE Build Service is sponsored by