summaryrefslogtreecommitdiff
path: root/build-scripts/swayfx.rpkg.spec
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2022-11-04 22:05:39 +0100
committerErik Reider <[email protected]>2022-11-04 22:05:39 +0100
commit6ed680a135953b2c0d0e75b518c58a9f65184fcf (patch)
tree1717918ab05bf662ff41b0392e283a2cbeb7e0ba /build-scripts/swayfx.rpkg.spec
parent73136c1e07747205d96c57ce3cb9065e0cc09db5 (diff)
Added more packaged file locations to %files
Diffstat (limited to 'build-scripts/swayfx.rpkg.spec')
-rw-r--r--build-scripts/swayfx.rpkg.spec66
1 files changed, 63 insertions, 3 deletions
diff --git a/build-scripts/swayfx.rpkg.spec b/build-scripts/swayfx.rpkg.spec
index 9cfbfcb8..18b233a7 100644
--- a/build-scripts/swayfx.rpkg.spec
+++ b/build-scripts/swayfx.rpkg.spec
@@ -61,6 +61,29 @@ Recommends: grim
%description
SwayFX: Sway, but with eye candy!
+# The artwork is heavy and we don't use it with our default config
+%package wallpapers
+Summary: Wallpapers for Sway
+BuildArch: noarch
+License: CC0
+
+%description wallpapers
+Wallpaper collection provided with Sway
+
+
+%package -n grimshot
+Summary: Helper for screenshots within sway
+Requires: grim
+Requires: jq
+Requires: slurp
+Requires: /usr/bin/wl-copy
+Recommends: /usr/bin/notify-send
+
+%description -n grimshot
+Grimshot is an easy to use screenshot tool for sway. It relies on grim,
+slurp and jq to do the heavy lifting, and mostly provides an easy to use
+interface.
+
%prep
{{{ git_dir_setup_macro }}}
@@ -73,13 +96,50 @@ SwayFX: Sway, but with eye candy!
%install
%meson_install
+# Set Fedora background as default background
+sed -i "s|^output \* bg .*|output * bg /usr/share/backgrounds/default.png fill|" %{buildroot}%{_sysconfdir}/sway/config
+# Create directory for extra config snippets
+install -d -m755 -pv %{buildroot}%{_sysconfdir}/sway/config.d
+
+# install python scripts from contrib
+install -D -m644 -pv -t %{buildroot}%{_datadir}/sway/contrib contrib/*.py
+
+# install contrib/grimshot tool
+scdoc <contrib/grimshot.1.scd >%{buildroot}%{_mandir}/man1/grimshot.1
+install -D -m755 -pv contrib/grimshot %{buildroot}%{_bindir}/grimshot
%files
%license LICENSE
%doc README.md
-%{_bindir}/sway-git
-%{_bindir}/swaybar-git
-%{_datadir}/wayland-sessions/sway-git.desktop
+%dir %{_sysconfdir}/sway
+%dir %{_sysconfdir}/sway/config.d
+%config(noreplace) %{_sysconfdir}/sway/config
+%{_mandir}/man1/sway*
+%{_mandir}/man5/*
+%{_mandir}/man7/*
+%{_bindir}/sway
+%{_bindir}/swaybar
+%{_bindir}/swaymsg
+%{_bindir}/swaynag
+%{_datadir}/sway
+%{_datadir}/wayland-sessions/sway.desktop
+%dir %{_datadir}/zsh
+%dir %{_datadir}/zsh/site-functions
+%{_datadir}/zsh/site-functions/_sway*
+%dir %{_datadir}/bash-completion
+%dir %{_datadir}/bash-completion/completions
+%{_datadir}/bash-completion/completions/sway*
+%dir %{_datadir}/fish
+%dir %{_datadir}/fish/vendor_completions.d
+%{_datadir}/fish/vendor_completions.d/sway*
+
+%files wallpapers
+%license assets/LICENSE
+%{_datadir}/backgrounds/sway
+
+%files -n grimshot
+%{_bindir}/grimshot
+%{_mandir}/man1/grimshot.1*
# Changelog will be empty until you make first annotated Git tag.
%changelog