# Version of the .so library %global abi_ver 7 %global compat_ver 0.12 %global compat_name wlroots Name: %{compat_name}%{compat_ver}-hwcomposer Version: %{compat_ver}.0 Release: 1%{?dist} Summary: A modular Wayland compositor library # Source files/overall project licensed as MIT, but # - LGPLv2.1+ # * protocol/idle.xml # * protocol/server-decoration.xml # Those files are processed to C-compilable files by the # `wayland-scanner` binary during build and don't alter # the main license of the binaries linking with them by # the underlying licenses. License: MIT URL: https://github.com/swaywm/%{compat_name} Source0: https://git.erikinkinen.fi/fedora-hybris/wlroots/-/archive/master/wlroots-master.tar BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: meson >= 0.56.0 BuildRequires: libglvnd-egl BuildRequires: pkgconfig(gbm) >= 17.1.0 BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(libdrm) >= 2.4.95 BuildRequires: pkgconfig(libinput) >= 1.14.0 BuildRequires: pkgconfig(libseat) BuildRequires: pkgconfig(libsystemd) >= 237 BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(pixman-1) BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-protocols) >= 1.17 BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(wayland-server) >= 1.19 BuildRequires: pkgconfig(x11-xcb) BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-icccm) BuildRequires: pkgconfig(xcb-renderutil) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(xwayland) BuildRequires: android-headers BuildRequires: libhybris-devel BuildRequires: libhybris-libhardware-devel BuildRequires: libhybris-libEGL-devel BuildRequires: libhybris-libsync-devel Provides: %{compat_name}%{compat_ver} Conflicts: %{compat_name}%{compat_ver} # only select examples are supported for being readily compilable (see SOURCE3) %global examples \ cat multi-pointer output-layout pointer rotation screencopy simple tablet touch %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 >= 0.51.2 Suggests: pkgconfig(libpng) Requires: android-headers, Requires: libhybris-devel Requires: libhybris-libhardware-devel %description devel Development files for %{name}. %prep %autosetup -p1 %build MESON_OPTIONS=( # Disable options requiring extra/unpackaged dependencies -Dexamples=false -Dxcb-errors=disabled # select systemd logind provider -Dlogind-provider=systemd %ifarch s390x # Disable -Werror on s390x: https://github.com/swaywm/wlroots/issues/2018 -Dwerror=false %endif ) %{meson} "${MESON_OPTIONS[@]}" %{meson_build} %install %{meson_install} %check %{meson_test} %files %license LICENSE %doc README.md %{_libdir}/lib%{compat_name}.so.%{abi_ver}* %files devel %{_includedir}/wlr %{_libdir}/lib%{compat_name}.so %{_libdir}/pkgconfig/%{compat_name}.pc %changelog