%global git_date  20240508
%global git_hash  ded0ff2
%global git_ver  0.4.1

%global rel  25
%global src_name %{name}-%{git_date}-%{git_hash}.tar.xz

Name:       wlr-randr
Version:	%{git_ver}^%{git_date}g%{git_hash}
Release:	%{rel}%{?dist}
Summary:    An xrandr clone for wlroots compositors

License:    MIT
URL:        https://git.sr.ht/~emersion/%{name}
Source0:	%{url}/%{src_name}

BuildRequires:  gcc
BuildRequires:  meson >= 0.43.0
BuildRequires:  pkgconfig(wayland-protocols) >= 1.14
BuildRequires:  pkgconfig(wayland-client)

%description
Utility to manage outputs of a Wayland compositor.

%prep
%autosetup -n %{name}

%build
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%doc README.md
%{_bindir}/wlr-randr

%changelog