public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ardour7] rawhide: Use major instead of full version in desktop file
@ 2026-11-12 20:38 Nils Philippsen
  0 siblings, 0 replies; only message in thread
From: Nils Philippsen @ 2026-11-12 20:38 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ardour7
            Branch : rawhide
            Commit : d0bf3ad4e76599ec0cf0eb898dd996a219875b21
            Author : Nils Philippsen <nils@tiptoe.de>
            Date   : 2026-11-12T21:29:12+01:00
            Stats  : +4/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ardour7/c/d0bf3ad4e76599ec0cf0eb898dd996a219875b21?branch=rawhide

            Log:
            Use major instead of full version in desktop file

Signed-off-by: Nils Philippsen <nils@tiptoe.de>

---
diff --git a/ardour7.spec b/ardour7.spec
index f637eb2..a8cb9ce 100644
--- a/ardour7.spec
+++ b/ardour7.spec
@@ -30,6 +30,9 @@
 # This package is named ardour7 to allow parallel installation with older versions of Ardour.
 Name:       ardour7
 Version:    7.5.0
+%global major %{lua:
+    print((string.gsub(macros.version, '^(%d+)%..*$', '%1')))
+}
 
 Release:    %autorelease
 Summary:    Digital Audio Workstation
@@ -231,7 +234,7 @@ install -p -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
 # tweak and install desktop file
 mkdir -p %{buildroot}%{_datadir}/applications/
 desktop-file-install --dir %{buildroot}%{_datadir}/applications \
-    --set-key=Name --set-value="Ardour %{version}" \
+    --set-key=Name --set-value="Ardour %{major}" \
     --set-generic-name="Digital Audio Workstation" \
     --set-key=X-GNOME-FullName \
     --set-value="Ardour v%{version} (Digital Audio Workstation)" \

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

only message in thread, other threads:[~2026-11-12 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 20:38 [rpms/ardour7] rawhide: Use major instead of full version in desktop file Nils Philippsen

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