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

            A new commit has been pushed.

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

            Log:
            Use major instead of full version in desktop file

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

---
diff --git a/ardour8.spec b/ardour8.spec
index 2285cf7..80401c9 100644
--- a/ardour8.spec
+++ b/ardour8.spec
@@ -30,6 +30,9 @@
 # This package is named ardour8 to allow parallel installation with older versions of Ardour.
 Name:       ardour8
 Version:    8.12.0
+%global major %{lua:
+    print((string.gsub(macros.version, '^(%d+)%..*$', '%1')))
+}
 
 Release:    %autorelease
 Summary:    Digital Audio Workstation
@@ -212,7 +215,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:37 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:37 [rpms/ardour8] f44: 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