%global git_date 20240806 %global git_hash 211fa63 %global git_ver 0.3.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: libdisplay-info Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: EDID and DisplayID library License: MIT URL: https://gitlab.freedesktop.org/emersion/libdisplay-info Source: %{url}/%{src_name} BuildRequires: meson make gcc BuildRequires: pkgconfig(hwdata) %description EDID and DisplayID library. %package tools Summary: Command-line tools for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description tools %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{name} %build %meson %meson_build %install %meson_install %files %license LICENSE %doc README.md %{_libdir}/%{name}.so.* %files tools %{_bindir}/di-edid-decode %files devel %{_includedir}/%{name} %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog %autochangelog