File sway-services.spec of Package sway-services

#
# spec file for package sway-services
#
# Copyright (c) 2025 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:           sway-services
Version:        0+git33.ge3d9b8b
Release:        0
Summary:        A Systemd user session for Sway
License:        MIT
URL:            https://github.com/xdbob/sway-services
Source0:        %{name}-%{version}.tar.zst
BuildRequires:  meson >= 0.49
BuildRequires:  zstd
Requires:       sway
Recommends:     kanshi
# oguri.service is provided, but oguri itself is not packaged for openSUSE yet
# Recommends:     oguri
Recommends:     swayidle
BuildArch:      noarch

%description

A collection of tools, utilities and mostly unit files to handle a systemd-user sway session.

Usage: run Sway Service from your desktop manager or run sway-user-service.

Provided targets:

- sway-session.target
- sway-session-pre.target
- wayland-session.target
- wayland-session-pre.target

These targets are directly mapped to graphical-session{,-pre}.target but for wayland exclusive services

Provided services:

- sway.service
- kanshi.service
- oguri.service
- swayidle.service

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%doc README.md examples/idle.yaml
%{_bindir}/sway-user-service
%{_bindir}/swayidle-conf
%dir %{_sysconfdir}/sway
%dir %{_sysconfdir}/sway/config.d
%config(noreplace) %{_sysconfdir}/sway/config.d/10-service.conf
%{_prefix}/lib/systemd/user/
%{_datadir}/wayland-sessions/

%changelog
openSUSE Build Service is sponsored by