File mingw64-spirv-headers.spec of Package mingw64-spirv-headers
#
# spec file for package mingw64-spirv-headers
#
# Copyright (c) 2021 SUSE LLC
#
# 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/
#
%define _name spirv-headers
Name: mingw64-%{_name}
Version: 1.6.1+sdk239
Release: 0
Summary: Machine-readable files from the SPIR-V registry
License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/KhronosGroup/SPIRV-Headers
Source: https://github.com/KhronosGroup/SPIRV-Headers/archive/sdk-1.3.239.0.tar.gz
Patch0: SPIRV-Headers-1.5.4.g108-fix-cmake-install-dir.patch
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
%_mingw64_package_header_debug
BuildArch: noarch
%description
This repository contains machine-readable files from the SPIR-V
registry. This includes:
* Header files for various languages.
* JSON files describing the grammar for the SPIR-V core instruction
set, and for the GLSL.std.450 extended instruction set.
* The XML registry file.
%_mingw64_debug_package
%prep
%autosetup -p1 -n SPIRV-Headers-sdk-1.3.239.0
%build
%_mingw64_cmake
%_mingw64_cmake_build
%install
%_mingw64_cmake_install
%files
%_mingw64_includedir/spirv/
%license LICENSE
%_mingw64_libdir/cmake
%_mingw64_datadir/pkgconfig
%changelog