forked from rpms/flatpak
Don't try to add Fedora's OCI Flatpak repository on RHEL
It wasn't actually getting added because redhat-release and centos-release don't include flatpak-add-fedora-repos.service among the enabled systemd presets. Therefore, this doesn't actually change anything in the default user experience. Moreover, this was never intended to be there for RHEL, and is merely a leftover from Fedora. Take the opportunity to remove an obsolete Fedora-specific update path. Resolves: #2051697
This commit is contained in:
parent
53bc83080e
commit
4e5adeda3a
37
flatpak.spec
37
flatpak.spec
@ -3,14 +3,17 @@
|
|||||||
|
|
||||||
Name: flatpak
|
Name: flatpak
|
||||||
Version: 1.12.4
|
Version: 1.12.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Application deployment framework for desktop apps
|
Summary: Application deployment framework for desktop apps
|
||||||
|
|
||||||
License: LGPLv2+
|
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
|
# Add Fedora flatpak repositories
|
||||||
Source1: flatpak-add-fedora-repos.service
|
Source1: flatpak-add-fedora-repos.service
|
||||||
|
%endif
|
||||||
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1935508
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1935508
|
||||||
Patch0: flatpak-dir-Use-SHA256-not-SHA1-to-name-the-cache-for-a-filt.patch
|
Patch0: flatpak-dir-Use-SHA256-not-SHA1-to-name-the-cache-for-a-filt.patch
|
||||||
@ -44,8 +47,6 @@ BuildRequires: /usr/bin/xdg-dbus-proxy
|
|||||||
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}
|
||||||
@ -151,8 +152,12 @@ install -pm 644 NEWS README.md %{buildroot}/%{_pkgdocdir}
|
|||||||
# The system repo is not installed by the flatpak build system.
|
# The system repo is not installed by the flatpak build system.
|
||||||
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
|
||||||
install -D -t %{buildroot}%{_unitdir} %{SOURCE1}
|
|
||||||
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
|
||||||
@ -169,27 +174,27 @@ getent passwd flatpak >/dev/null || \
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
%post
|
%post
|
||||||
%systemd_post flatpak-add-fedora-repos.service
|
%systemd_post flatpak-add-fedora-repos.service
|
||||||
|
%endif
|
||||||
|
|
||||||
if [ $1 -gt 1 ] ; then
|
|
||||||
# Apply the preset also on package updates to support F29->F31 upgrade
|
|
||||||
# path. systemd_post macro only handles initial installs and not the
|
|
||||||
# case when a new .service file appears on a package update.
|
|
||||||
# Should be fine to drop in F32.
|
|
||||||
systemctl --no-reload preset flatpak-add-fedora-repos.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%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
|
%preun
|
||||||
%systemd_preun flatpak-add-fedora-repos.service
|
%systemd_preun flatpak-add-fedora-repos.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart flatpak-add-fedora-repos.service
|
%systemd_postun_with_restart flatpak-add-fedora-repos.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%postun selinux
|
%postun selinux
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
@ -232,12 +237,15 @@ fi
|
|||||||
%{_sysconfdir}/flatpak/remotes.d
|
%{_sysconfdir}/flatpak/remotes.d
|
||||||
%{_sysconfdir}/profile.d/flatpak.sh
|
%{_sysconfdir}/profile.d/flatpak.sh
|
||||||
%{_sysusersdir}/flatpak.conf
|
%{_sysusersdir}/flatpak.conf
|
||||||
%{_unitdir}/flatpak-add-fedora-repos.service
|
|
||||||
%{_unitdir}/flatpak-system-helper.service
|
%{_unitdir}/flatpak-system-helper.service
|
||||||
%{_userunitdir}/flatpak-oci-authenticator.service
|
%{_userunitdir}/flatpak-oci-authenticator.service
|
||||||
%{_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/
|
||||||
@ -267,6 +275,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 08 2022 Debarshi Ray <rishi@fedoraproject.org> - 1.12.4-2
|
||||||
|
- Don't try to add Fedora's OCI Flatpak repository on RHEL
|
||||||
|
- Remove an obsolete Fedora-specific update path
|
||||||
|
Resolves: #2051697
|
||||||
|
|
||||||
* Mon Feb 07 2022 Neal Gompa <ngompa@centosproject.org> - 1.12.4-1
|
* Mon Feb 07 2022 Neal Gompa <ngompa@centosproject.org> - 1.12.4-1
|
||||||
- Rebase to 1.12.4
|
- Rebase to 1.12.4
|
||||||
Resolves: #2050302
|
Resolves: #2050302
|
||||||
|
Loading…
Reference in New Issue
Block a user