public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Crha <mcrha@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mutter] rawhide: Switch to gnome-srpm-macros macros
Date: Tue, 30 Jun 2026 07:02:02 GMT	[thread overview]
Message-ID: <178280292222.1.16717858553571726513.rpms-mutter-84f0f51ca96b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mutter
            Branch : rawhide
            Commit : 84f0f51ca96bbba2f2ba59bb919a25dd370b820f
            Author : Milan Crha <mcrha@redhat.com>
            Date   : 2026-06-30T07:39:30+02:00
            Stats  : +4/-8 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mutter/c/84f0f51ca96bbba2f2ba59bb919a25dd370b820f?branch=rawhide

            Log:
            Switch to gnome-srpm-macros macros

[skip changelog]

---
diff --git a/mutter.spec b/mutter.spec
index 7c0ca63..66c660b 100644
--- a/mutter.spec
+++ b/mutter.spec
@@ -14,9 +14,6 @@
 %global wayland_protocols_version 1.45
 %global wayland_server_version 1.24
 
-%global tarball_version %%(echo %%{version} | tr '~' '.')
-%global major_version %%(echo %%{tarball_version} | cut -d "." -f 1)
-
 Name:          mutter
 Version:       50.2
 Release:       %autorelease
@@ -25,7 +22,9 @@ Summary:       Window and compositing manager based on Clutter
 # Automatically converted from old format: GPLv2+ - review is highly recommended.
 License:       GPL-2.0-or-later
 URL:           http://www.gnome.org
-Source0:       http://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
+Source0:       http://download.gnome.org/sources/%{name}/%{gnome_major_version}/%{name}-%{gnome_tarball_version}.tar.xz
+
+%gnome_check_version
 
 # wayland: Only schedule a single cursor location update
 # https://gitlab.gnome.org/GNOME/mutter/-/commit/f1570318ec3e9a38615eb91708bb71628ab8bcfd
@@ -161,10 +160,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
 Viewer for nested mutter instances.
 
 %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
 %meson -Degl_device=true

                 reply	other threads:[~2026-06-30  7:02 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=178280292222.1.16717858553571726513.rpms-mutter-84f0f51ca96b@fedoraproject.org \
    --to=mcrha@redhat.com \
    --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