waybar/waybar.spec
Soc Virnyl Estela 95136d258d Accepting request 1096859 from home:smolsheep:upgrades
- Update to version 0.9.19:
  * Fix broken link in README
  * fix(dwl-module): fix typo to avoid null pointer
  * river/window: Add tooltip.
  * Fixing 'incomplete type error' during building
  * [hyprland/window] Add css class for empty window name
  * Small performance fixies
  * Tray module causes: Invalid id passed to g_bus_unwatch_name()
  * deprecated: implicit capture of 'this' via '[=]'
  * [sway/workspaces] fix: change icons priority
  * Lift reverse-scrolling option into AModule
  * sway/window: fix appid style not cleared
  * Issue#2204
  * Upower native-path filter
  * More robust Hyprland backend
  * hyprland/window: Add CSS customization similar to sway/window
  * support multiple items in hwmon-path of temperature module
  * [wrl/taskbar] fix: use empty class for empty taskbar
  * Add output port (display) of workspace to template function of
    sway/workspace
  * Fixed some build warnings
  * feat: hyprland/workspaces
  * Refresh Gentoo docker
  * Wake all sleeping threads when leaving suspend
  * Fixes for hyprland/workspaces
  * Don't apply reverse scrolling to mice wheels
  * wireplumber: Support for scrolling
  * Fix random segfault on GTK icon functions
  * [hyperland/workspaces] fix: segfault on create/destroy
  * Catch2 bump
  * Fix rare segfault when destroying workspace
  * Stop MPRIS module from updating every ~20ms
  * wlr/taskbar: add support for rewrite rules
  * Add a new start_hidden flag
  * Image tooltip
  * improve nix dev shell; override the nixpkgs waybar
  * sway/workspaces: setting to not warp to window when scrolling
  * mpris: dynamic tag ordering and separator customization
  * Add output parameter format to manpage
  * Partially revert 3af1853 to fix use-after-free

OBS-URL: https://build.opensuse.org/request/show/1096859
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=110
2023-07-04 23:02:28 +00:00

123 lines
3.7 KiB
RPMSpec

#
# spec file for package waybar
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: waybar
Version: 0.9.19
Release: 0
Summary: Customizable Wayland bar for Sway and Wlroots based compositors
License: MIT
Group: System/GUI/Other
URL: https://github.com/Alexays/Waybar
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
%if 0%{?sle_version} >= 150400
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++ >= 8
%endif
BuildRequires: gtk-layer-shell-devel
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pkgconfig
# test dependency
BuildRequires: pkgconfig(catch2) >= 3.0
BuildRequires: sndio-devel >= 1.7.0
# clock module
BuildRequires: hhdate-devel
# optional: mpris module
BuildRequires: pkgconfig(playerctl)
# optional: man pages
BuildRequires: scdoc
# optional: tray module
BuildRequires: pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires: pkgconfig(fmt)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(gtkmm-3.0)
BuildRequires: pkgconfig(jsoncpp)
BuildRequires: pkgconfig(libinput)
BuildRequires: pkgconfig(upower-glib)
# optional: mpd module
BuildRequires: pkgconfig(libmpdclient)
# optional: network
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libnl-genl-3.0)
# optional: audio
BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(sigc++-2.0)
BuildRequires: pkgconfig(spdlog)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(wireplumber-0.4)
BuildRequires: pkgconfig(xkbregistry)
# requires branding
# NOTE: unversioned branding is required to avoid issues like bsc#1205950
Requires: %{name}-branding
# optional: sway integration
Recommends: sway
# Default configurations require Fontawesome 6
Recommends: fontawesome-fonts
%description
A customizable Wayland bar for Sway and Wlroots based compositors.
It comes with modules for pipewire, alsa, backlight, and bluetooth.
Other modules can be found in the manpages of Waybar.
%package branding-upstream
Summary: Upstream branding of %{name}
Group: System/GUI/Other
Requires: %{name} = %{version}
Supplements: (%{name} and branding-upstream)
Conflicts: %{name}-branding
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.
%prep
%autosetup -p1 -n waybar-%{version}
%build
%if 0%{?sle_version} >= 150400
export CXX=g++-13
%endif
%meson -Dcava=disabled
%meson_build
%install
%meson_install
%files
%{_bindir}/waybar
%{_mandir}/man?/%{name}*
%{_prefix}/lib/systemd/user/waybar.service
%files branding-upstream
%dir %{_sysconfdir}/xdg/waybar
%config(noreplace) %{_sysconfdir}/xdg/waybar/config
%config(noreplace) %{_sysconfdir}/xdg/waybar/style.css
%changelog