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

            A new commit has been pushed.

            Repo   : rpms/loupe
            Branch : rawhide
            Commit : 25bdd51c83e2cfd42d46b4ec31ec73c5f769219c
            Author : Milan Crha <mcrha@redhat.com>
            Date   : 2026-06-29T18:43:58+02:00
            Stats  : +9/-9 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/loupe/c/25bdd51c83e2cfd42d46b4ec31ec73c5f769219c?branch=rawhide

            Log:
            Switch to gnome-srpm-macros macros

[skip changelog]

---
diff --git a/loupe.spec b/loupe.spec
index bdfdb45..eef542b 100644
--- a/loupe.spec
+++ b/loupe.spec
@@ -2,8 +2,6 @@
 
 %bcond bundled_rust_deps %{defined rhel}
 
-%global tarball_version %%(echo %{version} | tr '~' '.')
-
 Name:           loupe
 Version:        50.0
 Release:        %autorelease
@@ -42,14 +40,16 @@ License:        %{shrink:
 }
 # LICENSE.dependencies contains a full license breakdown
 URL:            https://gitlab.gnome.org/GNOME/loupe
-Source0:        https://download.gnome.org/sources/loupe/50/loupe-%{tarball_version}.tar.xz
+Source0:        https://download.gnome.org/sources/loupe/%{gnome_major_version}/loupe-%{gnome_tarball_version}.tar.xz
 # To create the vendor tarball:
-#   tar Jxvf loupe-%%{tarball_version}.tar.xz ; \
-#   pushd loupe-%%{tarball_version} ; \
+#   tar Jxvf loupe-%%{gnome_tarball_version}.tar.xz ; \
+#   pushd loupe-%%{gnome_tarball_version} ; \
 #   cargo vendor --versioned-dirs ; \
-#   tar Jcvf ../loupe-%%{tarball_version}-vendor.tar.xz vendor/ ; \
+#   tar Jcvf ../loupe-%%{gnome_tarball_version}-vendor.tar.xz vendor/ ; \
 #   popd
-Source1:        loupe-%{tarball_version}-vendor.tar.xz
+Source1:        loupe-%{gnome_tarball_version}-vendor.tar.xz
+
+%gnome_check_version
 
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 ExcludeArch:    %{ix86}
@@ -94,10 +94,10 @@ Features:
 
 %prep
 %if %{with bundled_rust_deps}
-%autosetup -n loupe-%{tarball_version} -p1 -a1
+%autosetup -n loupe-%{gnome_tarball_version} -p1 -a1
 %cargo_prep -v vendor
 %else
-%autosetup -n loupe-%{tarball_version} -p1
+%autosetup -n loupe-%{gnome_tarball_version} -p1
 %cargo_prep
 sed -i -e '/Cargo.lock/d' meson.build
 %endif

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

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

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