%global git_date 20240528 %global git_hash 07fbf14 # Version in meson.build %global git_ver 0.6.0 %global rel 10 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: libliftoff Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Source: %{url}/%{src_name} Summary: Lightweight KMS plane library License: MIT URL: https://gitlab.freedesktop.org/emersion/libliftoff BuildRequires: meson >= 0.52.0 BuildRequires: ninja-build BuildRequires: gcc BuildRequires: pkgconfig(libdrm) %description libliftoff eases the use of KMS planes from userspace without standing in your way. Users create "virtual planes" called layers, set KMS properties on them, and libliftoff will allocate planes for these layers if possible. %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 -p1 -n %{name} %build %meson %meson_build %install %meson_install %files %license LICENSE %doc README.md %{_libdir}/*.so.0* %files devel %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog %autochangelog