1
0

Accepting request 893111 from home:dimstar:Factory

- Add awesome-branding-without-calendar.patch: Disable the calendar
  widget for now (boo#1182240).

As I'm not an awesome user (pun intended), I'm just patching the
  broken widget out.

This at least should allow awesomeWM to start again with the default
config. Better than what happens now.

OBS-URL: https://build.opensuse.org/request/show/893111
OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/awesome-branding-openSUSE?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2021-05-18 12:27:35 +00:00 committed by Git OBS Bridge
parent b6da6e8679
commit ac92184bfc
3 changed files with 34 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 14 11:30:41 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Add awesome-branding-without-calendar.patch: Disable the calendar
widget for now (boo#1182240).
-------------------------------------------------------------------
Sun Jan 8 20:12:29 UTC 2017 - sor.alexei@meowr.ru

View File

@ -1,7 +1,7 @@
#
# spec file for package awesome-branding-openSUSE
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2012 Togan Muftuoglu <toganm@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
@ -13,7 +13,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -23,10 +23,11 @@ Name: awesome-branding-openSUSE
Version: 4.0
Release: 0
Summary: openSUSE Branding for awesome
License: GPL-2.0+
License: GPL-2.0-or-later
Group: System/GUI/Other
Url: https://github.com/madanyang/awesome-branding-opensuse
URL: https://github.com/madanyang/awesome-branding-opensuse
Source: %{name}-%{_version}.tar.xz
Patch0: awesome-branding-without-calendar.patch
BuildRequires: awesome-branding-upstream >= 4.0
Requires: adwaita-icon-theme
Requires: awesome = %{awesome_version}
@ -47,7 +48,7 @@ This package provides the openSUSE specific additions both for
functions and look and feel for awesome window manager.
%prep
%setup -q -n %{name}-%{_version}
%autosetup -n %{name}-%{_version} -p1
%build
# Nothing to build.

View File

@ -0,0 +1,22 @@
Index: awesome-branding-openSUSE-4.0-v0.1/rc.lua
===================================================================
--- awesome-branding-openSUSE-4.0-v0.1.orig/rc.lua
+++ awesome-branding-openSUSE-4.0-v0.1/rc.lua
@@ -38,7 +38,7 @@ local gtk = lgi.require("Gtk", "3.0")
-- Freedesktop integration
local freedesktop = require("freedesktop")
-- calendar functions
-local calendar2 = require("calendar2")
+-- local calendar2 = require("calendar2")
-- Extra widgets
local vicious = require("vicious")
@@ -184,7 +184,7 @@ separator:set_text("|")
-- Create a textclock widget
mytextclock = wibox.widget.textclock()
-calendar2.addCalendarToWidget(mytextclock, "<span color='green'>%s</span>")
+-- calendar2.addCalendarToWidget(mytextclock, "<span color='green'>%s</span>")
mycpuwidget = wibox.widget.textbox()
vicious.register(mycpuwidget, vicious.widgets.cpu, "$1%")