public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ardour6] f45: 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/ardour6
            Branch : f45
            Commit : 398e39a204f97bac34bb30c82ab81b7708e46516
            Author : Nils Philippsen <nils@tiptoe.de>
            Date   : 2026-11-12T21:34:23+01:00
            Stats  : +4/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ardour6/c/398e39a204f97bac34bb30c82ab81b7708e46516?branch=f45

            Log:
            Use major instead of full version in desktop file

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

---
diff --git a/ardour6.spec b/ardour6.spec
index a0ec7d6..24975e6 100644
--- a/ardour6.spec
+++ b/ardour6.spec
@@ -33,6 +33,9 @@
 # This package is named ardour6 to allow parallel installation with older versions of Ardour.
 Name:       ardour6
 Version:    6.9.0
+%global major %{lua:
+    print((string.gsub(macros.version, '^(%d+)%..*$', '%1')))
+}
 
 Release:    %autorelease
 Summary:    Digital Audio Workstation
@@ -251,7 +254,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/ardour6] f45: 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