Adapt to centos-stream and RHEL for el10

Install appropriate metadata for a RHEL or Flatpak runtime
(depending on the distribution), remove the KDE runtime metadata
inherited from Fedora.

Related: RHEL-24326
This commit is contained in:
Owen W. Taylor 2024-06-08 14:25:25 -04:00
parent fc98c48f6f
commit a81a900482
11 changed files with 89 additions and 155 deletions

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>com.redhat.Platform</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>https://www.redhat.com/en/about/red-hat-end-user-license-agreements#rhel</project_license>
<name>Red Hat Platform</name>
<summary>Shared libraries</summary>
<releases>
<release version="10" date="2023-06-29"/>
<release version="9" date="2021-06-29"/>
</releases>
<description>
<p>
The Red Hat Platform is a runtime for Flatpak applications. It contains
common libraries that are shared between desktop applications, including
GTK 3, GStreamer, Mesa, and many others.
</p>
</description>
<url type="homepage">https://redhat.com/</url>
</component>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>com.redhat.Sdk</id>
<metadata_license>CC0</metadata_license>
<project_license>https://www.redhat.com/en/about/red-hat-end-user-license-agreements#rhel</project_license>
<name>Red Hat SDK</name>
<summary>Tools and headers for developing applications</summary>
<releases>
<release version="9" date="2021-06-29"/>
</releases>
<description>
<p>
The Red Hat Sdk is the development runtime that you can use to produce applications using
the Red Hat 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://redhat.com/</url>
</component>

View File

@ -4,17 +4,15 @@
Name: flatpak-runtime-config
Version: 40
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Configuration files that live inside the flatpak runtime
Source1: 50-flatpak.conf
Source2: sitecustomize.py
Source3: defaults.json.in
Source4: org.fedoraproject.Platform.appdata.xml
Source5: org.fedoraproject.Sdk.appdata.xml
Source6: org.fedoraproject.KDE5Platform.appdata.xml
Source7: org.fedoraproject.KDE5Sdk.appdata.xml
Source8: org.fedoraproject.KDE6Platform.appdata.xml
Source9: org.fedoraproject.KDE6Sdk.appdata.xml
Source4: com.redhat.Platform.appdata.xml
Source5: com.redhat.Sdk.appdata.xml
Source6: org.centos.stream.Platform.appdata.xml
Source7: org.centos.stream.Sdk.appdata.xml
Source10: 05-flatpak-fontpath.conf
License: MIT
@ -50,12 +48,14 @@ done
# Install appdata for both the Platform and the Sdk
mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
%if 0%{?rhel}
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE4}
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE5}
%endif
%if 0%{?centos}
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE6}
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE7}
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE8}
install -t $RPM_BUILD_ROOT%{_datadir}/metainfo -p -m 0644 %{SOURCE9}
%endif
# Install flatpak-builder config file
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/flatpak-builder
@ -110,6 +110,9 @@ done
%{_sysconfdir}/ld.so.conf.d/app.conf
%changelog
* Sat Jun 08 2024 Owen Taylor <otaylor@redhat.com> - 40-3
- Adapt to centos-stream and RHEL for el10
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 40-2
- Bump release for June 2024 mass rebuild

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.centos.stream.Platform</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>https://www.centos.org/legal/licensing-policy/</project_license>
<name>Centos Stream Platform</name>
<summary>Shared libraries</summary>
<releases>
<release version="10" date="2024-06-08"/>
</releases>
<description>
<p>
The Centos Stream 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://www.centos.org/centos-stream/</url>
</component>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.centos.stream.Sdk</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>https://www.centos.org/legal/licensing-policy/</project_license>
<name>Centos Stream SDK</name>
<summary>Tools and headers for developing applications</summary>
<releases>
<release version="10" date="2024-06-08"/>
</releases>
<description>
<p>
The Centos Stream Sdk is the development runtime that you can use to produce applications
using the Centos Stream 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://www.centos.org/centos-stream/</url>
</component>

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.fedoraproject.KDE5Platform</id>
<metadata_license>CC0-1.0</metadata_license>
<!-- FIXME -->
<project_license>GPL-2.0-or-later</project_license>
<name>Fedora KDE 5 Platform</name>
<summary>Shared libraries</summary>
<releases>
<release version="40" date="2024-04-03"/>
<release version="39" date="2023-10-06"/>
<release version="38" date="2023-03-18"/>
<release version="37" date="2023-02-07"/>
</releases>
<description>
<p>
The Fedora KDE 5 Platform is a runtime for Flatpak applications.
It contains common libraries that are shared between Qt and KDE 5
applications.
</p>
</description>
<url type="homepage">https://fedoraproject.org/</url>
</component>

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.fedoraproject.KDE5Sdk</id>
<metadata_license>CC0-1.0</metadata_license>
<!-- FIXME -->
<project_license>GPL-2.0-or-later</project_license>
<name>Fedora KDE 5 SDK</name>
<summary>Tools and headers for developing KDE 5 applications</summary>
<releases>
<release version="40" date="2024-04-03"/>
<release version="39" date="2023-10-06"/>
<release version="38" date="2023-03-18"/>
<release version="37" date="2023-02-07"/>
</releases>
<description>
<p>
The Fedora KDE 5 Sdk is the development runtime that you can use to produce applications using
the Fedora KDE 5 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>

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.fedoraproject.KDE6Platform</id>
<metadata_license>CC0-1.0</metadata_license>
<!-- FIXME -->
<project_license>GPL-2.0-or-later</project_license>
<name>Fedora KDE 6 Platform</name>
<summary>Shared libraries</summary>
<releases>
<release version="40" date="2024-04-03"/>
<release version="39" date="2023-10-06"/>
<release version="38" date="2023-03-18"/>
<release version="37" date="2023-02-07"/>
</releases>
<description>
<p>
The Fedora KDE 6 Platform is a runtime for Flatpak applications.
It contains common libraries that are shared between Qt and KDE 6
applications.
</p>
</description>
<url type="homepage">https://fedoraproject.org/</url>
</component>

