80 lines
2.5 KiB
Text
80 lines
2.5 KiB
Text
# vim: ft=spec
|
|
Name: {{{ git_name }}}
|
|
Version: {{{ git_version }}}
|
|
Release: {{{ git_release }}}%{?dist}
|
|
Summary: Configuration files for Fedora Sway Spin
|
|
|
|
License: MIT
|
|
URL: https://git.alebastr.su/alebastr/fedora-sway-configs
|
|
Source0: {{{ git_pack path=$(git rev-parse --show-toplevel) }}}
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%package -n sway-config-fedora
|
|
Summary: Configuration of Sway for Fedora Sway Spin
|
|
BuildArch: noarch
|
|
Requires: sway >= 1.7
|
|
Provides: sway-config = %{version}-%{release}
|
|
Conflicts: sway-config
|
|
|
|
# By default the Fedora background is used
|
|
# Weak dependency here may cause a swaynag warning during the configuration load
|
|
Requires: desktop-backgrounds-compat
|
|
# Lack of graphical drivers may hurt the common use case
|
|
Requires: mesa-dri-drivers
|
|
# Logind needs polkit to create a graphical session
|
|
Requires: polkit
|
|
# swaybg is used in the default config
|
|
Requires: swaybg
|
|
# dmenu (as well as rxvt any many others) requires XWayland on Sway
|
|
Requires: xorg-x11-server-Xwayland
|
|
|
|
# Sway binds the terminal shortcut to one specific terminal. In our case foot
|
|
Recommends: foot
|
|
# grim is the recommended way to take screenshots on sway 1.0+
|
|
Recommends: grim
|
|
# Dmenu is the default launcher in sway
|
|
Recommends: dmenu
|
|
# In addition, xargs is recommended for use in such a launcher arrangement
|
|
Recommends: findutils
|
|
# Install configs and scripts for better integration with systemd user session
|
|
Recommends: sway-systemd
|
|
# Both utilities are suggested in the default configuration
|
|
Recommends: swayidle
|
|
Recommends: swaylock
|
|
|
|
# Minimal installation doesn't include Qt Wayland backend
|
|
Recommends: (qt5-qtwayland if qt5-qtbase-gui)
|
|
Recommends: (qt6-qtwayland if qt6-qtbase-gui)
|
|
|
|
# Default config dependencies
|
|
Recommends: libnotify
|
|
Recommends: light
|
|
Recommends: playerctl
|
|
Recommends: pulseaudio-utils
|
|
|
|
%description -n sway-config-fedora
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
{{{ git_setup_macro path=$(git rev-parse --show-toplevel) }}}
|
|
|
|
|
|
%install
|
|
install -D -m 0644 -pv -t %{buildroot}%{_sysconfdir}/sway sway/config
|
|
install -D -m 0644 -pv -t %{buildroot}%{_sysconfdir}/sway/config.d sway/50-fedora.conf
|
|
install -D -m 0644 -pv -t %{buildroot}%{_datadir}/sway/config.d sway/config.d/*
|
|
|
|
|
|
%files -n sway-config-fedora
|
|
%license LICENSE
|
|
%config(noreplace) %{_sysconfdir}/sway/config
|
|
%config(noreplace) %{_sysconfdir}/sway/config.d/50-fedora.conf
|
|
%{_datadir}/sway/config.d
|
|
|
|
%changelog
|
|
{{{ git_changelog }}}
|