%global codate 20220415 %global commit 8a8d673d738ce010ca32a179032e8f6c0bb5dfb4 %global shortcommit %(c=%{commit}; echo ${c:0:8}) Name: edid-decode Version: 0 Release: %autorelease -s %{codate}git%{shortcommit} Summary: Decode EDID data in human-readable format License: MIT URL: https://git.linuxtv.org/edid-decode.git/ Source0: edid-decode-%{shortcommit}.tar.xz Source1: edid-decode-snapshot.sh BuildRequires: gcc-c++ make Conflicts: xorg-x11-utils < 7.5-33 %description Decodes raw monitor EDID data in human-readable format. %prep %setup -q -n %{name} %build %set_build_flags %make_build %install %make_install %files %doc README %license LICENSE %{_bindir}/%{name} %{_mandir}/man1/%{name}* %changelog %autochangelog