View File

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.fedoraproject.KDE6Sdk</id>
<metadata_license>CC0-1.0</metadata_license>
<!-- FIXME -->
<project_license>GPL-2.0-or-later</project_license>
<name>Fedora KDE 6 SDK</name>
<summary>Tools and headers for developing KDE applications</summary>
<releases>
<release version="40" date="2024-04-03"/>
<release version="39" date="2023-10-06"/>
<release version="38" date="2023-03-18"/>
<release version="37" date="2023-02-07"/>
</releases>
<description>
<p>
The Fedora KDE 6 Sdk is the development runtime that you can use to produce applications using
the Fedora KDE 6 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>

View File

@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.fedoraproject.Platform</id>
<metadata_license>CC0-1.0</metadata_license>
<!-- FIXME -->
<project_license>GPL-2.0-or-later</project_license>
<name>Fedora Platform</name>
<summary>Shared libraries</summary>
<releases>
<release version="40" date="2024-04-03"/>
<release version="39" date="2023-10-06"/>
<release version="38" date="2023-03-18"/>
<release version="37" date="2022-08-17"/>
<release version="36" date="2022-05-03"/>
<release version="35" date="2021-10-01"/>
<release version="34" date="2021-03-27"/>
<release version="33" date="2020-10-27"/>
</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>

View File

@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.fedoraproject.Sdk</id>
<metadata_license>CC0-1.0</metadata_license>
<!-- FIXME -->
<project_license>GPL-2.0-or-later</project_license>
<name>Fedora SDK</name>
<summary>Tools and headers for developing applications</summary>
<releases>
<release version="40" date="2024-04-03"/>
<release version="39" date="2023-10-06"/>
<release version="38" date="2023-03-18"/>
<release version="37" date="2022-08-17"/>
<release version="36" date="2022-05-03"/>
<release version="35" date="2021-10-01"/>
<release version="34" date="2021-03-27"/>
<release version="33" date="2020-10-27"/>
</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>