File mangowc-git.spec of Package mangowc-git

#
# spec file for package mangowc
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#

%global pkg_name mangowc

Name:           mangowc-git
Version:        0
Release:        0
Summary:        Wayland compositor base wlroots and scenefx(dwm but wayland)
License:        (MIT and GPL-3.0-only and CC0-1.0)
URL:            https://github.com/DreamMaoMao/mangowc?tab=readme-ov-file
Source0:        %{pkg_name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
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)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:  pkgconfig(wlroots-0.19)
BuildRequires:  pkgconfig(xwayland)
Recommends:     xwayland
Recommends:     foot
Recommends:     rofi-wayland
Conflicts:      %{pkg_name}
Suggests:       grim
Suggests:       swaybg
Suggests:       waybar
BuildRequires:  meson
BuildSystem:    meson
BuildOption(prep): -n %{pkg_name}-%{version}
%description
This project's development is based on dwl.

- Lightweight & Fast Build
  - Mango is as lightweight as dwl, and can be built completely
    within a few seconds. Despite this, Mango does not compromise on
    functionality.

- Feature Highlights
  - In addition to basic WM functionality, Mango provides:
  - Excellent xwayland support.
  - Base tags not workspaces (supports separate window layouts for
    each tag)
  - Smooth and customizable complete animations (window
    open/move/close, tag enter/leave,layer open/close/move)
  - Excellent input method support (text input v2/v3)
  - Flexible window layouts with easy switching (scroller,
    master-stack, monocle,center-master, etc.)
  - Rich window states (swallow, minimize, maximize, unglobal,
    global, fakefullscreen, overlay, etc.)
  - Simple yet powerful external configuration(support shortcuts
    hot-reload)
  - Sway-like scratchpad and named scratchpad
  - Ipc support(get/send message from/to compositor by external
    program)
  - Hycov-like overview
  - Window effects from scenefx (blur, shadow, corner radius,
    opacity)

%conf -p
#perl -p -i -e "s|'release'|'$(awk '/commit/ {print $2}' ${RPM_SOURCE_DIR}/mangowc.obsinfo)'|g" meson.build
perl -p -i -e "s|version_with_hash\s+=.*$|version_with_hash = '%{version}'|g" meson.build

%files
%license LICENSE*
%doc README.md
%config(noreplace) %{_sysconfdir}/mango/
%{_bindir}/mango
%{_bindir}/mmsg
%dir %{_datadir}/wayland-sessions/
%{_datadir}/wayland-sessions/mango.desktop
%dir %{_datadir}/xdg-desktop-portal/
%{_datadir}/xdg-desktop-portal/mango-portals.conf

%changelog
openSUSE Build Service is sponsored by