File lxqt-wayland-session.spec of Package lxqt-wayland-session

#
# spec file for package lxqt-wayland-session
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#


Name:           lxqt-wayland-session
Version:        @SERVICE@
Release:        0
Summary:        Files needed for the LXQt Wayland Session
License:        LGPL-2.1-or-later
Group:          System/GUI/LXQt
URL:            https://github.com/lxqt/lxqt-wayland-session
Source0:        %{name}-%{version}.tar.xz
Patch1:         001-default-wallpaper.patch
Patch2:         002-xkb-layout.patch
BuildRequires:  cmake
BuildRequires:  cmake(lxqt2-build-tools)
BuildRequires:  cmake(KF6WindowSystem)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(lxqt) >= 2.1.0
BuildRequires:  xdg-user-dirs
Requires:       xdg-user-dirs
#ecommends:     kwin6
BuildArch:      noarch

%description
Files needed for the LXQt Wayland Session: Wayland session start script,
its desktop entry for display managers and default configurations for
actually supported compositors.

%package -n     lxqt-hyprland-session
Summary:        Session files for LXQt-Hyprland
License:        BSD-3-Clause
Requires:       %{name} = %{version}
Requires:       hyprland
Supplements:    (%{name} and hyprland)

%description -n lxqt-hyprland-session
This package contains the files necessary to use Hyprland as the Wayland
compositor with LXQt

%package -n     lxqt-niri-session
Summary:        Session files for LXQT-niri
License:        GPL-3.0-or-later
Requires:       %{name} = %{version}
Requires:       niri
Supplements:    (%{name} and niri)

%description -n lxqt-niri-session
This package contains the files necessary to use niri as the Wayland compositor
for LXQt

%package -n     lxqt-river-session
Summary:        Session files for LXQt-river
License:        GPL-3.0-or-later
Requires:       %{name} = %{version}
Requires:       river
Supplements:    (%{name} and river)

%description -n lxqt-river-session
This package contains the files necessary to use river as the Wayland
compositor with LXQt

%package -n     lxqt-sway-session
Summary:        Session files for LXQt-Sway
License:        MIT
Requires:       %{name} = %{version}
Requires:       sway
Supplements:    (%{name} and sway)

%description -n lxqt-sway-session
This package contains the files necessary to use Sway as the Wayland compositor
with LXQt

%package -n     lxqt-wayfire-session
Summary:        Session files for LXQt-wayfire
License:        MIT
Requires:       %{name} = %{version}
Requires:       wayfire
Supplements:    (%{name} and wayfire)

%description -n lxqt-wayfire-session
This package contains the files necessary to use wayfire as the Wayland
compositor with LXQt

%package -n     lxqt-labwc-session
Summary:        Vent openbox themes
License:        CC-BY-SA-4.0 AND GPL-2.0-or-later
Group:          System/GUI/Other
Requires:       labwc
Requires:       swaybg
Requires:       swayidle
Requires:       swaylock
Supplements:    (%{name} and labwc)

%description -n lxqt-labwc-session
This package contains the openbox themes and other files for labwc.

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%cmake_install
%fdupes -s %{buildroot}%{_datadir}/themes/

%files
%doc README.md
%{_bindir}/lxqt-qdbus
%{_bindir}/startlxqtwayland
%dir %{_datadir}/lxqt
%dir %{_datadir}/lxqt/wayland
%dir %{_datadir}/lxqt/wayland/firstrun
%{_datadir}/lxqt/wayland/firstrun/autostart
%dir %{_datadir}/wayland-sessions
%{_datadir}/wayland-sessions/lxqt-wayland.desktop
%{_mandir}/man?/lxqt-wayland-session.?%{?ext_man}
%{_mandir}/man?/startlxqtwayland.?%{?ext_man}
%license COPYING.LESSER LICENSE

%files -n lxqt-hyprland-session
%{_datadir}/lxqt/wayland/lxqt-hyprland.conf
%license LICENSE.BSD

%files -n lxqt-niri-session
%{_datadir}/lxqt/wayland/lxqt-niri.kdl
%{_datadir}/lxqt/wayland/lxqt-niri.kdl.full
%{_datadir}/lxqt/wayland/niri/
%license COPYING

%files -n lxqt-river-session
%{_datadir}/lxqt/wayland/lxqt-river-init
%license COPYING

%files -n lxqt-sway-session
%{_datadir}/lxqt/wayland/lxqt-sway.config
%license LICENSE.MIT

%files -n lxqt-wayfire-session
%{_datadir}/lxqt/wayland/lxqt-wayfire.ini
%license LICENSE.MIT

%files -n lxqt-labwc-session
%{_datadir}/themes/Vent/
%{_datadir}/themes/Vent-dark/
%dir %{_datadir}/lxqt/wallpapers
%{_datadir}/lxqt/wallpapers/origami-dark-labwc.png
%dir %{_datadir}/lxqt/wayland/labwc
%{_datadir}/lxqt/wayland/labwc/README
%{_datadir}/lxqt/wayland/labwc/autostart
%{_datadir}/lxqt/wayland/labwc/environment
%{_datadir}/lxqt/wayland/labwc/menu.xml
%{_datadir}/lxqt/wayland/labwc/rc.xml
%{_datadir}/lxqt/wayland/labwc/themerc
%{_datadir}/lxqt/wayland/labwc/themerc-override
%dir %{_datadir}/lxqt/graphics
%{_datadir}/lxqt/graphics/lxqt-labwc.png
%license LICENSE.GPLv2

%changelog
openSUSE Build Service is sponsored by