public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ardour7] f45: Don’t ship appdata 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 : f45
            Commit : 288cd5b6295333ebdfbb9a94c868254aa40ec1b5
            Author : Nils Philippsen <nils@tiptoe.de>
            Date   : 2026-11-12T21:27:07+01:00
            Stats  : +13/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ardour7/c/288cd5b6295333ebdfbb9a94c868254aa40ec1b5?branch=f45

            Log:
            Don’t ship appdata file

It shouldn’t be shipped in legacy major versions.

Related: rhbz#2484927

[skip changelog]

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

---
diff --git a/ardour7.spec b/ardour7.spec
index bcf5f00..f637eb2 100644
--- a/ardour7.spec
+++ b/ardour7.spec
@@ -19,6 +19,9 @@
 %bcond_with apply_64bit_patches
 %endif
 
+# Disable on legacy major versions
+%bcond appdata 0
+
 # Don't generate provides for internal shared objects and plugins
 %global internal_libs_re (alsa_audiobackend|ardour.*|audiographer|canvas|dummy_audiobackend|evoral|gtkmm2ext|jack_audiobackend|midipp|pan[12]in2out|panbalance|panvbap|pbd|ptformat|pulseaudio_backend.so|qmdsp|temporal|timecode|waveview|widgets)
 %global __provides_exclude_from ^%{_libdir}/(%{name}|lv2)/.*$
@@ -77,7 +80,9 @@ BuildRequires:  gettext
 BuildRequires:  graphviz
 BuildRequires:  itstool >= 2.0.0
 BuildRequires:  kernel-headers
+%if %{with appdata}
 BuildRequires:  libappstream-glib
+%endif
 BuildRequires:  pkgconfig(alsa)
 BuildRequires:  pkgconfig(aubio) >= 0.3.2
 BuildRequires:  pkgconfig(cairo) >= 1.12.0
@@ -235,6 +240,10 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications \
     --add-category=X-AudioEditing \
     build/gtk2_ardour/%{name}.desktop
 
+%if %{without appdata}
+rm -f %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+%endif
+
 # Delete zero length file (probably needed to keep empty dir in GIT)
 rm %{buildroot}%{_datadir}/%{name}/templates/.stub
 
@@ -281,8 +290,10 @@ sh "$WAFTPATH" --targets=libardour-tests && LV2_PATH= ./run-tests.sh
 popd
 %endif
 
+%if %{with appdata}
 # check appdata file
 appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
+%endif
 
 rm -f %{buildroot}%{_bindir}/run-tests
 
@@ -300,7 +311,9 @@ rm -f %{buildroot}%{_bindir}/run-tests
 %{_datadir}/applications/%{name}.desktop
 # intentionally unversioned
 %{_datadir}/mime/packages/ardour.xml
+%if %{with appdata}
 %{_datadir}/appdata/%{name}.appdata.xml
+%endif
 %{_mandir}/man1/%{name}.1*
 
 %changelog

^ 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] f45: Don’t ship appdata 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