]>
Commit | Line | Data |
---|---|---|
306abb7a JP |
1 | Summary: Highly customizable Wayland bar for Sway and Wlroots based compositors |
2 | Name: waybar | |
a314a1d6 JP |
3 | Version: 0.9.9 |
4 | Release: 1 | |
306abb7a JP |
5 | License: MIT |
6 | Group: Applications | |
7 | Source0: https://github.com/Alexays/Waybar/archive/%{version}/%{name}-%{version}.tar.gz | |
a314a1d6 | 8 | # Source0-md5: e6b30dcc96ed6e93f452898dde214abd |
306abb7a JP |
9 | URL: https://github.com/Alexays/Waybar/ |
10 | BuildRequires: date-devel | |
11 | BuildRequires: glib2-devel | |
12 | BuildRequires: gtk+3-devel | |
13 | BuildRequires: gtk-layer-shell-devel | |
14 | BuildRequires: gtkmm3-devel >= 3.22.0 | |
15 | BuildRequires: jsoncpp-devel | |
16 | BuildRequires: libdbusmenu-gtk3-devel | |
0a54f880 | 17 | BuildRequires: libevdev-devel |
a314a1d6 | 18 | BuildRequires: libfmt-devel >= 7.0.0 |
306abb7a JP |
19 | BuildRequires: libmpdclient-devel |
20 | BuildRequires: libnl-devel >= 3.0 | |
21 | BuildRequires: libsigc++-devel >= 2.0 | |
22 | BuildRequires: libstdc++-devel >= 6:8 | |
0a54f880 | 23 | BuildRequires: libxkbregistry-devel |
306abb7a JP |
24 | BuildRequires: meson >= 0.49.0 |
25 | BuildRequires: ninja | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: pulseaudio-devel | |
747cfb6d | 28 | BuildRequires: rpmbuild(macros) >= 2.011 |
306abb7a | 29 | BuildRequires: scdoc >= 1.9.2 |
0a54f880 | 30 | BuildRequires: spdlog-devel >= 1:1.8.5 |
306abb7a JP |
31 | BuildRequires: systemd-devel |
32 | BuildRequires: udev-devel | |
33 | BuildRequires: wayland-devel | |
34 | BuildRequires: wayland-protocols | |
747cfb6d | 35 | Requires(post,preun): systemd-units >= 1:250.1 |
306abb7a | 36 | Requires: gtkmm3 >= 3.22.0 |
a314a1d6 | 37 | Requires: libfmt >= 7.0.0 |
0a54f880 | 38 | Requires: spdlog >= 1:1.8.5 |
747cfb6d | 39 | Requires: systemd-units >= 1:250.1 |
306abb7a JP |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Highly customizable Wayland bar for Sway and Wlroots based | |
44 | compositors. | |
45 | ||
46 | %prep | |
47 | %setup -q -n Waybar-%{version} | |
48 | ||
49 | %build | |
50 | %meson build | |
51 | %ninja_build -C build | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %ninja_install -C build | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
747cfb6d JR |
60 | %post |
61 | %systemd_user_post waybar.service | |
62 | ||
63 | %preun | |
64 | %systemd_user_preun waybar.service | |
65 | ||
306abb7a JP |
66 | %files |
67 | %defattr(644,root,root,755) | |
68 | %doc README.md | |
69 | %dir /etc/xdg/waybar | |
70 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/waybar/config | |
71 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/waybar/style.css | |
72 | %attr(755,root,root) %{_bindir}/waybar | |
73 | %{systemduserunitdir}/waybar.service | |
74 | %{_mandir}/man5/waybar*.5* |