Install appdata for both the Platform and the Sdk
This should make both the runtime and the sdk correctly show up in gnome-software. I am not sure what to do with the license field; I've left it as GPL-2.0+ for now, matching what the freedesktop and gnome runtimes are doing, but it's clearly not correct (we include many libraries with many different licenses, not just GPL-2.0+). I've left a FIXME in the appdata files for now.
This commit is contained in:
parent
56e70a0284
commit
006c6bcdfb
3 changed files with 53 additions and 2 deletions
|
|
@ -1,9 +1,11 @@
|
|||
Name: flatpak-runtime-config
|
||||
Version: 30
|
||||
Release: 2%{?dist}
|
||||
Version: 31
|
||||
Release: 1%{?dist}
|
||||
Summary: Configuration files that live inside the flatpak runtime
|
||||
Source1: 50-flatpak.conf
|
||||
Source2: usercustomize.py
|
||||
Source3: org.fedoraproject.Platform.appdata.xml
|
||||
Source4: org.fedoraproject.Sdk.appdata.xml
|
||||
|
||||
License: MIT
|
||||
|
||||
|
|
@ -36,6 +38,11 @@ for d in %{python2_sitelib} %{python3_sitelib} ; do
|
|||
install -t $RPM_BUILD_ROOT/$d -m 0644 %{SOURCE2}
|
||||
done
|
||||
|
||||
# Install appdata for both the Platform and the Sdk
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
|
||||
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE3}
|
||||
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE4}
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/
|
||||
echo "/app/%{_lib}" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/app.conf
|
||||
|
||||
|
|
@ -66,10 +73,14 @@ HOME=/root /usr/bin/fc-cache -s
|
|||
%dir %{_prefix}/cache/fontconfig
|
||||
%{python2_sitelib}
|
||||
%{python3_sitelib}
|
||||
%{_datadir}/metainfo/*.appdata.xml
|
||||
%{_sysconfdir}/fonts/conf.d/*
|
||||
%{_sysconfdir}/ld.so.conf.d/app.conf
|
||||
|
||||
%changelog
|
||||
* Fri Jul 31 2020 Kalev Lember <klember@redhat.com> - 31-1
|
||||
- Install appdata for both the Platform and the Sdk
|
||||
|
||||
* Thu Aug 8 2019 fedora-toolbox <otaylor@redhat.com> - 30-2
|
||||
- Fix comment location in fontconfig config file
|
||||
|
||||
|
|
|
|||
20
org.fedoraproject.Platform.appdata.xml
Normal file
20
org.fedoraproject.Platform.appdata.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="runtime">
|
||||
<id>org.fedoraproject.Platform</id>
|
||||
<metadata_license>CC0</metadata_license>
|
||||
<!-- FIXME -->
|
||||
<project_license>GPL-2.0+</project_license>
|
||||
<name>Fedora Platform</name>
|
||||
<summary>Shared libraries</summary>
|
||||
<releases>
|
||||
<release version="31" date="2019-10-29"/>
|
||||
</releases>
|
||||
<description>
|
||||
<p>
|
||||
The Fedora Platform is a runtime for Flatpak applications. It contains
|
||||
common libraries that are shared between desktop applications, including
|
||||
GTK 3, GStreamer, Qt 5, Mesa, SDL2, and many others.
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">https://fedoraproject.org/</url>
|
||||
</component>
|
||||
20
org.fedoraproject.Sdk.appdata.xml
Normal file
20
org.fedoraproject.Sdk.appdata.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="runtime">
|
||||
<id>org.fedoraproject.Sdk</id>
|
||||
<metadata_license>CC0</metadata_license>
|
||||
<!-- FIXME -->
|
||||
<project_license>GPL-2.0+</project_license>
|
||||
<name>Fedora SDK</name>
|
||||
<summary>Tools and headers for developing applications</summary>
|
||||
<releases>
|
||||
<release version="31" date="2019-10-29"/>
|
||||
</releases>
|
||||
<description>
|
||||
<p>
|
||||
The Fedora Sdk is the development runtime that you can use to produce applications using
|
||||
the Fedora Platform runtime. It contains everything that is in the platform, as well
|
||||
as build and debugging tools and headers for the libraries.
|
||||
</p>
|
||||
</description>
|
||||
<url type="homepage">https://fedoraproject.org/</url>
|
||||
</component>
|
||||
Reference in a new issue