]> git.pld-linux.org Git - packages/waybar.git/blob - waybar.spec
up to 0.10.3
[packages/waybar.git] / waybar.spec
1 Summary:        Highly customizable Wayland bar for Sway and Wlroots based compositors
2 Summary(pl.UTF-8):      Bardzo konfigurowalny pasek Waylanda do kompozytor√≥w opartych na Sway i Wlroots
3 Name:           waybar
4 Version:        0.10.3
5 Release:        1
6 License:        MIT
7 Group:          Applications
8 Source0:        https://github.com/Alexays/Waybar/archive/%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  1c675235e5951f1909d8430b09595606
10 URL:            https://github.com/Alexays/Waybar/
11 BuildRequires:  cmake
12 BuildRequires:  date-devel
13 BuildRequires:  glib2-devel
14 BuildRequires:  gtk+3-devel
15 BuildRequires:  gtk-layer-shell-devel >= 0.6.0
16 BuildRequires:  gtkmm3-devel >= 3.22.0
17 BuildRequires:  jsoncpp-devel >= 1.9.2
18 BuildRequires:  libdbusmenu-gtk3-devel
19 BuildRequires:  libevdev-devel
20 BuildRequires:  libfmt-devel >= 8.1.1
21 BuildRequires:  libinput-devel
22 BuildRequires:  libmpdclient-devel
23 BuildRequires:  libnl-devel >= 3.0
24 BuildRequires:  libsigc++-devel >= 2.0
25 BuildRequires:  libstdc++-devel >= 6:8
26 BuildRequires:  libxkbregistry-devel
27 BuildRequires:  meson >= 0.59.0
28 BuildRequires:  ninja
29 BuildRequires:  pipewire-devel >= 0.3
30 BuildRequires:  pipewire-wireplumber-devel >= 0.5
31 BuildRequires:  pkgconfig
32 BuildRequires:  playerctl-devel
33 BuildRequires:  pulseaudio-devel
34 BuildRequires:  rpmbuild(macros) >= 2.011
35 BuildRequires:  scdoc >= 1.9.2
36 BuildRequires:  spdlog-devel >= 1:1.10.0
37 BuildRequires:  systemd-devel
38 BuildRequires:  udev-devel
39 BuildRequires:  upower-devel
40 BuildRequires:  wayland-devel
41 BuildRequires:  wayland-protocols
42 Requires(post,preun):   systemd-units >= 1:250.1
43 Requires:       gtk-layer-shell >= 0.6.0
44 Requires:       gtkmm3 >= 3.22.0
45 Requires:       jsoncpp >= 1.9.2
46 Requires:       libfmt >= 8.1.1
47 Requires:       spdlog >= 1:1.10.0
48 Requires:       systemd-units >= 1:250.1
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
55 %description -l pl.UTF-8
56 Bardzo konfigurowalny pasek Waylanda do kompozytor√≥w opartych na Sway
57 i Wlroots.
58
59 %prep
60 %setup -q -n Waybar-%{version}
61
62 %build
63 %meson build
64
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
74 %post
75 %systemd_user_post waybar.service
76
77 %preun
78 %systemd_user_preun waybar.service
79
80 %triggerpostun -- waybar < 0.10.0
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
86 %files
87 %defattr(644,root,root,755)
88 %doc README.md
89 %dir /etc/xdg/waybar
90 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/waybar/config.jsonc
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*
This page took 0.037829 seconds and 4 git commands to generate.