]>
Commit | Line | Data |
---|---|---|
676f3510 JP |
1 | Summary: i3-compatible Wayland compositor |
2 | Name: sway | |
3 | Version: 1.5.1 | |
4 | Release: 1 | |
5 | License: MIT | |
6 | Group: Applications | |
7 | Source0: https://github.com/swaywm/sway/releases/download/%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 9a7edc89abfc3f36d47546457e0bc901 | |
b43053b9 | 9 | Patch0: x32.patch |
ac52b9f9 | 10 | Patch1: %{name}-i3_ipc_compat.patch |
676f3510 JP |
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 | |
21 | BuildRequires: ninja | |
22 | BuildRequires: pango-devel | |
23 | BuildRequires: pcre-devel | |
24 | BuildRequires: pixman-devel | |
25 | BuildRequires: rpmbuild(macros) >= 1.752 | |
51c4059a | 26 | BuildRequires: scdoc >= 1.9.2 |
676f3510 JP |
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) | |
37 | ||
38 | %description | |
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. | |
42 | ||
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. | |
47 | ||
48 | %package backgrounds | |
49 | Summary: Background images for sway compositor | |
50 | Group: Themes | |
51 | Requires: %{name} = %{version}-%{release} | |
7a821692 | 52 | BuildArch: noarch |
676f3510 JP |
53 | |
54 | %description backgrounds | |
55 | Background images for sway compositor. | |
56 | ||
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 | |
7a821692 | 62 | BuildArch: noarch |
676f3510 JP |
63 | |
64 | %description -n bash-completion-sway | |
65 | Bash completion for sway. | |
66 | ||
67 | %package -n fish-completion-sway | |
68 | Summary: fish-completion for sway | |
69 | Group: Applications/Shells | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | Requires: fish | |
7a821692 | 72 | BuildArch: noarch |
676f3510 JP |
73 | |
74 | %description -n fish-completion-sway | |
75 | fish-completion for sway. | |
76 | ||
77 | %package -n zsh-completion-sway | |
78 | Summary: ZSH completion for sway | |
79 | Group: Applications/Shells | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | Requires: zsh | |
7a821692 | 82 | BuildArch: noarch |
676f3510 JP |
83 | |
84 | %description -n zsh-completion-sway | |
85 | ZSH completion for sway. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
b43053b9 | 89 | %patch0 -p1 |
ac52b9f9 | 90 | %patch1 -p1 |
676f3510 JP |
91 | |
92 | %build | |
93 | %meson build | |
94 | %ninja_build -C build | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | %ninja_install -C build | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %files | |
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 | |
51c4059a JP |
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* | |
676f3510 JP |
123 | |
124 | %files backgrounds | |
125 | %defattr(644,root,root,755) | |
126 | %dir %{_datadir}/backgrounds/sway | |
127 | %{_datadir}/backgrounds/sway/Sway_Wallpaper_Blue_*.png | |
128 | ||
129 | %files -n bash-completion-sway | |
130 | %defattr(644,root,root,755) | |
131 | %{bash_compdir}/sway | |
132 | %{bash_compdir}/swaybar | |
133 | %{bash_compdir}/swaymsg | |
134 | ||
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 | |
140 | ||
141 | %files -n zsh-completion-sway | |
142 | %defattr(644,root,root,755) | |
143 | %{zsh_compdir}/_sway | |
144 | %{zsh_compdir}/_swaymsg |