public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Carl George <carlwgeorge@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/gnome-shell-extension-gamemode] f44: Update to version 20.0
Date: Tue, 02 Jun 2026 21:23:48 GMT [thread overview]
Message-ID: <178043542823.1.15288107243079450543.rpms-gnome-shell-extension-gamemode-dca96fa83aa3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gnome-shell-extension-gamemode
Branch : f44
Commit : dca96fa83aa3f4227e64d74bb45a1f798ece7068
Author : Carl George <carlwgeorge@fedoraproject.org>
Date : 2026-06-02T14:01:14-05:00
Stats : +125/-8 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/gnome-shell-extension-gamemode/c/dca96fa83aa3f4227e64d74bb45a1f798ece7068?branch=f44
Log:
Update to version 20.0
... rhbz#2484058
- Adds GNOME 50 compatibility rhbz#2464662
- Include license file
- Include locale files
- Recommend gnome-extensions-app
---
diff --git a/0001-Install-locale-files-with-meson.patch b/0001-Install-locale-files-with-meson.patch
new file mode 100644
index 0000000..5440122
--- /dev/null
+++ b/0001-Install-locale-files-with-meson.patch
@@ -0,0 +1,48 @@
+From dbb684bef859ae357988d82ca55feda7c4f2ed84 Mon Sep 17 00:00:00 2001
+From: Carl George <carlwgeorge@gmail.com>
+Date: Fri, 29 May 2026 14:50:20 -0500
+Subject: [PATCH] Install locale files with meson
+
+This ensures a complete installation when installing via meson (commonly
+used by distribution packages).
+---
+ meson.build | 3 +++
+ po/LINGUAS | 4 ++++
+ po/meson.build | 3 +++
+ 3 files changed, 10 insertions(+)
+ create mode 100644 po/LINGUAS
+ create mode 100644 po/meson.build
+
+diff --git a/meson.build b/meson.build
+index b025f8e..7c12d72 100644
+--- a/meson.build
++++ b/meson.build
+@@ -35,6 +35,9 @@ install_data(
+ install_dir: extensiondir
+ )
+
++# Install locale files
++subdir('po')
++
+ # Install schema
+ install_data(
+ schema_file,
+diff --git a/po/LINGUAS b/po/LINGUAS
+new file mode 100644
+index 0000000..0e62d0f
+--- /dev/null
++++ b/po/LINGUAS
+@@ -0,0 +1,4 @@
++de
++fr
++it
++ru
+diff --git a/po/meson.build b/po/meson.build
+new file mode 100644
+index 0000000..15e1d10
+--- /dev/null
++++ b/po/meson.build
+@@ -0,0 +1,3 @@
++i18n = import('i18n')
++
++i18n.gettext(uuid, preset : 'glib')
diff --git a/0002-Compile-schemas-with-gnome.post_install.patch b/0002-Compile-schemas-with-gnome.post_install.patch
new file mode 100644
index 0000000..7f9b16a
--- /dev/null
+++ b/0002-Compile-schemas-with-gnome.post_install.patch
@@ -0,0 +1,58 @@
+From 6f1cb0cd622d9fc7cfe1fef6f5da3612455b32b0 Mon Sep 17 00:00:00 2001
+From: Carl George <carlwgeorge@gmail.com>
+Date: Mon, 1 Jun 2026 22:14:06 -0500
+Subject: [PATCH] Compile schemas with gnome.post_install
+
+This is the standard mechanism for compiling schemas, and has the added
+benefit of being skipped automatically when DESTDIR is set (i.e. during
+distribution package builds). It was introduced in meson 0.57.0, so
+that becomes the minimum required version to build.
+---
+ meson.build | 7 ++-----
+ scripts/compile-schema.sh | 13 -------------
+ 2 files changed, 2 insertions(+), 18 deletions(-)
+ delete mode 100644 scripts/compile-schema.sh
+
+diff --git a/meson.build b/meson.build
+index 7c12d72..06bafd2 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1,6 +1,6 @@
+ project('gamemode-extension',
+ version: '1.0',
+- meson_version: '>= 0.46.0',
++ meson_version: '>= 0.57.0',
+ license: 'LGPL-2.1'
+ )
+
+@@ -45,10 +45,7 @@ install_data(
+ )
+
+ # Compile schema
+-meson.add_install_script(
+- 'scripts/compile-schema.sh',
+- join_paths(prefix, schemadir)
+-)
++gnome.post_install(glib_compile_schemas: true)
+
+ # Build completion message
+ message('Project version: @0@'.format(meson.project_version()))
+diff --git a/scripts/compile-schema.sh b/scripts/compile-schema.sh
+deleted file mode 100644
+index 85663a9..0000000
+--- a/scripts/compile-schema.sh
++++ /dev/null
+@@ -1,13 +0,0 @@
+-#!/bin/sh
+-
+-SCHEMADIR="${1:-/usr/share/glib-2.0/schemas}"
+-
+-if [ -z "$DESTDIR" ]; then
+- TARGETDIR="${SCHEMADIR}"
+-else
+- TARGETDIR="${DESTDIR}/${SCHEMADIR}"
+-fi
+-
+-glib-compile-schemas "${TARGETDIR}"
+-ls -l "${TARGETDIR}/gschemas.compiled"
+-echo "Compiled schema."
diff --git a/gnome-shell-extension-gamemode.spec b/gnome-shell-extension-gamemode.spec
index 5f0b4fa..cff26e0 100644
--- a/gnome-shell-extension-gamemode.spec
+++ b/gnome-shell-extension-gamemode.spec
@@ -1,5 +1,8 @@
+%define extension gamemodeshellextension
+%define uuid %{extension}@trsnaqe.com
+
Name: gnome-shell-extension-gamemode
-Version: 11.0
+Version: 20.0
Release: %autorelease
Summary: GameMode integration for GNOME Shell
License: LGPL-2.1-only
@@ -7,11 +10,17 @@ URL: https://github.com/trsnaqe/gamemode-shell-extension
Source0: %{url}/archive/V%{version}/gamemode-extension-V%{version}.tar.gz
Source1: lgpl-2.1.md
+# https://github.com/Trsnaqe/gamemode-shell-extension/pull/22
+Patch: 0001-Install-locale-files-with-meson.patch
+# https://github.com/Trsnaqe/gamemode-shell-extension/pull/23
+Patch: 0002-Compile-schemas-with-gnome.post_install.patch
+
BuildRequires: meson
BuildRequires: gettext
BuildRequires: glib2
Requires: gnome-shell >= 45
Requires: gamemode
+Recommends: gnome-extensions-app
BuildArch: noarch
%description
@@ -23,19 +32,21 @@ when the global GameMode status changes.
%autosetup -p1 -n gamemode-shell-extension-%{version}%{?prerelease:-%{prerelease}}
cp %{SOURCE1} .
-%build
+%conf
%meson
+
+%build
%meson_build
%install
%meson_install
-rm %{buildroot}/%{_datadir}/glib-2.0/schemas/gschemas.compiled
+%find_lang %{uuid}
-%files
+%files -f %{uuid}.lang
%doc README.md
-%license
-%{_datadir}/gnome-shell/extensions/gamemodeshellextension@trsnaqe.com/
-%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.gamemodeshellextension.gschema.xml
+%license lgpl-2.1.md
+%{_datadir}/gnome-shell/extensions/%{uuid}/
+%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{extension}.gschema.xml
%changelog
diff --git a/sources b/sources
index 6c57e2f..b66d8a2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (gamemode-extension-V11.0.tar.gz) = 2f90bbe7285377bdebb228a89b1b666e5dfec8300f22f59cf38725dc818f2bd986eb9ab51b3c4f647c53c1f4062b11b13e3a307b4ca87ffa447a118b710ff5a2
+SHA512 (gamemode-extension-V20.0.tar.gz) = e312b1c29ee8819adee57aa8722a119bf7b6f8ae50514955e4634b1a341b0a1252bfe6f117a69497061973f7610e453dbd0cc86777a02917082fe50c9c6c560b
reply other threads:[~2026-06-02 21:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178043542823.1.15288107243079450543.rpms-gnome-shell-extension-gamemode-dca96fa83aa3@fedoraproject.org \
--to=carlwgeorge@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox