2019-01-28 11:51:06 +01:00
|
|
|
#
|
|
|
|
# spec file for package waybar
|
|
|
|
#
|
2022-01-10 17:17:16 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-01-28 11:51:06 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-09-03 13:17:01 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-01-28 11:51:06 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: waybar
|
2022-11-30 01:50:12 +01:00
|
|
|
Version: 0.9.16
|
2019-01-28 11:51:06 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Customizable Wayland bar for Sway and Wlroots based compositors
|
|
|
|
License: MIT
|
|
|
|
Group: System/GUI/Other
|
|
|
|
URL: https://github.com/Alexays/Waybar
|
2022-11-30 01:50:12 +01:00
|
|
|
Source: Waybar-%{version}.tar.xz
|
2019-12-28 13:26:43 +01:00
|
|
|
BuildRequires: cmake
|
2022-02-17 09:34:11 +01:00
|
|
|
%if 0%{?sle_version} >= 150400
|
|
|
|
BuildRequires: gcc11-c++
|
|
|
|
%else
|
2021-12-09 16:51:16 +01:00
|
|
|
BuildRequires: gcc-c++ >= 8
|
2022-02-17 09:34:11 +01:00
|
|
|
%endif
|
2019-12-28 14:27:09 +01:00
|
|
|
BuildRequires: gtk-layer-shell-devel
|
2019-01-28 11:51:06 +01:00
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: ninja
|
2019-09-24 09:28:59 +02:00
|
|
|
BuildRequires: pkgconfig
|
2022-05-24 13:11:33 +02:00
|
|
|
# test dependency
|
2022-11-02 09:42:38 +01:00
|
|
|
BuildRequires: pkgconfig(catch2) >= 3.0
|
2022-10-31 09:15:10 +01:00
|
|
|
BuildRequires: sndio-devel >= 1.7.0
|
2019-12-28 14:27:09 +01:00
|
|
|
# optional: man pages
|
|
|
|
BuildRequires: scdoc
|
|
|
|
# optional: tray module
|
|
|
|
BuildRequires: pkgconfig(dbusmenu-gtk3-0.4)
|
2019-09-24 09:28:59 +02:00
|
|
|
BuildRequires: pkgconfig(fmt)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtkmm-3.0)
|
|
|
|
BuildRequires: pkgconfig(jsoncpp)
|
|
|
|
BuildRequires: pkgconfig(libinput)
|
2022-05-24 13:11:33 +02:00
|
|
|
BuildRequires: pkgconfig(upower-glib)
|
2019-12-28 14:27:09 +01:00
|
|
|
# optional: mpd module
|
|
|
|
BuildRequires: pkgconfig(libmpdclient)
|
|
|
|
# optional: network
|
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-genl-3.0)
|
|
|
|
# optional: audio
|
2021-08-16 16:34:48 +02:00
|
|
|
BuildRequires: pkgconfig(libevdev)
|
2022-10-31 09:15:10 +01:00
|
|
|
BuildRequires: pkgconfig(jack)
|
2019-12-28 14:27:09 +01:00
|
|
|
BuildRequires: pkgconfig(libpulse)
|
2019-12-22 17:55:24 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2019-09-24 09:28:59 +02:00
|
|
|
BuildRequires: pkgconfig(sigc++-2.0)
|
|
|
|
BuildRequires: pkgconfig(spdlog)
|
2019-12-28 14:27:09 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2019-09-24 09:28:59 +02:00
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
|
|
BuildRequires: pkgconfig(wayland-cursor)
|
|
|
|
BuildRequires: pkgconfig(wayland-protocols)
|
2022-11-30 01:50:12 +01:00
|
|
|
BuildRequires: pkgconfig(wireplumber-0.4)
|
2021-08-16 16:38:35 +02:00
|
|
|
BuildRequires: pkgconfig(xkbregistry)
|
2020-06-08 11:05:09 +02:00
|
|
|
# requires branding
|
2022-11-30 01:50:12 +01:00
|
|
|
Requires: %{name}-branding = %{version}
|
2019-01-28 11:51:06 +01:00
|
|
|
# optional: sway integration
|
|
|
|
Recommends: sway
|
|
|
|
|
|
|
|
%description
|
|
|
|
Customizable Wayland bar for Sway and Wlroots based compositors.
|
|
|
|
|
2020-06-08 11:05:09 +02:00
|
|
|
%package branding-upstream
|
|
|
|
Summary: Upstream branding of %{name}
|
|
|
|
Group: System/GUI/Other
|
|
|
|
Requires: %{name} = %{version}
|
2022-11-30 01:50:12 +01:00
|
|
|
Supplements: (%{name} and branding-upstream)
|
|
|
|
Conflicts: %{name}-branding
|
2020-06-08 11:05:09 +02:00
|
|
|
Provides: %{name}-branding = %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
#BRAND: /etc/xdg/waybar/config contains upstream config
|
|
|
|
#BRAND: /etc/xdg/waybar/style.css contains upstream style
|
|
|
|
|
|
|
|
%description branding-upstream
|
|
|
|
This package provides the upstream look and feel for sway.
|
|
|
|
|
2019-01-28 11:51:06 +01:00
|
|
|
%prep
|
2021-03-15 12:53:01 +01:00
|
|
|
%autosetup -p1 -n Waybar-%{version}
|
2019-01-28 11:51:06 +01:00
|
|
|
|
|
|
|
%build
|
2022-02-17 09:34:11 +01:00
|
|
|
%if 0%{?sle_version} >= 150400
|
|
|
|
export CXX=g++-11
|
|
|
|
%endif
|
2022-10-31 09:15:10 +01:00
|
|
|
%meson
|
2019-01-28 11:51:06 +01:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/waybar
|
2019-09-03 13:17:01 +02:00
|
|
|
%{_mandir}/man?/%{name}*
|
2019-12-28 14:27:09 +01:00
|
|
|
%{_prefix}/lib/systemd/user/waybar.service
|
2019-01-28 11:51:06 +01:00
|
|
|
|
2020-06-08 11:05:09 +02:00
|
|
|
%files branding-upstream
|
|
|
|
%dir %{_sysconfdir}/xdg/waybar
|
|
|
|
%config(noreplace) %{_sysconfdir}/xdg/waybar/config
|
|
|
|
%config(noreplace) %{_sysconfdir}/xdg/waybar/style.css
|
|
|
|
|
2019-01-28 11:51:06 +01:00
|
|
|
%changelog
|