#
# spec file for package vulkan-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/
#


# vkinfo reports vulkan-headers's version even if the loader/tools/etc.
# are at an older version, which in the past confused some users.
# Consider only updating the sources in lockstep.
#
Name:           vulkan-headers
Version:        1.2.189.0
Release:        1.2
Summary:        Vulkan C and C++ API header files
License:        Apache-2.0
Group:          Development/Libraries/C and C++
URL:            https://github.com/KhronosGroup/Vulkan-Headers
Source:         https://github.com/KhronosGroup/Vulkan-Headers/archive/sdk-%version.tar.gz
BuildRequires:  cmake >= 2.8.11
BuildArch:      noarch
Requires:       pkgconfig(wayland-client)
Requires:       pkgconfig(x11)
Requires:       pkgconfig(xcb)
Requires:       pkgconfig(xrandr)
Conflicts:      vulkan-devel < 1.1.91

%description
Vulkan is a 3D graphics and compute API providing cross-platform
access to modern GPUs with low overhead and targeting realtime
graphics applications such as games and interactive media.

This package contains the development headers for packages wanting
to make use of Vulkan.

%prep
%autosetup -n Vulkan-Headers-sdk-%version

%build
%cmake \
	-DCMAKE_INSTALL_SYSCONFDIR="%_sysconfdir" \
	-DBUILD_WSI_MIR_SUPPORT=OFF \
	-DBUILD_TESTS=OFF
%cmake_build

%install
%cmake_install

%files
%license LICENSE.txt
%_includedir/vulkan/
%_includedir/vk_video/
%_datadir/vulkan/

%changelog
* Sun Sep  5 2021 Jan Engelhardt <jengelh@inai.de>
- Update to release SDK-1.2.189
  * No changelog was provided
* Mon Jul  5 2021 Jan Engelhardt <jengelh@inai.de>
- Update to release SDK-1.2.182.0
  * New extensions: VK_EXT_provoking_vertex,
    VK_KHR_shader_subgroup_uniform_control_flow,
    VK_EXT_global_priority_query, VK_EXT_acquire_drm_display,
    VK_EXT_physical_device_drm, VK_EXT_multi_draw,
    VK_HUAWEI_subpass_shading, VK_NV_ray_tracing_motion_blur,
    VK_NV_external_memory_rdma.
* Wed May  5 2021 Jan Engelhardt <jengelh@inai.de>
- Update to release SDK-1.2.176.0
  * Added Vulkan video extensions
* Fri Feb 26 2021 Jan Engelhardt <jengelh@inai.de>
- Update to release SDK-1.2.170.0
  * New VK_KHR_synchronization2 extension.
* Wed Feb 10 2021 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.169
  * No changelog provided
* Wed Jan 27 2021 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.166
  * No changelog provided
* Tue Dec 29 2020 Dirk Müller <dmueller@suse.com>
- update to 1.2.165:
  * loader: Properly check for elevated permissions
  * loader: Remove SEEK_END usage
  * Rename LIB_SUFFIX to VULKAN_LIB_SUFFIX
  * build: Update known-good files for 1.2.165 header
* Mon Dec 14 2020 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.162.0 (sdk)
  * Add GGP (Stadia) WSI platform support to vk_icd.h
* Wed Nov 25 2020 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.161
  * No changelog provided
* Mon Oct 19 2020 Dirk Mueller <dmueller@suse.com>
- update to 1.2.158:
  * Update to match Vulkan-Docs 1.2.158
* Mon Sep 28 2020 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.154
  * No changelog provided
* Thu Sep 10 2020 Dirk Mueller <dmueller@suse.com>
- update to 1.2.153:
  * docs update
* Thu Aug 27 2020 Dirk Mueller <dmueller@suse.com>
- update to 1.2.152:
  * Add VI WSI platform support to vk_icd.h
* Tue Aug 18 2020 Dirk Mueller <dmueller@suse.com>
- update to 1.2.151:
  * Fix enum order for backwards compatibility
  * Update vk_icd.h with typedefs and prototypes
  * Add missing ifdef for extern "C"
  * Add a loader features interface
* Sat Aug  1 2020 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.148
  * No changelog provided
* Sun Jun 28 2020 Callum Farmer <callumjfarmer13@gmail.com>
- Update to release 1.2.145
  * No changelog provided
* Thu May 28 2020 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.141
  * No changelog provided
* Mon Apr 13 2020 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.137
  * No changelog provided
* Wed Apr  1 2020 Aaron Stern <ukbeast89@protonmail.com>
- Update to release 1.2.135
  * No changelog supplied
* Tue Feb 18 2020 Antonio Larrosa <alarrosa@suse.com>
- Update to release 1.2.133
  * No changelog supplied
* Mon Feb  3 2020 Antonio Larrosa <alarrosa@suse.com>
- Update to release 1.2.132
  * No changelog supplied
* Sun Jan 19 2020 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.2.131
  * No changelog supplied
* Thu Dec 12 2019 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.1.130
  * The new VK_EXT_tooling_info extension can be used to let the
    Vulkan application/game/engine query what development tools
    are running right now.
* Thu Nov  7 2019 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.1.127
  * VK_KHR_separate_depth_stencil_layouts allows for image memory
    barriers for depth/stencil images to have just one of the
    depth or stencil bits set instead of both.
* Sat Oct 26 2019 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.1.126
  * No changelog supplied
* Wed Oct 16 2019 Jan Engelhardt <jengelh@inai.de>
- Update to release 1.1.124
  * headers: add metal surface support to ICD header
* Sun Sep 22 2019 Aaron Stern <ukbeast89@protonmail.com>
- Update to new upstream release 1.1.123
  * Update headers in accordance with 1.1.123 specification.
* Wed Aug 21 2019 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.120
  * Update headers in accordance with 1.1.120 specification.
* Sun Aug 18 2019 Aaron Stern <ukbeast89@ptotonmail.com>
- Update to new upstream release 1.1.119
  * No changelog was provided
* Fri Jun 28 2019 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.112
  * No changelog was provided
* Tue Jun  4 2019 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.108
  * headers: device creation callbacks for layers
* Sat Mar 16 2019 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.102
  * No changelog was provided
* Mon Feb 18 2019 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.100
  * Add missing return statement to to_string functions
* Thu Jan 24 2019 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.98
  * Header file updated to the 1.1.98 specification
* Tue Dec 18 2018 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.96
  * No changelog was provided
* Mon Dec  3 2018 Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.1.95
  * New extensions: VK_KHR_shader_float16_int8,
    VK_KHR_shader_float_controls
* Mon Nov 12 2018 Jan Engelhardt <jengelh@inai.de>
- Split vulkan SRPM -> vulkan-headers SRPM, following an upstream
  repository split.
- Update to new upstream release 1.1.91
  * Generally no summary changelog is given for the header files
    by upstream