%global commit0 64515a97dc9e69d5cf4e7e0d4d4d297df4aea2cb %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global bumpver 1 Name: hyprsunset Version: 0~%{bumpver}.git%{shortcommit0} Release: %autorelease Summary: An application to enable a blue-light filter on Hyprland License: BSD-3-Clause URL: https://github.com/hyprwm/hyprsunset Source: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(hyprland-protocols) BuildRequires: pkgconfig(hyprutils) BuildRequires: pkgconfig(hyprwayland-scanner) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) %description %{summary}. %prep %autosetup -n %{name}-%{commit0} -p1 %build %cmake %cmake_build %install %cmake_install %files %license LICENSE %doc README.md %{_bindir}/%{name} %changelog %autochangelog