]>
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 | |
9 | URL: https://swaywm.org/ | |
10 | BuildRequires: OpenGLESv2-devel | |
11 | BuildRequires: bash-completion | |
12 | BuildRequires: cairo-devel | |
13 | BuildRequires: gdk-pixbuf2-devel | |
14 | BuildRequires: json-c-devel >= 0.13 | |
15 | BuildRequires: libevdev-devel | |
16 | BuildRequires: libinput-devel >= 1.6.0 | |
17 | BuildRequires: libxcb-devel | |
18 | BuildRequires: meson >= 0.53.0 | |
19 | BuildRequires: ninja | |
20 | BuildRequires: pango-devel | |
21 | BuildRequires: pcre-devel | |
22 | BuildRequires: pixman-devel | |
23 | BuildRequires: rpmbuild(macros) >= 1.752 | |
24 | BuildRequires: systemd-devel >= 239 | |
25 | BuildRequires: wayland-devel | |
26 | BuildRequires: wayland-protocols >= 1.14 | |
27 | BuildRequires: wlroots-devel >= 0.12.0 | |
28 | BuildRequires: xorg-lib-libxkbcommon-devel | |
29 | Requires: json-c >= 0.13 | |
30 | Requires: libinput >= 1.6.0 | |
31 | Requires: systemd-libs >= 239 | |
32 | Requires: wlroots >= 0.12.0 | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Sway is a tiling Wayland compositor and a drop-in replacement for the | |
37 | i3 window manager for X11. It works with your existing i3 | |
38 | configuration and supports most of i3's features, plus a few extras. | |
39 | ||
40 | Sway allows you to arrange your application windows logically, rather | |
41 | than spatially. Windows are arranged into a grid by default which | |
42 | maximizes the efficiency of your screen and can be quickly manipulated | |
43 | using only the keyboard. | |
44 | ||
45 | %package backgrounds | |
46 | Summary: Background images for sway compositor | |
47 | Group: Themes | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | %{?noarchpackage} | |
50 | ||
51 | %description backgrounds | |
52 | Background images for sway compositor. | |
53 | ||
54 | %package -n bash-completion-sway | |
55 | Summary: Bash completion for sway | |
56 | Group: Applications/Shells | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | Requires: bash-completion >= 2.0 | |
59 | %{?noarchpackage} | |
60 | ||
61 | %description -n bash-completion-sway | |
62 | Bash completion for sway. | |
63 | ||
64 | %package -n fish-completion-sway | |
65 | Summary: fish-completion for sway | |
66 | Group: Applications/Shells | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | Requires: fish | |
69 | %{?noarchpackage} | |
70 | ||
71 | %description -n fish-completion-sway | |
72 | fish-completion for sway. | |
73 | ||
74 | %package -n zsh-completion-sway | |
75 | Summary: ZSH completion for sway | |
76 | Group: Applications/Shells | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | Requires: zsh | |
79 | %{?noarchpackage} | |
80 | ||
81 | %description -n zsh-completion-sway | |
82 | ZSH completion for sway. | |
83 | ||
84 | %prep | |
85 | %setup -q | |
86 | ||
87 | %build | |
88 | %meson build | |
89 | %ninja_build -C build | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | %ninja_install -C build | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %doc CONTRIBUTING.md README.md | |
101 | %dir %{_sysconfdir}/sway | |
102 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sway/config | |
103 | %attr(755,root,root) %{_bindir}/sway | |
104 | %attr(755,root,root) %{_bindir}/swaybar | |
105 | %attr(755,root,root) %{_bindir}/swaymsg | |
106 | %attr(755,root,root) %{_bindir}/swaynag | |
107 | %{_datadir}/wayland-sessions/sway.desktop | |
108 | ||
109 | %files backgrounds | |
110 | %defattr(644,root,root,755) | |
111 | %dir %{_datadir}/backgrounds/sway | |
112 | %{_datadir}/backgrounds/sway/Sway_Wallpaper_Blue_*.png | |
113 | ||
114 | %files -n bash-completion-sway | |
115 | %defattr(644,root,root,755) | |
116 | %{bash_compdir}/sway | |
117 | %{bash_compdir}/swaybar | |
118 | %{bash_compdir}/swaymsg | |
119 | ||
120 | %files -n fish-completion-sway | |
121 | %defattr(644,root,root,755) | |
122 | %{fish_compdir}/sway.fish | |
123 | %{fish_compdir}/swaymsg.fish | |
124 | %{fish_compdir}/swaynag.fish | |
125 | ||
126 | %files -n zsh-completion-sway | |
127 | %defattr(644,root,root,755) | |
128 | %{zsh_compdir}/_sway | |
129 | %{zsh_compdir}/_swaymsg |