## DT Version is in meson.build %global git_date 20241112 %global git_hash 0b720ae5 %global git_ver 0.19.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz Name: wlroots Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: A modular Wayland compositor library License: MIT URL: https://gitlab.freedesktop.org/wlroots/wlroots Source0: %{url}/%{src_name} ##Patch0: hardcode-glslang-ver.patch ##Patch1: libliftoff-0.5.0.patch BuildRequires: gcc make cmake BuildRequires: gnupg2 BuildRequires: meson BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(gbm) BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libinput) BuildRequires: pkgconfig(libseat) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(pixman-1) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-protocols) BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(x11-xcb) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-icccm) BuildRequires: pkgconfig(xcb-renderutil) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(xwayland) BuildRequires: pkgconfig(vulkan) BuildRequires: glslang BuildRequires: pkgconfig(hwdata) BuildRequires: pkgconfig(libdisplay-info) BuildRequires: pkgconfig(libliftoff) BuildRequires: pkgconfig(xcb-errors) BuildRequires: pkgconfig(lcms2) %description %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} == %{version}-%{release} # not required per se, so not picked up automatically by RPM Recommends: pkgconfig(xcb-icccm) # for examples Suggests: gcc Suggests: meson Suggests: pkgconfig(wayland-egl) %description devel Development files for %{name}. %prep %autosetup -n %{name} -p 1 %build %meson -Dexamples=false %meson_build %install %meson_install # %%doc && examples. %{__mkdir} -p %{buildroot}%{_pkgdocdir} %{__cp} -pr README.md examples %{buildroot}%{_pkgdocdir} %files %doc README.md %license LICENSE %{_libdir}/lib%{name}*.so %files devel %doc %{_pkgdocdir}/examples %{_includedir}/wlroots*/wlr %{_libdir}/pkgconfig/%{name}*.pc %changelog %autochangelog