From b6f59dcae346815900bee04304236ae1c6bf085d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 13:45:38 +0300 Subject: [PATCH] import redhat-flatpak-data-0.1-3.el10 --- .gitignore | 0 .redhat-flatpak-data.metadata | 0 SOURCES/LICENSE | 19 ++++++++ SOURCES/firefox.preinstall | 4 ++ SOURCES/rhel.flatpakrepo | 8 ++++ SOURCES/thunderbird.preinstall | 4 ++ SPECS/redhat-flatpak-data.spec | 80 ++++++++++++++++++++++++++++++++++ 7 files changed, 115 insertions(+) create mode 100644 .gitignore create mode 100644 .redhat-flatpak-data.metadata create mode 100644 SOURCES/LICENSE create mode 100644 SOURCES/firefox.preinstall create mode 100644 SOURCES/rhel.flatpakrepo create mode 100644 SOURCES/thunderbird.preinstall create mode 100644 SPECS/redhat-flatpak-data.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/.redhat-flatpak-data.metadata b/.redhat-flatpak-data.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..4d9599d --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2024 Red Hat, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/SOURCES/firefox.preinstall b/SOURCES/firefox.preinstall new file mode 100644 index 0000000..77d7bc7 --- /dev/null +++ b/SOURCES/firefox.preinstall @@ -0,0 +1,4 @@ +[Flatpak Preinstall] +Name=org.mozilla.firefox +Branch=stable +CollectionId=org.fedoraproject.Stable diff --git a/SOURCES/rhel.flatpakrepo b/SOURCES/rhel.flatpakrepo new file mode 100644 index 0000000..7bafb64 --- /dev/null +++ b/SOURCES/rhel.flatpakrepo @@ -0,0 +1,8 @@ +[Flatpak Repo] +Title=Red Hat Enterprise Linux +Url=oci+https://flatpaks.redhat.io/rhel/ +AuthenticatorName=org.flatpak.Authenticator.Oci +Homepage=https://catalog.redhat.com/software/containers/explore +Comment=Red Hat Enterprise Linux Flatpak applications and runtimes +Description=This repository contains Flatpaks of applications built for Red Hat Enterprise Linux, along with the Red Hat Flatpak Runtime and SDK. +Icon=https://www.redhat.com/misc/favicon.ico diff --git a/SOURCES/thunderbird.preinstall b/SOURCES/thunderbird.preinstall new file mode 100644 index 0000000..33b0afe --- /dev/null +++ b/SOURCES/thunderbird.preinstall @@ -0,0 +1,4 @@ +[Flatpak Preinstall] +Name=org.mozilla.Thunderbird +Branch=stable +CollectionId=org.fedoraproject.Stable diff --git a/SPECS/redhat-flatpak-data.spec b/SPECS/redhat-flatpak-data.spec new file mode 100644 index 0000000..1268a50 --- /dev/null +++ b/SPECS/redhat-flatpak-data.spec @@ -0,0 +1,80 @@ +Name: redhat-flatpak-data +Version: 0.1 +Release: 3%{dist} +Summary: Metadata files for Flatpaks on Red Hat Enterprise Linux + +License: MIT +Source0: LICENSE +Source1: rhel.flatpakrepo +Source2: firefox.preinstall +Source3: thunderbird.preinstall + +BuildArch: noarch + +%description +Metadata files for Flatpaks on Red Hat Enterprise Linux + + +%package -n redhat-flatpak-repo +Summary: Red Hat Enterprise Linux Flatpak repository file +Requires: flatpak + +%description -n redhat-flatpak-repo +Creates a Flatpak repository for Red Hat Enterprise Linux + + +%package -n redhat-flatpak-preinstall-firefox +Summary: Preinstall the Red Hat Enterprise Linux Firefox Flatpak +Requires: redhat-flatpak-repo +Provides: flatpak-preinstall(app/org.mozilla.firefox//stable) + +%description -n redhat-flatpak-preinstall-firefox +Adds a file to /etc/flatpaks/preinstall.d to preinstall the +Red Hat Enterprise Linux Firefox Flatpak + + +%package -n redhat-flatpak-preinstall-thunderbird +Summary: Preinstall the Red Hat Enterprise Linux Thunderbird Flatpak +Requires: redhat-flatpak-repo +Provides: flatpak-preinstall(app/org.mozilla.Thunderbird//stable) + +%description -n redhat-flatpak-preinstall-thunderbird +Adds a file to /etc/flatpaks/preinstall.d to preinstall the +Red Hat Enterprise Linux Thunderbird Flatpak + + +%prep +%setup -c -T %{name} +cp %{SOURCE0} . + +%build + +%install +install -m0644 -D -t %{buildroot}%{_sysconfdir}/flatpak/remotes.d %{SOURCE1} +install -m0644 -D -t %{buildroot}%{_sysconfdir}/flatpak/preinstall.d %{SOURCE2} +install -m0644 -D -t %{buildroot}%{_sysconfdir}/flatpak/preinstall.d %{SOURCE3} + + +%files -n redhat-flatpak-repo +%license LICENSE +%{_sysconfdir}/flatpak/remotes.d/*.flatpakrepo + + +%files -n redhat-flatpak-preinstall-firefox +%{_sysconfdir}/flatpak/preinstall.d/firefox.preinstall + + +%files -n redhat-flatpak-preinstall-thunderbird +%{_sysconfdir}/flatpak/preinstall.d/thunderbird.preinstall + + +%changelog +* Thu Nov 28 2024 Tomas Popela - 0.1-3 +- Initial RHEL packaging based on Fedora package, added also subpackage + for Thunderbird + +* Thu Nov 7 2024 Owen W. Taylor - 0.1-2 +- Fedora has org.mozilla.firefox, not org.mozilla.Firefox + +* Wed Oct 30 2024 Owen W. Taylor - 0.1-1 +- Initial version