%global git_date 20250208 %global git_hash a733490 %global git_ver 0.6.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: hyprlang Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: The official implementation library for the hypr config language License: LGPL-3.0-only URL: https://github.com/hyprwm/hyprlang Source0: %{url}/%{src_name} # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(hyprutils) %description %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for %{name}. %prep %autosetup -n %{name} %build %cmake %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/libhyprlang.so.* %files devel %{_includedir}/hyprlang.hpp %{_libdir}/libhyprlang.so %{_libdir}/pkgconfig/hyprlang.pc %changelog %autochangelog