]>
Commit | Line | Data |
---|---|---|
676f3510 JP |
1 | Summary: i3-compatible Wayland compositor |
2 | Name: sway | |
3b140c2d | 3 | Version: 1.6 |
676f3510 JP |
4 | Release: 1 |
5 | License: MIT | |
6 | Group: Applications | |
7 | Source0: https://github.com/swaywm/sway/releases/download/%{version}/%{name}-%{version}.tar.gz | |
3b140c2d | 8 | # Source0-md5: a44921207cd8faaf7c80f97518bb2492 |
b43053b9 | 9 | Patch0: x32.patch |
676f3510 JP |
10 | URL: https://swaywm.org/ |
11 | BuildRequires: OpenGLESv2-devel | |
12 | BuildRequires: bash-completion | |
13 | BuildRequires: cairo-devel | |
14 | BuildRequires: gdk-pixbuf2-devel | |
15 | BuildRequires: json-c-devel >= 0.13 | |
3b140c2d | 16 | BuildRequires: libdrm-devel |
676f3510 JP |
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 | 27 | BuildRequires: systemd-devel >= 239 |
3b140c2d | 28 | BuildRequires: udev-devel |
676f3510 JP |
29 | BuildRequires: wayland-devel |
30 | BuildRequires: wayland-protocols >= 1.14 | |
3b140c2d | 31 | BuildRequires: wlroots-devel >= 0.13.0 |
676f3510 JP |
32 | BuildRequires: xorg-lib-libxkbcommon-devel |
33 | Requires: json-c >= 0.13 | |
34 | Requires: libinput >= 1.6.0 | |
35 | Requires: systemd-libs >= 239 | |
3b140c2d | 36 | Requires: wlroots >= 0.13.0 |
5eb87084 | 37 | Suggests: xorg-xserver-Xwayland |
676f3510 JP |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | Sway is a tiling Wayland compositor and a drop-in replacement for the | |
42 | i3 window manager for X11. It works with your existing i3 | |
43 | configuration and supports most of i3's features, plus a few extras. | |
44 | ||
45 | Sway allows you to arrange your application windows logically, rather | |
46 | than spatially. Windows are arranged into a grid by default which | |
47 | maximizes the efficiency of your screen and can be quickly manipulated | |
48 | using only the keyboard. | |
49 | ||
50 | %package backgrounds | |
51 | Summary: Background images for sway compositor | |
52 | Group: Themes | |
53 | Requires: %{name} = %{version}-%{release} | |
7a821692 | 54 | BuildArch: noarch |
676f3510 JP |
55 | |
56 | %description backgrounds | |
57 | Background images for sway compositor. | |
58 | ||
59 | %package -n bash-completion-sway | |
60 | Summary: Bash completion for sway | |
61 | Group: Applications/Shells | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | Requires: bash-completion >= 2.0 | |
7a821692 | 64 | BuildArch: noarch |
676f3510 JP |
65 | |
66 | %description -n bash-completion-sway | |
67 | Bash completion for sway. | |
68 | ||
69 | %package -n fish-completion-sway | |
70 | Summary: fish-completion for sway | |
71 | Group: Applications/Shells | |
72 | Requires: %{name} = %{version}-%{release} | |
73 | Requires: fish | |
7a821692 | 74 | BuildArch: noarch |
676f3510 JP |
75 | |
76 | %description -n fish-completion-sway | |
77 | fish-completion for sway. | |
78 | ||
79 | %package -n zsh-completion-sway | |
80 | Summary: ZSH completion for sway | |
81 | Group: Applications/Shells | |
82 | Requires: %{name} = %{version}-%{release} | |
83 | Requires: zsh | |
7a821692 | 84 | BuildArch: noarch |
676f3510 JP |
85 | |
86 | %description -n zsh-completion-sway | |
87 | ZSH completion for sway. | |
88 | ||
89 | %prep | |
90 | %setup -q | |
b43053b9 | 91 | %patch0 -p1 |
676f3510 JP |
92 | |
93 | %build | |
94 | %meson build | |
95 | %ninja_build -C build | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | %ninja_install -C build | |
100 | ||
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
106 | %doc CONTRIBUTING.md README.md | |
107 | %dir %{_sysconfdir}/sway | |
108 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sway/config | |
109 | %attr(755,root,root) %{_bindir}/sway | |
110 | %attr(755,root,root) %{_bindir}/swaybar | |
111 | %attr(755,root,root) %{_bindir}/swaymsg | |
112 | %attr(755,root,root) %{_bindir}/swaynag | |
113 | %{_datadir}/wayland-sessions/sway.desktop | |
51c4059a JP |
114 | %{_mandir}/man1/sway.1* |
115 | %{_mandir}/man1/swaymsg.1* | |
116 | %{_mandir}/man1/swaynag.1* | |
117 | %{_mandir}/man5/sway-bar.5* | |
118 | %{_mandir}/man5/sway-input.5* | |
119 | %{_mandir}/man5/sway-output.5* | |
120 | %{_mandir}/man5/sway.5* | |
121 | %{_mandir}/man5/swaynag.5* | |
122 | %{_mandir}/man7/sway-ipc.7* | |
123 | %{_mandir}/man7/swaybar-protocol.7* | |
676f3510 JP |
124 | |
125 | %files backgrounds | |
126 | %defattr(644,root,root,755) | |
127 | %dir %{_datadir}/backgrounds/sway | |
128 | %{_datadir}/backgrounds/sway/Sway_Wallpaper_Blue_*.png | |
129 | ||
130 | %files -n bash-completion-sway | |
131 | %defattr(644,root,root,755) | |
132 | %{bash_compdir}/sway | |
133 | %{bash_compdir}/swaybar | |
134 | %{bash_compdir}/swaymsg | |
135 | ||
136 | %files -n fish-completion-sway | |
137 | %defattr(644,root,root,755) | |
138 | %{fish_compdir}/sway.fish | |
139 | %{fish_compdir}/swaymsg.fish | |
140 | %{fish_compdir}/swaynag.fish | |
141 | ||
142 | %files -n zsh-completion-sway | |
143 | %defattr(644,root,root,755) | |
144 | %{zsh_compdir}/_sway | |
145 | %{zsh_compdir}/_swaymsg |