File maomaowm.spec of Package maomaowm

#
# spec file for package maomaowm
#
# Copyright (c) 2025 mantarimay
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%bcond_with xwayland
Name:           maomaowm
Version:        0.6.0
Release:        0
Summary:        A Wayland compositor with smooth animation
License:        GPL-3.0-or-later
URL:            https://github.com/DreamMaoMao/maomaowm
Source0:        %{url}/archive/V%{version}/%{name}-%{version}.tar.gz
BuildRequires:  hicolor-icon-theme
BuildRequires:  meson
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(libinput)
BuildRequires:  pkgconfig(libseat) 
BuildRequires:  pkgconfig(libpcre2-8) 
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(scenefx-0.4)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(wayland-server)
BuildRequires:  pkgconfig(xkbcommon)
Recommends:     xwayland
Recommends:     foot
Recommends:     rofi-wayland
Suggests:       grim
Suggests:       swaybg
Suggests:       waybar

%description
Maomao is as lightweight as dwl, supports unique functionalities like
Hyprland’s animations, Sway’s additional protocols, Labwc’s text input
method, Niri’s scrolling layout.

%prep
%autosetup

%build
%meson \
%if %{with xwayland}
    -Dxwayland=enabled \
%else
    -Dxwayland=disabled \
%endif
%{nil}
%meson_build

%install
%meson_install --skip-subprojects

%files
%license LICEN*
%doc README.md
%dir %{_sysconfdir}/maomao
%config(noreplace) %{_sysconfdir}/maomao/config.conf
%{_bindir}/maomao
%{_datadir}/wayland-sessions

%changelog
openSUSE Build Service is sponsored by