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

            A new commit has been pushed.

            Repo   : rpms/ghex
            Branch : rawhide
            Commit : 055a114de786849c10a02182e389b3ca4f8b8ebc
            Author : Milan Crha <mcrha@redhat.com>
            Date   : 2026-07-01T09:38:21+02:00
            Stats  : +4/-8 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ghex/c/055a114de786849c10a02182e389b3ca4f8b8ebc?branch=rawhide

            Log:
            Switch to gnome-srpm-macros macros

[skip changelog]

---
diff --git a/ghex.spec b/ghex.spec
index fab3e7f..29cfc00 100644
--- a/ghex.spec
+++ b/ghex.spec
@@ -1,6 +1,3 @@
-%global tarball_version %%(echo %%{version} | tr '~' '.')
-%global major_version %%(echo %%{tarball_version} | cut -d "." -f 1)
-
 %global __provides_exclude_from ^%{_libdir}/gtkhex-4.0/.*\\.so$
 
 Name:           ghex
@@ -11,7 +8,9 @@ Summary:        Binary editor for GNOME
 # Source code is under GPLv2+, help is under GFDL and icon is under CC-BY-SA.
 License:        GPL-2.0-or-later AND GFDL-1.1-no-invariants-or-later AND CC-BY-SA-4.0
 URL:            https://gitlab.gnome.org/GNOME/ghex
-Source0:        https://download.gnome.org/sources/ghex/%{major_version}/ghex-%{tarball_version}.tar.xz
+Source0:        https://download.gnome.org/sources/%{name}/%{gnome_major_version}/%{name}-%{gnome_tarball_version}.tar.xz
+
+%gnome_check_version
 
 BuildRequires:  libappstream-glib
 BuildRequires:  desktop-file-utils
@@ -49,10 +48,7 @@ developing applications that use %{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-07-01  7:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01  7:39 [rpms/ghex] 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