public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gnome-shell-extensions] rawhide: Switch to gnome-srpm-macros macros
@ 2026-06-30  9:00 Milan Crha
  0 siblings, 0 replies; only message in thread
From: Milan Crha @ 2026-06-30  9:00 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/gnome-shell-extensions
            Branch : rawhide
            Commit : 98aa1195a76167a77709b71f14fe1b8922ee49ff
            Author : Milan Crha <mcrha@redhat.com>
            Date   : 2026-06-30T09:26:03+02:00
            Stats  : +6/-12 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gnome-shell-extensions/c/98aa1195a76167a77709b71f14fe1b8922ee49ff?branch=rawhide

            Log:
            Switch to gnome-srpm-macros macros

[skip changelog]

---
diff --git a/gnome-shell-extensions.spec b/gnome-shell-extensions.spec
index 2c97935..8d34d30 100644
--- a/gnome-shell-extensions.spec
+++ b/gnome-shell-extensions.spec
@@ -1,9 +1,4 @@
-# Minimum GNOME Shell version supported
-%global min_gs_version %%(cut -d "." -f 1 <<<%{version})
-
 %global pkg_prefix gnome-shell-extension
-%global tarball_version %%(echo %%{version} | tr '~' '.')
-%global major_version %%(echo %%{tarball_version} | cut -d "." -f 1)
 
 %if 0%{?fedora} && 0%{?fedora} < 43
 %bcond x11 1
@@ -18,14 +13,16 @@ Summary:        Modify and extend GNOME Shell functionality and behavior
 
 License:        GPL-2.0-or-later
 URL:            http://wiki.gnome.org/Projects/GnomeShell/Extensions
-Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
+Source0:        https://download.gnome.org/sources/%{name}/%{gnome_major_version}/%{name}-%{gnome_tarball_version}.tar.xz
+
+%gnome_check_version
 
 BuildRequires:  meson
 BuildRequires:  git-core
 BuildRequires:  gettext >= 0.19.6
 BuildRequires:  glib2%{?_isa}
 BuildRequires:  pkgconfig(systemd)
-Requires:       gnome-shell >= %{min_gs_version}
+Requires:       gnome-shell >= %{gnome_major_version}
 BuildArch:      noarch
 
 %description
@@ -52,7 +49,7 @@ Enabled extensions:
 %package -n %{pkg_prefix}-common
 Summary:        Files common to GNOME Shell Extensions
 License:        GPL-2.0-or-later
-Requires:       gnome-shell >= %{min_gs_version}
+Requires:       gnome-shell >= %{gnome_major_version}
 Obsoletes:      %{pkg_prefix}-horizontal-workspaces < 40.0~alpha.1-3
 
 %description -n %{pkg_prefix}-common
@@ -231,10 +228,7 @@ workspaces.
 
 
 %prep
-# check for human errors
-if [ `echo "%{version}" | grep -cE "\.alpha|\.beta|\.rc"` = "1" ]; then echo "Error: Use tilde in Version field in front of alpha/beta/rc; checked '%{version}'" 1>&2; exit 1; fi
-
-%autosetup -S git -n %{name}-%{tarball_version}
+%autosetup -S git -n %{name}-%{gnome_tarball_version}
 
 
 %build

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-30  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-30  9:00 [rpms/gnome-shell-extensions] rawhide: Switch to gnome-srpm-macros macros Milan Crha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox