## Version in vkroots.h %global git_date 20240308 %global git_hash 5c217cd %global git_ver 0.1.0 %global rel 2 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: vkroots Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: A stupid simple method of making Vulkan layers, at home! License: LGPL and MIT URL: https://github.com/Joshua-Ashton/vkroots BuildArch: noarch Source0: %{url}/%{src_name} Source1: %{name}.pc BuildRequires: meson make gcc-c++ %description vkroots is a framework for writing Vulkan layers that takes all the complexity/hassle away from you! It's so simple! %package devel Summary: %summary %description devel vkroots is a framework for writing Vulkan layers that takes all the complexity/hastle away from you! It's so simple! Provides: %{name}-static = %{version}-%{release} BuildArch: noarch %prep %autosetup -n %{name} %build %meson %meson_build %install %meson_install install -p -D -m755 vkroots.h %{buildroot}%{_includedir}/vkroots.h install -p -D -m755 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/vkroots.pc %files %doc README.md %license LICENSE %files devel %{_includedir}/vkroots.h %{_libdir}/pkgconfig/vkroots.pc %changelog %autochangelog