From 8359d8c65803ccac0817183e250c4b8800c32d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 28 Oct 2022 23:33:28 +0200 Subject: [PATCH] Adjust gnome-shell requirement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the new version scheme, extensions must only match the major gnome-shell version. While not enforced by the shell, it still makes sense to match minor versions for development releases, but as the package version uses "~" instead of "." in that case, matching on the first field when splitting by dot gives us the desired behavior for both stable and unstable versions: 43~rc → 43~rc 43~rc.1 → 43~rc 43.0 → 43 43.1 → 43 --- gnome-shell-extensions.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnome-shell-extensions.spec b/gnome-shell-extensions.spec index ef97b43..603cab4 100644 --- a/gnome-shell-extensions.spec +++ b/gnome-shell-extensions.spec @@ -1,6 +1,6 @@ %global major_version %%(cut -d "." -f 1 <<<%{version}) # Minimum GNOME Shell version supported -%global min_gs_version %%(cut -d "." -f 1-3 <<<%{version}) +%global min_gs_version %%(cut -d "." -f 1 <<<%{version}) %global pkg_prefix gnome-shell-extension %global tarball_version %%(echo %{version} | tr '~' '.')