Provide appdata-xml metada file

carla.appdata.xml serves for displaying Carla in GNOME Software.
Without the file, GNOME Software does not display Carla.
This commit is contained in:
Jan Beran 2021-05-26 12:12:45 +02:00
parent fd6357b8c9
commit 1269fcc573
2 changed files with 51 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Name: Carla
Version: 2.3.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Audio plugin host
# The entire source code is GPLv2+ except
@ -51,6 +51,7 @@ Epoch: 1
License: GPLv2+ and BSD and Boost and ISC and MIT and zlib
URL: https://github.com/falkTX/Carla
Source0: https://github.com/falkTX/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: carla.appdata.xml
Patch0: Carla-gcc11-include.patch
#ExcludeArch: ppc64le
@ -73,6 +74,8 @@ BuildRequires: pkgconfig(liblo)
BuildRequires: pkgconfig(zlib)
BuildRequires: desktop-file-utils
BuildRequires: make
BuildRequires: /usr/bin/appstream-util
BuildRequires: /usr/bin/desktop-file-validate
Requires: python3-qt5
Requires: python3-pyliblo
Requires: hicolor-icon-theme
@ -171,8 +174,13 @@ chmod a+x %{buildroot}%{_datadir}/%{pname}/{carla,carla-control,carla-jack-multi
# fix perm due rpmlint W: unstripped-binary-or-object /usr/lib64/carla/libcarla_interposer-jack-x11.so
find %{buildroot}%{_libdir} -name '*.so' -exec chmod +x '{}' ';'
# Install appdata file
mkdir -p %{buildroot}%{_datadir}/metainfo
install -p -m 0644 %SOURCE1 %{buildroot}%{_datadir}/metainfo
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{pname}.appdata.xml
%files
%doc README.md
@ -199,6 +207,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/%{pname}*.png
%{_datadir}/icons/hicolor/*/apps/%{pname}*.svg
%{_datadir}/mime/packages/%{pname}.xml
%{_datadir}/metainfo/%{pname}.appdata.xml
%files vst
%{_libdir}/vst/
@ -215,6 +224,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
%{_libdir}/pkgconfig/%{pname}-host-plugin.pc
%changelog
* Wed May 26 2021 Jan Beran <jaberan@redhat.com> - 1:2.3.0-2
- Add carla.appdata.xml file
* Thu Apr 15 2021 Martin Gansser <martinkg@fedoraproject.org> - 1:2.3.0-1
- Update to 2.3.0

38
carla.appdata.xml Normal file
View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>carla.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPLv2+ and BSD and Boost and ISC and MIT and zlib</project_license>
<name>Carla</name>
<summary>Audio plugin host</summary>
<description>
<p>
Carla is a fully-featured audio plugin host, with support for many audio drivers
and plugin formats. It's open source and licensed under the GNU General Public
License, version 2 or later. </p>-- test every suffix of the sf whether its prefix is not a LHS of the rule,
<p>Features: </p>
<ul>
<li>LADSPA, DSSI, LV2 and VST plugin formats</li>
<li>SF2/3 and SFZ sound banks</li>
<li>Internal audio and midi file player</li>
<li>Automation of plugin parameters via MIDI CC</li>
<li>Remote control over OSC</li>
<li>Rack and Patchbay processing modes, plus Single and Multi-Client if using JACK</li>
<li> Native audio drivers (ALSA, DirectSound, CoreAudio, etc) and JACK</li>
</ul>
<p>In experimental phase / work in progress: </p>
<ul>
<li>Export any Carla loadable plugin or sound bank as an LV2 plugin</li>
<li>Plugin bridge support (such as running 32bit plugins on a 64bit Carla, or Windows plugins on Linux)</li>
<li>Run JACK applications as audio plugins</li>
<li>Transport controls, sync with JACK Transport or Ableton Link</li>
</ul>
<p>
Carla is also available as an LV2 plugin for MacOS and Linux, and VST plugin for
Linux.
</p>
</description>
<url type="homepage">https://kx.studio/Applications:Carla</url>
</component>