## Version in vkroots.h %global git_date 20230103 %global git_hash 2675710 %global git_ver 0.1.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: vkroots Version: %{git_ver}.%{git_date} Release: %{rel}.%{git_hash}%{?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: %{src_name} Source1: %{name}.pc #Remember to check version upstream BuildRequires: meson make gcc-c++ %description vkroots is a framework for writing Vulkan layers that takes all the complexity/hastle 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