%global forgeurl https://github.com/DreamMaoMao/mangowc Name: mangowc Version: 0.0.0 Release: 1.gitHEAD%{?dist} Summary: Lightweight Wayland compositor with smooth animation License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{forgeurl}/archive/HEAD/%{name}-HEAD.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: meson BuildRequires: ninja-build BuildRequires: pkgconfig BuildRequires: wayland-devel BuildRequires: wayland-protocols-devel BuildRequires: wlroots-devel BuildRequires: libinput-devel BuildRequires: libdrm-devel BuildRequires: libxkbcommon-devel BuildRequires: pixman-devel BuildRequires: libseat-devel BuildRequires: pcre2-devel BuildRequires: scenefx-devel Requires: scenefx %description MangoWC is a lightweight Wayland compositor based on wlroots and SceneFX. %prep # Deterministic extract dir for Copr %setup -T -c -n %{name}-src tar -xf %{SOURCE0} --strip-components=1 %build %meson -Dxwayland=enabled %meson_build %install %meson_install # Remove upstream-installed files we replace rm -f %{buildroot}/etc/mango/config.conf || : rm -f %{buildroot}%{_datadir}/wayland-sessions/mango.desktop || : # Install session file (in repo root, not in data/) install -Dm0644 mango.desktop \ %{buildroot}%{_datadir}/wayland-sessions/mango.desktop # Install config (also in repo root) install -Dm0644 config.conf \ %{buildroot}%{_sysconfdir}/mango/config.conf %files %license LICENSE* %doc README.md %{_bindir}/mango %{_bindir}/mmsg %{_datadir}/wayland-sessions/mango.desktop %config(noreplace) %{_sysconfdir}/mango/config.conf %changelog * Wed Nov 19 2025 Christian Bendiksen - 0.0.0-1.gitHEAD - Build from latest Git HEAD