%global commit 5e2b0bebc2f03bc255a1754d4dba135f5971eda8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global date 20250108 %bcond_without snapshot BuildArch: noarch %if %{with snapshot} %global dist .%{date}git%{shortcommit}%{?dist} %endif %global vma_ver 3.2.0 Summary: C++ bindings for VulkanMemoryAllocator Name: VulkanMemoryAllocator-Hpp Version: 3.1.0 Release: 2%{?dist} License: Apache-2.0 URL: https://github.com/YaaZ/%{name} %if %{with snapshot} Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: ninja-build # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} %description The Vulkan Memory Allocator Hpp library provides C++ bindings for VulkanMemoryAllocator. %package devel Summary: The Vulkan Memory Allocator Hpp development package Requires: VulkanMemoryAllocator-devel >= %{vma_ver} Requires: vulkan-loader-devel Requires: vulkan-headers %description devel The Vulkan Memory Allocator Hpp development package. %prep %autosetup -n %{name}-%{?with_snapshot:%{commit}}%{!?with_snapshot:%{version}} -p1 %build %cmake \ -G Ninja \ %{nil} %cmake_build %install %cmake_install %files devel %license LICENSE %doc README.md %{_includedir}/vk*.hpp %{_datadir}/cmake/%{name} %changelog * Thu Jan 09 2025 Phantom X - 3.1.0-2.20250108git5e2b0be.20250108git5e2b0be - 1.4 headers support * Wed Aug 07 2024 Phantom X - 3.1.0-1 - Initial spec