public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nils Philippsen <nils@tiptoe.de>
To: git-commits@fedoraproject.org
Subject: [rpms/ardour7] rawhide: Use major instead of full version in desktop file
Date: Thu, 12 Nov 2026 20:38:06 GMT	[thread overview]
Message-ID: <179451588672.1.3228754696785732820.rpms-ardour7-d0bf3ad4e765@fedoraproject.org> (raw)

            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)" \

                 reply	other threads:[~2026-11-12 20:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179451588672.1.3228754696785732820.rpms-ardour7-d0bf3ad4e765@fedoraproject.org \
    --to=nils@tiptoe.de \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox