]>
Commit | Line | Data |
---|---|---|
306abb7a | 1 | Summary: Highly customizable Wayland bar for Sway and Wlroots based compositors |
dff31cc3 | 2 | Summary(pl.UTF-8): Bardzo konfigurowalny pasek Waylanda do kompozytorów opartych na Sway i Wlroots |
306abb7a | 3 | Name: waybar |
a38ce89d | 4 | Version: 0.10.2 |
1256c2a1 | 5 | Release: 1 |
306abb7a JP |
6 | License: MIT |
7 | Group: Applications | |
8 | Source0: https://github.com/Alexays/Waybar/archive/%{version}/%{name}-%{version}.tar.gz | |
a38ce89d | 9 | # Source0-md5: 0fec60ccdc1d427d5f2364d019b69403 |
306abb7a | 10 | URL: https://github.com/Alexays/Waybar/ |
b15e0675 | 11 | BuildRequires: cmake |
306abb7a JP |
12 | BuildRequires: date-devel |
13 | BuildRequires: glib2-devel | |
14 | BuildRequires: gtk+3-devel | |
af87161f | 15 | BuildRequires: gtk-layer-shell-devel >= 0.6.0 |
306abb7a | 16 | BuildRequires: gtkmm3-devel >= 3.22.0 |
49de9341 | 17 | BuildRequires: jsoncpp-devel >= 1.9.2 |
306abb7a | 18 | BuildRequires: libdbusmenu-gtk3-devel |
0a54f880 | 19 | BuildRequires: libevdev-devel |
49de9341 JP |
20 | BuildRequires: libfmt-devel >= 8.1.1 |
21 | BuildRequires: libinput-devel | |
306abb7a JP |
22 | BuildRequires: libmpdclient-devel |
23 | BuildRequires: libnl-devel >= 3.0 | |
24 | BuildRequires: libsigc++-devel >= 2.0 | |
25 | BuildRequires: libstdc++-devel >= 6:8 | |
0a54f880 | 26 | BuildRequires: libxkbregistry-devel |
af87161f | 27 | BuildRequires: meson >= 0.59.0 |
306abb7a | 28 | BuildRequires: ninja |
af87161f | 29 | BuildRequires: pipewire-devel >= 0.3 |
1256c2a1 | 30 | BuildRequires: pipewire-wireplumber-devel >= 0.5 |
306abb7a | 31 | BuildRequires: pkgconfig |
83eb1f69 | 32 | BuildRequires: playerctl-devel |
306abb7a | 33 | BuildRequires: pulseaudio-devel |
747cfb6d | 34 | BuildRequires: rpmbuild(macros) >= 2.011 |
306abb7a | 35 | BuildRequires: scdoc >= 1.9.2 |
49de9341 | 36 | BuildRequires: spdlog-devel >= 1:1.10.0 |
306abb7a JP |
37 | BuildRequires: systemd-devel |
38 | BuildRequires: udev-devel | |
9fbe5acd | 39 | BuildRequires: upower-devel |
306abb7a JP |
40 | BuildRequires: wayland-devel |
41 | BuildRequires: wayland-protocols | |
747cfb6d | 42 | Requires(post,preun): systemd-units >= 1:250.1 |
af87161f | 43 | Requires: gtk-layer-shell >= 0.6.0 |
306abb7a | 44 | Requires: gtkmm3 >= 3.22.0 |
49de9341 JP |
45 | Requires: jsoncpp >= 1.9.2 |
46 | Requires: libfmt >= 8.1.1 | |
47 | Requires: spdlog >= 1:1.10.0 | |
747cfb6d | 48 | Requires: systemd-units >= 1:250.1 |
306abb7a JP |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
52 | Highly customizable Wayland bar for Sway and Wlroots based | |
53 | compositors. | |
54 | ||
04aa0050 | 55 | %description -l pl.UTF-8 |
dff31cc3 | 56 | Bardzo konfigurowalny pasek Waylanda do kompozytorów opartych na Sway |
04aa0050 JB |
57 | i Wlroots. |
58 | ||
306abb7a JP |
59 | %prep |
60 | %setup -q -n Waybar-%{version} | |
61 | ||
62 | %build | |
63 | %meson build | |
04aa0050 | 64 | |
306abb7a JP |
65 | %ninja_build -C build |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | %ninja_install -C build | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
747cfb6d JR |
74 | %post |
75 | %systemd_user_post waybar.service | |
76 | ||
77 | %preun | |
78 | %systemd_user_preun waybar.service | |
79 | ||
b8cfd086 | 80 | %triggerpostun -- waybar < 0.10.0 |
af87161f JP |
81 | if [ -f /etc/xdg/waybar/config.rpmsave ]; then |
82 | %{__mv} -f /etc/xdg/waybar/config.jsonc{,.rpmnew} | |
83 | %{__mv} -f /etc/xdg/waybar/config{.rpmsave,.jsonc} | |
84 | fi | |
85 | ||
306abb7a JP |
86 | %files |
87 | %defattr(644,root,root,755) | |
88 | %doc README.md | |
89 | %dir /etc/xdg/waybar | |
af87161f | 90 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/waybar/config.jsonc |
306abb7a JP |
91 | %config(noreplace) %verify(not md5 mtime size) /etc/xdg/waybar/style.css |
92 | %attr(755,root,root) %{_bindir}/waybar | |
93 | %{systemduserunitdir}/waybar.service | |
94 | %{_mandir}/man5/waybar*.5* |