|
|
@ -2,7 +2,7 @@
|
|
|
|
%global ostree_version 2020.8
|
|
|
|
%global ostree_version 2020.8
|
|
|
|
|
|
|
|
|
|
|
|
Name: flatpak
|
|
|
|
Name: flatpak
|
|
|
|
Version: 1.10.8
|
|
|
|
Version: 1.12.9
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Application deployment framework for desktop apps
|
|
|
|
Summary: Application deployment framework for desktop apps
|
|
|
|
|
|
|
|
|
|
|
@ -10,6 +10,14 @@ License: LGPLv2+
|
|
|
|
URL: http://flatpak.org/
|
|
|
|
URL: http://flatpak.org/
|
|
|
|
Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
# Add Fedora flatpak repositories
|
|
|
|
|
|
|
|
Source1: flatpak-add-fedora-repos.service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# https://issues.redhat.com/browse/RHEL-4220
|
|
|
|
|
|
|
|
Patch0: flatpak-Revert-selinux-Permit-using-systemd-userdbd.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(appstream-glib)
|
|
|
|
BuildRequires: pkgconfig(appstream-glib)
|
|
|
|
BuildRequires: pkgconfig(dconf)
|
|
|
|
BuildRequires: pkgconfig(dconf)
|
|
|
|
BuildRequires: pkgconfig(fuse)
|
|
|
|
BuildRequires: pkgconfig(fuse)
|
|
|
@ -34,14 +42,12 @@ BuildRequires: docbook-style-xsl
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: libassuan-devel
|
|
|
|
BuildRequires: libassuan-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: python3.11-pyparsing
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
BuildRequires: python3-pyparsing
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: /usr/bin/python3
|
|
|
|
|
|
|
|
BuildRequires: /usr/bin/xmlto
|
|
|
|
BuildRequires: /usr/bin/xmlto
|
|
|
|
BuildRequires: /usr/bin/xsltproc
|
|
|
|
BuildRequires: /usr/bin/xsltproc
|
|
|
|
|
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: bubblewrap >= %{bubblewrap_version}
|
|
|
|
Requires: bubblewrap >= %{bubblewrap_version}
|
|
|
|
Requires: librsvg2%{?_isa}
|
|
|
|
Requires: librsvg2%{?_isa}
|
|
|
|
Requires: ostree-libs%{?_isa} >= %{ostree_version}
|
|
|
|
Requires: ostree-libs%{?_isa} >= %{ostree_version}
|
|
|
@ -119,6 +125,8 @@ This package contains installed tests for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
# Make sure to use the RHEL-lifetime supported Python and no other
|
|
|
|
|
|
|
|
%py3_shebang_fix scripts/* subprojects/variant-schema-compiler/* tests/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -142,6 +150,11 @@ install -pm 644 NEWS README.md %{buildroot}/%{_pkgdocdir}
|
|
|
|
install -d %{buildroot}%{_localstatedir}/lib/flatpak
|
|
|
|
install -d %{buildroot}%{_localstatedir}/lib/flatpak
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/flatpak/remotes.d
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/flatpak/remotes.d
|
|
|
|
rm -f %{buildroot}%{_libdir}/libflatpak.la
|
|
|
|
rm -f %{buildroot}%{_libdir}/libflatpak.la
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
install -D -t %{buildroot}%{_unitdir} %{SOURCE1}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
|
|
# Work around selinux denials, see
|
|
|
|
# Work around selinux denials, see
|
|
|
@ -158,15 +171,28 @@ getent passwd flatpak >/dev/null || \
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
# Create an (empty) system-wide repo.
|
|
|
|
%systemd_post flatpak-add-fedora-repos.service
|
|
|
|
flatpak remote-list --system &> /dev/null || :
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post selinux
|
|
|
|
%post selinux
|
|
|
|
%selinux_modules_install %{_datadir}/selinux/packages/flatpak.pp.bz2
|
|
|
|
%selinux_modules_install %{_datadir}/selinux/packages/flatpak.pp.bz2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%systemd_preun flatpak-add-fedora-repos.service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%systemd_postun_with_restart flatpak-add-fedora-repos.service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun selinux
|
|
|
|
%postun selinux
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
%selinux_modules_uninstall %{_datadir}/selinux/packages/flatpak.pp.bz2
|
|
|
|
%selinux_modules_uninstall %{_datadir}/selinux/packages/flatpak.pp.bz2
|
|
|
@ -209,6 +235,7 @@ fi
|
|
|
|
%{_mandir}/man5/flatpak-installation.5*
|
|
|
|
%{_mandir}/man5/flatpak-installation.5*
|
|
|
|
%{_mandir}/man5/flatpak-remote.5*
|
|
|
|
%{_mandir}/man5/flatpak-remote.5*
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
|
|
|
|
|
|
|
|
%dir %{_sysconfdir}/flatpak
|
|
|
|
%{_sysconfdir}/flatpak/remotes.d
|
|
|
|
%{_sysconfdir}/flatpak/remotes.d
|
|
|
|
%{_sysconfdir}/profile.d/flatpak.sh
|
|
|
|
%{_sysconfdir}/profile.d/flatpak.sh
|
|
|
|
%{_sysusersdir}/flatpak.conf
|
|
|
|
%{_sysusersdir}/flatpak.conf
|
|
|
@ -217,6 +244,10 @@ fi
|
|
|
|
%{_userunitdir}/flatpak-portal.service
|
|
|
|
%{_userunitdir}/flatpak-portal.service
|
|
|
|
%{_systemd_user_env_generator_dir}/60-flatpak
|
|
|
|
%{_systemd_user_env_generator_dir}/60-flatpak
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%{_unitdir}/flatpak-add-fedora-repos.service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%{_datadir}/gir-1.0/Flatpak-1.0.gir
|
|
|
|
%{_datadir}/gir-1.0/Flatpak-1.0.gir
|
|
|
|
%{_datadir}/gtk-doc/
|
|
|
|
%{_datadir}/gtk-doc/
|
|
|
@ -246,6 +277,18 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Apr 30 2024 Kalev Lember <klember@redhat.com> - 1.12.9-1
|
|
|
|
|
|
|
|
- Update to 1.12.9 (CVE-2024-32462)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 06 2023 Debarshi Ray <rishi@fedoraproject.org> - 1.12.8-1
|
|
|
|
|
|
|
|
- Rebase to 1.12.8 (RHEL-4220)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 06 2023 Debarshi Ray <rishi@fedoraproject.org> - 1.10.8-3
|
|
|
|
|
|
|
|
- Let flatpak own %%{_sysconfdir}/flatpak (RHEL-15822)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 04 2023 Miro Hrončok <mhroncok@redhat.com> - 1.10.8-2
|
|
|
|
|
|
|
|
- Make sure to use the RHEL-lifetime supported Python and no other (RHEL-2225)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.10.8-1
|
|
|
|
* Tue Jul 25 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.10.8-1
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
|
|