waybar/waybar.spec

125 lines
3.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package waybar
#
# Copyright (c) 2024 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
Accepting request 1169912 from home:smolsheep:upgrades Upstream dropped another one. :p - Enabled tests - Update to 0.10.2 * fix: hover event did not propagate causing issues - Remove waybar-build-for-wireplumber-0.5.patch (Fixed upstream) - Update to 0.10.1 * Add always on option for hyprland/submap * Add dwl/window module * Add empty workspace style for Sway * Add waybar-styles(5) manual page * Also consider floating nodes when checking for flags and active workspace status * battery: Add {cycles}, {health} format replacements * calendar: add shift_reset action empty workspaces * Escape tooltip in custom module * feat: (optional) hover for all modules * (Fix) Alt format on group modules * Fix clock on-scroll value not being used for calendar * fix:dwl tag crash when use wlr-randr enable monitor * Fixed segfault * Fixes for hyprland/workspaces * Fix peristent class on buttons * fix(power-profiles-daemon): correctly set initial visibility * Fix reloading config * fix(sway/workspaces): floating_nodes and focused icon * fix(sway/workspaces): visible class doesn't work * fix(sway/workspaces): Visible class doesn't work on visible and * fix: update clock tooltip without placeholders * fix(wlr/taskbar): crash on taskbar drag and drop event functions * Hyprland workspaces hosting-monitor css class * [hyprland/workspaces] New options to change on click behaviour * Make right-click to circle down ppd * Pipewire backend: use pipewire thread lock * README: tweak repology badge * refactor(backlight): use concrete types for some helper * refactor(privacy): clean up the module * Remove unused variable in Workspaces::updateWindows * sway/workspaces: Fix scroll on unfocused monitor * taskbar: search user directories first for desktop files * Update Wireplumber API to 0.5 * Upower warning level OBS-URL: https://build.opensuse.org/request/show/1169912 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=128
2024-04-23 19:01:13 +02:00
Version: 0.10.2
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: https://github.com/Alexays/Waybar/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: waybar.rpmlintrc
BuildRequires: cmake
%if 0%{?sle_version} >= 150400
Accepting request 1089596 from home:fbonazzi:branches:X11:Wayland - Update to version 0.9.18: * fix: battery time remaining * Sway window newstyles * fix(wireplumber): waybar crashes when default node changes * get_desktop_app_info: fix crash on failed DesktopAppInfo::create * hyprland/submap: run initial render on startup * GCC 13 and C++20 support * Allow any module to implement signal handling * modules/custom: Added percentage rounding * Sanitize hyprland language string only instead of the whole format * Year calendar * Clock. Proper handletoggle propagation * Clock. Formating simplify * Image module CSS fix * Fix kbName initialization * fix(wireplumber): free(): invalid pointer * When no one timezone is provided use system's TZ * Fixing memory leak on update UPower tooltip * Clock. Calendar. Avoid of unnecessary string transformation * Backlight: add brightness control * Set Image path from executable file (Image Module) * Remove repeated "the" and fix some typos * AModule implements module actions call * add river/layout * feat(sway): add workspace css class * Revert "feat(sway): add workspace css class" * AModule enable_click & enable_scroll * Clock tz try catch * group module: configurable orientation * Happy clang * fix: mpd bug paused with no song. * Wireplumber: Free the default node name * refactor: make linter happy. * config:output:Allow multiple exclusions & wildcard * custom module: free memory returned by libc's getline * modules/clock: fix calendar shift in months with 31 days * mpris: add tooltip, length limits, position tag * wlr-taskbar: allow sorting by app_id * [hyprland/language] Add more format replacements. * sway/window: Rewrite entire format output instead of just the title * mpris: fix css class application * Generate wireplumber module man page * Made use of node_id_ * today style not applied to new date 1 day after starting waybar * Cava module * pulseaudio apply states * backlight: support tooltip * mpris: fix non-dynamic tags not being html escaped * Persistent workspaces for [wlr/workspaces] * Add DWL tags module * fix: use getaddrinfo() instead of gethostbyname() * river/tags: refactor to support special purpose tags * Fix hyprland language initialization problem * network: detect if link is p2p and use local addr * cava: shared library is not found * [wlr/workspaces] Separate CSS class for empty persistent workspaces * Add persistent format-icon to wlr/workspaces * mpris: Hide label if empty * mpris: Fix incorrect format replacement names * File descriptor handling bugs * Fix SEGFAULT in battery module * Update to new ipc version - Disable cava module due to missing libcava - Drop 0000-replace-gethostbyname-getaddrinfo.patch (fixed upstream) - Drop 0001-require-date-dependency.patch (changed upstream) - Drop ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch (fixed upstream) OBS-URL: https://build.opensuse.org/request/show/1089596 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=104
2023-05-29 17:38:01 +02:00
BuildRequires: gcc13-c++
%else
BuildRequires: gcc-c++ >= 8
%endif
BuildRequires: gtk-layer-shell-devel
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pkgconfig
Accepting request 978870 from home:stdden:branches:X11:Wayland - Update to 0.9.13: * use moon phases for backlight format-icons #1478 * Use user-defined mode when toggling visibility rather than resetting to default #1479 * sway/language: Load exotic xkb rules too #1480 * Battery module. Gamepads support #1481 * Hide/Unhide temperature module when "format*" is empty. #1485 * feat: added network speed in Bytes #1489 * Upower module #1484 * Add option to display week number on calendar #1315 * Upower fixes #1493 * Battery module support for rk817 #1495 * Waybar. Issue#1068. Double/Triple events #1499 * refactor: change enum ipc_command_type to uint32_t #1516 * Add disabled bluetooth style #1518 * #1315. Add option to display week number on calendar #1492 * Sway/window: Only update icon from main thread #1522 * sway/window: Allow the user to change the size of the app icon #1523 * bar: don't set layer-shell anchor for edges when width is not 'auto' #1524 * Replace sleep_until with sleep_for to prevent clock from getting stuck with system time adjustment #1500 * Show hidden bar #1510 * Backlight: avoid crash on getting brightness fails #1530 * Add a config to set a timeout for the idle_inhibitor module #1454 * network: calculate bandwidth for current interface #1527 * feat: extend bluetooth module #1540 * Add classes to individual keyboard state labels #1551 * Calendar module: localization issue #1552 * Prevent segfault in getCpuFrequency #1563 * Issue#1556. Battery module: a lot of warnings when battery dissapears #1557 * Gamemode Module #1554 * Calendar module: localization issue #1552 #1555 * sway/window: Add heuristics for finding icons #1525 * River Window Module #1562 OBS-URL: https://build.opensuse.org/request/show/978870 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=72
2022-05-24 13:11:33 +02:00
# test dependency
BuildRequires: pkgconfig(catch2) >= 3.0
BuildRequires: sndio-devel >= 1.7.0
# 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)
Accepting request 978870 from home:stdden:branches:X11:Wayland - Update to 0.9.13: * use moon phases for backlight format-icons #1478 * Use user-defined mode when toggling visibility rather than resetting to default #1479 * sway/language: Load exotic xkb rules too #1480 * Battery module. Gamepads support #1481 * Hide/Unhide temperature module when "format*" is empty. #1485 * feat: added network speed in Bytes #1489 * Upower module #1484 * Add option to display week number on calendar #1315 * Upower fixes #1493 * Battery module support for rk817 #1495 * Waybar. Issue#1068. Double/Triple events #1499 * refactor: change enum ipc_command_type to uint32_t #1516 * Add disabled bluetooth style #1518 * #1315. Add option to display week number on calendar #1492 * Sway/window: Only update icon from main thread #1522 * sway/window: Allow the user to change the size of the app icon #1523 * bar: don't set layer-shell anchor for edges when width is not 'auto' #1524 * Replace sleep_until with sleep_for to prevent clock from getting stuck with system time adjustment #1500 * Show hidden bar #1510 * Backlight: avoid crash on getting brightness fails #1530 * Add a config to set a timeout for the idle_inhibitor module #1454 * network: calculate bandwidth for current interface #1527 * feat: extend bluetooth module #1540 * Add classes to individual keyboard state labels #1551 * Calendar module: localization issue #1552 * Prevent segfault in getCpuFrequency #1563 * Issue#1556. Battery module: a lot of warnings when battery dissapears #1557 * Gamemode Module #1554 * Calendar module: localization issue #1552 #1555 * sway/window: Add heuristics for finding icons #1525 * River Window Module #1562 OBS-URL: https://build.opensuse.org/request/show/978870 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=72
2022-05-24 13:11:33 +02:00
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.5)
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
Accepting request 1089596 from home:fbonazzi:branches:X11:Wayland - Update to version 0.9.18: * fix: battery time remaining * Sway window newstyles * fix(wireplumber): waybar crashes when default node changes * get_desktop_app_info: fix crash on failed DesktopAppInfo::create * hyprland/submap: run initial render on startup * GCC 13 and C++20 support * Allow any module to implement signal handling * modules/custom: Added percentage rounding * Sanitize hyprland language string only instead of the whole format * Year calendar * Clock. Proper handletoggle propagation * Clock. Formating simplify * Image module CSS fix * Fix kbName initialization * fix(wireplumber): free(): invalid pointer * When no one timezone is provided use system's TZ * Fixing memory leak on update UPower tooltip * Clock. Calendar. Avoid of unnecessary string transformation * Backlight: add brightness control * Set Image path from executable file (Image Module) * Remove repeated "the" and fix some typos * AModule implements module actions call * add river/layout * feat(sway): add workspace css class * Revert "feat(sway): add workspace css class" * AModule enable_click & enable_scroll * Clock tz try catch * group module: configurable orientation * Happy clang * fix: mpd bug paused with no song. * Wireplumber: Free the default node name * refactor: make linter happy. * config:output:Allow multiple exclusions & wildcard * custom module: free memory returned by libc's getline * modules/clock: fix calendar shift in months with 31 days * mpris: add tooltip, length limits, position tag * wlr-taskbar: allow sorting by app_id * [hyprland/language] Add more format replacements. * sway/window: Rewrite entire format output instead of just the title * mpris: fix css class application * Generate wireplumber module man page * Made use of node_id_ * today style not applied to new date 1 day after starting waybar * Cava module * pulseaudio apply states * backlight: support tooltip * mpris: fix non-dynamic tags not being html escaped * Persistent workspaces for [wlr/workspaces] * Add DWL tags module * fix: use getaddrinfo() instead of gethostbyname() * river/tags: refactor to support special purpose tags * Fix hyprland language initialization problem * network: detect if link is p2p and use local addr * cava: shared library is not found * [wlr/workspaces] Separate CSS class for empty persistent workspaces * Add persistent format-icon to wlr/workspaces * mpris: Hide label if empty * mpris: Fix incorrect format replacement names * File descriptor handling bugs * Fix SEGFAULT in battery module * Update to new ipc version - Disable cava module due to missing libcava - Drop 0000-replace-gethostbyname-getaddrinfo.patch (fixed upstream) - Drop 0001-require-date-dependency.patch (changed upstream) - Drop ca9d237b00b4d01f341b0d7bc938afb10a4f8cad.patch (fixed upstream) OBS-URL: https://build.opensuse.org/request/show/1089596 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=104
2023-05-29 17:38:01 +02:00
export CXX=g++-13
%endif
Accepting request 1169912 from home:smolsheep:upgrades Upstream dropped another one. :p - Enabled tests - Update to 0.10.2 * fix: hover event did not propagate causing issues - Remove waybar-build-for-wireplumber-0.5.patch (Fixed upstream) - Update to 0.10.1 * Add always on option for hyprland/submap * Add dwl/window module * Add empty workspace style for Sway * Add waybar-styles(5) manual page * Also consider floating nodes when checking for flags and active workspace status * battery: Add {cycles}, {health} format replacements * calendar: add shift_reset action empty workspaces * Escape tooltip in custom module * feat: (optional) hover for all modules * (Fix) Alt format on group modules * Fix clock on-scroll value not being used for calendar * fix:dwl tag crash when use wlr-randr enable monitor * Fixed segfault * Fixes for hyprland/workspaces * Fix peristent class on buttons * fix(power-profiles-daemon): correctly set initial visibility * Fix reloading config * fix(sway/workspaces): floating_nodes and focused icon * fix(sway/workspaces): visible class doesn't work * fix(sway/workspaces): Visible class doesn't work on visible and * fix: update clock tooltip without placeholders * fix(wlr/taskbar): crash on taskbar drag and drop event functions * Hyprland workspaces hosting-monitor css class * [hyprland/workspaces] New options to change on click behaviour * Make right-click to circle down ppd * Pipewire backend: use pipewire thread lock * README: tweak repology badge * refactor(backlight): use concrete types for some helper * refactor(privacy): clean up the module * Remove unused variable in Workspaces::updateWindows * sway/workspaces: Fix scroll on unfocused monitor * taskbar: search user directories first for desktop files * Update Wireplumber API to 0.5 * Upower warning level OBS-URL: https://build.opensuse.org/request/show/1169912 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=128
2024-04-23 19:01:13 +02:00
%meson -Dcava=disabled -Dtests=enabled
%meson_build
%install
%meson_install
Accepting request 1169912 from home:smolsheep:upgrades Upstream dropped another one. :p - Enabled tests - Update to 0.10.2 * fix: hover event did not propagate causing issues - Remove waybar-build-for-wireplumber-0.5.patch (Fixed upstream) - Update to 0.10.1 * Add always on option for hyprland/submap * Add dwl/window module * Add empty workspace style for Sway * Add waybar-styles(5) manual page * Also consider floating nodes when checking for flags and active workspace status * battery: Add {cycles}, {health} format replacements * calendar: add shift_reset action empty workspaces * Escape tooltip in custom module * feat: (optional) hover for all modules * (Fix) Alt format on group modules * Fix clock on-scroll value not being used for calendar * fix:dwl tag crash when use wlr-randr enable monitor * Fixed segfault * Fixes for hyprland/workspaces * Fix peristent class on buttons * fix(power-profiles-daemon): correctly set initial visibility * Fix reloading config * fix(sway/workspaces): floating_nodes and focused icon * fix(sway/workspaces): visible class doesn't work * fix(sway/workspaces): Visible class doesn't work on visible and * fix: update clock tooltip without placeholders * fix(wlr/taskbar): crash on taskbar drag and drop event functions * Hyprland workspaces hosting-monitor css class * [hyprland/workspaces] New options to change on click behaviour * Make right-click to circle down ppd * Pipewire backend: use pipewire thread lock * README: tweak repology badge * refactor(backlight): use concrete types for some helper * refactor(privacy): clean up the module * Remove unused variable in Workspaces::updateWindows * sway/workspaces: Fix scroll on unfocused monitor * taskbar: search user directories first for desktop files * Update Wireplumber API to 0.5 * Upower warning level OBS-URL: https://build.opensuse.org/request/show/1169912 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/waybar?expand=0&rev=128
2024-04-23 19:01:13 +02:00
%check
%meson_test
%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.jsonc
%config(noreplace) %{_sysconfdir}/xdg/waybar/style.css
%changelog