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

            A new commit has been pushed.

            Repo   : rpms/libshumate
            Branch : rawhide
            Commit : e2f028f3d89d66fc1d8d60289b5cf59aa7c760ea
            Author : Milan Crha <mcrha@redhat.com>
            Date   : 2026-06-29T10:16:09+02:00
            Stats  : +4/-8 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/libshumate/c/e2f028f3d89d66fc1d8d60289b5cf59aa7c760ea?branch=rawhide

            Log:
            Switch to gnome-srpm-macros macros

[skip changelog]

---
diff --git a/libshumate.spec b/libshumate.spec
index 7239c15..097b34d 100644
--- a/libshumate.spec
+++ b/libshumate.spec
@@ -1,6 +1,3 @@
-%global tarball_version %%(echo %%{version} | tr '~' '.')
-%global major_minor_version %%(echo %%{tarball_version} | cut -d "." -f 1-2)
-
 Name:           libshumate
 Version:        1.6.2
 Release:        %autorelease
@@ -10,7 +7,9 @@ Summary:        GTK widget to display maps
 # LGPL-2.0-or-later while the rest of the code is LGPL-2.1-or-later
 License:        LGPL-2.1-or-later AND LGPL-2.0-or-later
 URL:            https://gitlab.gnome.org/GNOME/libshumate
-Source0:        https://download.gnome.org/sources/%{name}/%{major_minor_version}/%{name}-%{tarball_version}.tar.xz
+Source0:        https://download.gnome.org/sources/%{name}/%{gnome_major_minor_version}/%{name}-%{gnome_tarball_version}.tar.xz
+
+%gnome_check_version
 
 BuildRequires:  gcc
 BuildRequires:  meson
@@ -65,10 +64,7 @@ This package contains developer documentation for %{name}.
 
 
 %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 -p1 -n %{name}-%{tarball_version}
+%autosetup -p1 -n %{name}-%{gnome_tarball_version}
 
 
 %build

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

only message in thread, other threads:[~2026-06-29  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29  8:20 [rpms/libshumate] 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