1 Summary: i3-compatible Wayland compositor
7 Source0: https://github.com/swaywm/sway/releases/download/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: 9a7edc89abfc3f36d47546457e0bc901
10 Patch1: %{name}-i3_ipc_compat.patch
11 URL: https://swaywm.org/
12 BuildRequires: OpenGLESv2-devel
13 BuildRequires: bash-completion
14 BuildRequires: cairo-devel
15 BuildRequires: gdk-pixbuf2-devel
16 BuildRequires: json-c-devel >= 0.13
17 BuildRequires: libevdev-devel
18 BuildRequires: libinput-devel >= 1.6.0
19 BuildRequires: libxcb-devel
20 BuildRequires: meson >= 0.53.0
22 BuildRequires: pango-devel
23 BuildRequires: pcre-devel
24 BuildRequires: pixman-devel
25 BuildRequires: rpmbuild(macros) >= 1.752
26 BuildRequires: scdoc >= 1.9.2
27 BuildRequires: systemd-devel >= 239
28 BuildRequires: wayland-devel
29 BuildRequires: wayland-protocols >= 1.14
30 BuildRequires: wlroots-devel >= 0.12.0
31 BuildRequires: xorg-lib-libxkbcommon-devel
32 Requires: json-c >= 0.13
33 Requires: libinput >= 1.6.0
34 Requires: systemd-libs >= 239
35 Requires: wlroots >= 0.12.0
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Sway is a tiling Wayland compositor and a drop-in replacement for the
40 i3 window manager for X11. It works with your existing i3
41 configuration and supports most of i3's features, plus a few extras.
43 Sway allows you to arrange your application windows logically, rather
44 than spatially. Windows are arranged into a grid by default which
45 maximizes the efficiency of your screen and can be quickly manipulated
46 using only the keyboard.
49 Summary: Background images for sway compositor
51 Requires: %{name} = %{version}-%{release}
54 %description backgrounds
55 Background images for sway compositor.
57 %package -n bash-completion-sway
58 Summary: Bash completion for sway
59 Group: Applications/Shells
60 Requires: %{name} = %{version}-%{release}
61 Requires: bash-completion >= 2.0
64 %description -n bash-completion-sway
65 Bash completion for sway.
67 %package -n fish-completion-sway
68 Summary: fish-completion for sway
69 Group: Applications/Shells
70 Requires: %{name} = %{version}-%{release}
74 %description -n fish-completion-sway
75 fish-completion for sway.
77 %package -n zsh-completion-sway
78 Summary: ZSH completion for sway
79 Group: Applications/Shells
80 Requires: %{name} = %{version}-%{release}
84 %description -n zsh-completion-sway
85 ZSH completion for sway.
97 rm -rf $RPM_BUILD_ROOT
98 %ninja_install -C build
101 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
105 %doc CONTRIBUTING.md README.md
106 %dir %{_sysconfdir}/sway
107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sway/config
108 %attr(755,root,root) %{_bindir}/sway
109 %attr(755,root,root) %{_bindir}/swaybar
110 %attr(755,root,root) %{_bindir}/swaymsg
111 %attr(755,root,root) %{_bindir}/swaynag
112 %{_datadir}/wayland-sessions/sway.desktop
113 %{_mandir}/man1/sway.1*
114 %{_mandir}/man1/swaymsg.1*
115 %{_mandir}/man1/swaynag.1*
116 %{_mandir}/man5/sway-bar.5*
117 %{_mandir}/man5/sway-input.5*
118 %{_mandir}/man5/sway-output.5*
119 %{_mandir}/man5/sway.5*
120 %{_mandir}/man5/swaynag.5*
121 %{_mandir}/man7/sway-ipc.7*
122 %{_mandir}/man7/swaybar-protocol.7*
125 %defattr(644,root,root,755)
126 %dir %{_datadir}/backgrounds/sway
127 %{_datadir}/backgrounds/sway/Sway_Wallpaper_Blue_*.png
129 %files -n bash-completion-sway
130 %defattr(644,root,root,755)
132 %{bash_compdir}/swaybar
133 %{bash_compdir}/swaymsg
135 %files -n fish-completion-sway
136 %defattr(644,root,root,755)
137 %{fish_compdir}/sway.fish
138 %{fish_compdir}/swaymsg.fish
139 %{fish_compdir}/swaynag.fish
141 %files -n zsh-completion-sway
142 %defattr(644,root,root,755)
144 %{zsh_compdir}/_swaymsg