commit
49330d205a
@ -0,0 +1 @@
|
||||
cfabdaf8631c3c4c306a074ab566669f352d780e SOURCES/gdm-settings-4.4.tar.gz
|
@ -0,0 +1 @@
|
||||
SOURCES/gdm-settings-4.4.tar.gz
|
@ -0,0 +1,64 @@
|
||||
From 889c37dcfc8011c0171b6d9a26615f3e06686f58 Mon Sep 17 00:00:00 2001
|
||||
From: tigro <tigro@msvsphere-os.ru>
|
||||
Date: Mon, 9 Sep 2024 14:44:19 +0300
|
||||
Subject: [PATCH] Backport to old Python 3.9
|
||||
|
||||
---
|
||||
gdms/__init__.py | 15 ++++++++-------
|
||||
gdms/cmd.py | 2 ++
|
||||
gdms/utils.py | 2 ++
|
||||
3 files changed, 12 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/gdms/__init__.py b/gdms/__init__.py
|
||||
index bc11b86..e3c7b55 100644
|
||||
--- a/gdms/__init__.py
|
||||
+++ b/gdms/__init__.py
|
||||
@@ -56,14 +56,15 @@ class _Style(str, Enum):
|
||||
|
||||
|
||||
class _StdErrFormatter(logging.Formatter):
|
||||
- def format (self, record):
|
||||
- match record.levelname:
|
||||
- case 'CRITICAL': level_color = _Style.BRIGHT_RED
|
||||
- case 'ERROR': level_color = _Style.RED
|
||||
- case 'WARNING': level_color = _Style.YELLOW
|
||||
- case 'INFO': level_color = _Style.GREEN
|
||||
- case default: level_color = _Style.BLUE
|
||||
+ LEVEL_COLOR_MAP = {
|
||||
+ 'CRITICAL': _Style.BRIGHT_RED,
|
||||
+ 'ERROR': _Style.RED,
|
||||
+ 'WARNING': _Style.YELLOW,
|
||||
+ 'INFO': _Style.GREEN
|
||||
+ }
|
||||
|
||||
+ def format (self, record):
|
||||
+ level_color = self.LEVEL_COLOR_MAP.get(record.levelname, _Style.BLUE)
|
||||
return (_Style.BOLD + level_color + record.levelname + _Style.NORMAL + ':'
|
||||
+ _Style.MANENTA + record.name + _Style.NORMAL + ':'
|
||||
+ ' ' + record.getMessage())
|
||||
diff --git a/gdms/cmd.py b/gdms/cmd.py
|
||||
index ddeda01..fe5d8a9 100644
|
||||
--- a/gdms/cmd.py
|
||||
+++ b/gdms/cmd.py
|
||||
@@ -1,3 +1,5 @@
|
||||
+from __future__ import annotations
|
||||
+
|
||||
import os
|
||||
import subprocess
|
||||
from collections.abc import Sequence
|
||||
diff --git a/gdms/utils.py b/gdms/utils.py
|
||||
index 2b82bde..664bc81 100644
|
||||
--- a/gdms/utils.py
|
||||
+++ b/gdms/utils.py
|
||||
@@ -4,6 +4,8 @@
|
||||
'self-contained' means that this module does not depend on anything from
|
||||
the gdm_settings package'''
|
||||
|
||||
+from __future__ import annotations
|
||||
+
|
||||
import os
|
||||
import pathlib
|
||||
import subprocess
|
||||
--
|
||||
2.46.0
|
||||
|
@ -0,0 +1,81 @@
|
||||
Summary: A settings app for Gnome Login Manager (GDM)
|
||||
Name: gdm-settings
|
||||
Version: 4.4
|
||||
Release: 1%{?dist}
|
||||
|
||||
License: AGPLv3+
|
||||
Url: https://github.com/realmazharhussain/%{name}
|
||||
Source0: https://github.com/realmazharhussain/%{name}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: 0001-Backport-to-old-Python-3.9.patch
|
||||
|
||||
BuildRequires: appstream
|
||||
BuildRequires: appdata-tools
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig(blueprint-compiler)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
BuildRequires: pkgconfig(gtk4)
|
||||
BuildRequires: pkgconfig(libadwaita-1)
|
||||
BuildRequires: pkgconfig(pygobject-3.0)
|
||||
BuildRequires: pkgconfig(python)
|
||||
BuildRequires: python3-gobject-devel
|
||||
BuildRequires: python3.11-devel
|
||||
|
||||
Requires: gdm
|
||||
Requires: polkit
|
||||
Requires: gettext
|
||||
Requires: /usr/bin/gresource
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
A tool for customizing GNOME Display Manager.
|
||||
|
||||
With User Login Manager you can:
|
||||
* Import user/session settings (currently not working on Flatpak)
|
||||
* Change Background/Wallpaper (Image/Color)
|
||||
* Apply themes
|
||||
* Font Settings
|
||||
* Top Bar Settings
|
||||
* Display settings
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
%meson --buildtype=release
|
||||
%meson_build
|
||||
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
# remove use of /usr/bin/env
|
||||
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' \
|
||||
%{buildroot}%{_bindir}/gdm-settings
|
||||
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README.md LICENSE
|
||||
%{_bindir}/gdm-settings
|
||||
%{_datadir}/gdm-settings
|
||||
%{python3_sitelib}/gdms/
|
||||
%{_datadir}/metainfo/io.github.realmazharhussain.GdmSettings.metainfo.xml
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/glib-2.0/schemas/*
|
||||
%{_datadir}/icons/hicolor/*/*/*.svg
|
||||
%{_datadir}/dbus-1/services/*.service
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 09 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 4.4-1
|
||||
- Rebuilt for MSVSphere 9.4
|
||||
|
||||
* Mon Sep 09 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 4.4-1
|
||||
- Initial build for MSVSphere 9.4
|
||||
|
Loading…
Reference in new issue