%global git_date 20240921 %global git_hash 500c81a %global git_ver 0.4.2 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: hyprwayland-scanner Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: A Hyprland implementation of wayland-scanner, in and for C++. License: BSD-3-Clause URL: https://github.com/hyprwm/hyprwayland-scanner Source: %{url}/%{src_name} #Remember to check version upstream BuildRequires: make cmake gcc-c++ BuildRequires: pkgconfig(pugixml) %description A Hyprland implementation of wayland-scanner, in and for C++. %package devel Summary: devel files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel devel files for %{name} %prep %autosetup -p1 -n %{name} %build %cmake %cmake_build %install %cmake_install %files %doc README.md %license LICENSE %{_bindir}/%{name} %files devel %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/cmake/%{name}/%{name}*.cmake %changelog %autochangelog