%bcond_with systemd %global bubblewrap_version 0.4.1 %global ostree_version 2020.8 Name: flatpak Version: 1.10.2 Release: 1%{?_dist_release}%{?with_systemd:.systemd} Summary: Application deployment framework for desktop apps Group: system Vendor: Project Vine Distribution: Vine Linux License: LGPLv2+ URL: http://flatpak.org/ Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz # Add Fedora flatpak repositories Source1: flatpak-add-fedora-repos.service BuildRequires: pkgconfig(appstream-glib) BuildRequires: pkgconfig(dconf) BuildRequires: pkgconfig(fuse) BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.40.0 BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libarchive) >= 2.8.0 BuildRequires: pkgconfig(libseccomp) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(libxml-2.0) >= 2.4 BuildRequires: ostree-devel >= %{ostree_version} BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(xau) BuildRequires: bison BuildRequires: bubblewrap >= %{bubblewrap_version} BuildRequires: docbook-dtds BuildRequires: docbook-style-xsl BuildRequires: gettext BuildRequires: gpgme-devel BuildRequires: libcap-devel BuildRequires: python3-devel BuildRequires: python3-pyparsing BuildRequires: /usr/bin/xdg-dbus-proxy BuildRequires: /usr/bin/xmlto BuildRequires: /usr/bin/xsltproc # For Patch2 BuildRequires: automake autoconf libtool BuildRequires: gettext-devel BuildRequires: gtk-doc %if %{with systemd} BuildRequires: pkgconfig(libsystemd) BuildRequires: systemd %{?systemd_requires} # Require the version of system-release that adds # flatpak-add-fedora-repos.service preset. # Should be fine to drop in F32. #Requires(post): system-release >= 30-0.25 %endif Requires: bubblewrap >= %{bubblewrap_version} Requires: librsvg2%{?_isa} Requires: ostree-libs%{?_isa} >= %{ostree_version} Requires: /usr/bin/xdg-dbus-proxy # https://fedoraproject.org/wiki/SELinux/IndependentPolicy #Requires: (flatpak-selinux = %{?epoch:%{epoch}:}%{version}-%{release} if selinux-policy-targeted) Requires: %{name}-session-helper%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Recommends: p11-kit-server Recommends: xdg-desktop-portal > 0.10 %description flatpak is a system for building, distributing and running sandboxed desktop applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for more information. %package devel Summary: Development files for %{name} Group: programming License: LGPLv2+ Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel This package contains the pkg-config file and development headers for %{name}. %package libs Summary: Libraries for %{name} Group: system License: LGPLv2+ Requires: bubblewrap >= %{bubblewrap_version} Requires: ostree%{?_isa} >= %{ostree_version} Requires(pre): /usr/sbin/useradd %description libs This package contains libflatpak. %package session-helper Summary: User D-Bus service used by %{name} and others Group: system License: LGPLv2+ Conflicts: flatpak < 1.4.1-2 %if %{with systemd} Requires: systemd %endif %description session-helper This package contains the org.freedesktop.Flatpak user D-Bus service that's used by %{name} and other packages. %package tests Summary: Tests for %{name} Group: programming License: LGPLv2+ Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: bubblewrap >= %{bubblewrap_version} Requires: ostree%{?_isa} >= %{ostree_version} %description tests This package contains installed tests for %{name}. %debug_package %prep %autosetup -p1 %build # gobject introspection does not work with LTO. There is an effort to fix this # in the appropriate project upstreams, so hopefully LTO can be enabled someday # Disable LTO. %define _lto_cflags %{nil} # Fix generic python shebangs. #find tests -name '*.py' -exec \ # sed -i -e 's|/usr/bin/python|/usr/bin/python3|' {} + (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi; # Generate consistent IDs between runs to avoid multilib problems. export XMLTO_FLAGS="--stringparam generate.consistent.ids=1" %configure \ --enable-docbook-docs \ --enable-installed-tests \ --with-priv-mode=none \ --with-system-bubblewrap \ --with-system-dbus-proxy \ $CONFIGFLAGS) %make_build V=1 %install %make_install # The system repo is not installed by the flatpak build system. install -d %{buildroot}%{_localstatedir}/lib/flatpak install -d %{buildroot}%{_sysconfdir}/flatpak/remotes.d %if %{with systemd} install -D -t %{buildroot}%{_unitdir} %{SOURCE1} mv -f %{buildroot}/usr/lib/systemd/system/flatpak-system-helper.service %{buildroot}%{_unitdir}/ %else rm -rf %{buildroot}/lib/systemd rm -rf %{buildroot}/usr/lib/systemd rm -rf %{buildroot}/usr/lib/sysusers.d %endif rm -rf %{buildroot}%{_datadir}/fish rm -f %{buildroot}%{_libdir}/libflatpak.la %find_lang %{name} %pre getent group flatpak >/dev/null || groupadd -r flatpak getent passwd flatpak >/dev/null || \ useradd -r -g flatpak -d / -s /sbin/nologin \ -c "User for flatpak system helper" flatpak exit 0 %if 0 %if %{with systemd} %post %systemd_post flatpak-add-fedora-repos.service 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 %preun %systemd_preun flatpak-add-fedora-repos.service %postun %systemd_postun_with_restart flatpak-add-fedora-repos.service %endif %endif %files -f %{name}.lang %license COPYING %doc %{_pkgdocdir}/* %doc NEWS README.md %{_bindir}/flatpak %{_bindir}/flatpak-bisect %{_bindir}/flatpak-coredumpctl %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/* %{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.Authenticator.xml %{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml %{_datadir}/dbus-1/services/org.flatpak.Authenticator.Oci.service %{_datadir}/dbus-1/services/org.freedesktop.portal.Flatpak.service %{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service # Co-own directory. %{_datadir}/%{name} %{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy %{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules %{_datadir}/zsh/site-functions %{_libexecdir}/flatpak-oci-authenticator %{_libexecdir}/flatpak-portal %{_libexecdir}/flatpak-system-helper %{_libexecdir}/flatpak-validate-icon %{_libexecdir}/revokefs-fuse %dir %{_localstatedir}/lib/flatpak %{_mandir}/man1/%{name}*.1* %{_mandir}/man5/%{name}-metadata.5* %{_mandir}/man5/flatpak-flatpakref.5* %{_mandir}/man5/flatpak-flatpakrepo.5* %{_mandir}/man5/flatpak-installation.5* %{_mandir}/man5/flatpak-remote.5* %{_sysconfdir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf %{_sysconfdir}/flatpak/remotes.d %{_sysconfdir}/profile.d/flatpak.sh %if %{with systemd} %exclude %{_unitdir}/flatpak-add-fedora-repos.service %{_unitdir}/flatpak-system-helper.service %{_userunitdir}/flatpak-oci-authenticator.service %{_userunitdir}/flatpak-portal.service %{_systemd_system_env_generator_dir}/60-flatpak-system-only %{_systemd_user_env_generator_dir}/60-flatpak /usr/lib/sysusers.d/flatpak.conf %endif %files devel %{_datadir}/gir-1.0/Flatpak-1.0.gir %{_datadir}/gtk-doc/ %{_includedir}/%{name}/ %{_libdir}/libflatpak.so %{_libdir}/pkgconfig/%{name}.pc %files libs %license COPYING %{_libdir}/girepository-1.0/Flatpak-1.0.typelib %{_libdir}/libflatpak.so.* %files session-helper %license COPYING %{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.xml %{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service %{_libexecdir}/flatpak-session-helper %if %{with systemd} %{_userunitdir}/flatpak-session-helper.service %endif %files tests %{_datadir}/installed-tests %{_libexecdir}/installed-tests %changelog * Sat Mar 20 2021 Tomohiro "Tomo-p" KATO - 1.10.2-1 - new upstream release. * Fri Feb 26 2021 Tomohiro "Tomo-p" KATO - 1.10.1-1 - new upstream release. * Tue Jul 28 2020 Tomohiro "Tomo-p" KATO - 1.8.1-1 - new upstream release. * Sat Sep 21 2019 Tomohiro "Tomo-p" KATO - 1.4.3-2 - initial build for Vine Linux. * Thu Sep 19 2019 Kalev Lember - 1.4.3-1 - Update to 1.4.3 * Wed Sep 18 2019 Debarshi Ray - 1.4.2-6 - Trim unused shared library linkages from the session helper * Wed Aug 7 2019 Owen Taylor - 1.4.2-5 - Add patch fixing problem with downloading icons for OCI remotes (#1683375) * Thu Jul 25 2019 Tim Zabel - 1.4.2-4 - SELinux needs additional Requires (#1732132) * Thu Jul 25 2019 Fedora Release Engineering - 1.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 09 2019 Kalev Lember - 1.4.2-2 - Backport a patch that fixes a fairly large memory leak in gnome-software * Fri Jun 28 2019 David King - 1.4.2-1 - Update to 1.4.2 (#1725071) * Tue Jun 25 2019 David King - 1.4.1-3 - Use Requires(post) for selinux-policy (#1723118) * Tue Jun 25 2019 Debarshi Ray - 1.4.1-2 - Split the session helper into a separate sub-package * Thu Jun 13 2019 Kalev Lember - 1.4.1-1 - Update to 1.4.1 * Wed Jun 12 2019 Kalev Lember - 1.4.0-2 - Backport an upstream patch to fix gnome-software CI * Tue May 28 2019 Kalev Lember - 1.4.0-1 - Update to 1.4.0 * Fri May 10 2019 Kalev Lember - 1.3.4-1 - Update to 1.3.4 * Tue Apr 30 2019 David King - 1.3.3-2 - Generate consistent anchor IDs * Fri Apr 26 2019 David King - 1.3.3-1 - Update to 1.3.3 (#1699338) * Wed Apr 17 2019 Igor Gnatenko - 1.3.2-2 - Fixup selinux requires * Fri Apr 12 2019 David King - 1.3.2-1 - Update to 1.3.2 (#1699338) * Wed Apr 03 2019 Kalev Lember - 1.3.1-2 - Add a oneshot systemd service to add Fedora flatpak repos - Remove the post script to create system repo now that we have the service * Wed Mar 27 2019 David King - 1.3.1-1 - Update to 1.3.1 (#1693207) * Tue Mar 12 2019 David King - 1.3.0-1 - Update to 1.3.0 * Thu Feb 14 2019 David King - 1.2.3-2 - Remove an obsolete Conflicts - Use xdg-dbus-proxy * Mon Feb 11 2019 David King - 1.2.3-1 - Update to 1.2.3 * Wed Feb 06 2019 David King - 1.2.2-1 - Update to 1.2.2 * Tue Feb 05 2019 Kalev Lember - 1.2.1-1 - Update to 1.2.1 * Mon Feb 4 2019 fedora-toolbox - 1.2.0-4 - Add an upstream patch to add flatpak build-export --disable-sandbox * Thu Jan 31 2019 Bastien Nocera - 1.2.0-3 - Require librsvg2 so SVG icons can be exported * Tue Jan 29 2019 Kalev Lember - 1.2.0-2 - Enable libsystemd support * Mon Jan 28 2019 David King - 1.2.0-1 - Update to 1.2.0 * Tue Jan 15 2019 Kalev Lember - 1.1.3-1 - Update to 1.1.3 * Fri Dec 21 2018 David King - 1.1.2-1 - Update to 1.1.2 * Mon Dec 17 2018 David King - 1.1.1-2 - Enable installed tests and add to tests subpackage * Mon Dec 10 2018 Kalev Lember - 1.1.1-1 - Update to 1.1.1 * Fri Nov 30 2018 fedora-toolbox - 1.0.6-3 - Add a patch to fix OCI system remotes - Add patch fixing permissions on icons downloaded from an OCI registry * Fri Nov 16 2018 Kalev Lember - 1.0.6-1 - Update to 1.0.6 * Mon Nov 12 2018 Kalev Lember - 1.0.5-2 - Recommend p11-kit-server instead of just p11-kit (#1649049) * Mon Nov 12 2018 Kalev Lember - 1.0.5-1 - Update to 1.0.5 * Fri Oct 12 2018 Kalev Lember - 1.0.4-1 - Update to 1.0.4 * Thu Oct 04 2018 Kalev Lember - 1.0.3-1 - Update to 1.0.3 * Thu Sep 13 2018 Kalev Lember - 1.0.2-1 - Update to 1.0.2 * Tue Aug 28 2018 David King - 1.0.1-1 - Update to 1.0.1 * Mon Aug 20 2018 David King - 1.0.0-2 - Fix double dash in XML documentation * Mon Aug 20 2018 David King - 1.0.0-1 - Update to 1.0.0 * Fri Jul 13 2018 Fedora Release Engineering - 0.99.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 10 2018 Kalev Lember - 0.99.3-1 - Update to 0.99.3 * Wed Jun 27 2018 Kalev Lember - 0.99.2-1 - Update to 0.99.2 * Thu Jun 21 2018 David King - 0.99.1-1 - Update to 0.99.1 * Wed Jun 13 2018 David King - 0.11.8.3-1 - Update to 0.11.8.3 (#1590808) * Mon Jun 11 2018 David King - 0.11.8.2-1 - Update to 0.11.8.2 (#1589810) * Fri Jun 08 2018 David King - 0.11.8.1-1 - Update to 0.11.8.1 (#1588868) * Fri Jun 08 2018 David King - 0.11.8-1 - Update to 0.11.8 (#1588868) * Wed May 23 2018 Adam Jackson - 0.11.7-2 - Remove Requires: kernel >= 4.0.4-202, which corresponds to rawhide somewhere before Fedora 22 which this spec file certainly no longer supports. * Thu May 03 2018 Kalev Lember - 0.11.7-1 - Update to 0.11.7 * Wed May 02 2018 Kalev Lember - 0.11.6-1 - Update to 0.11.6 * Wed May 02 2018 Kalev Lember - 0.11.5-2 - Backport a fix for a gnome-software crash installing .flatpakref files * Mon Apr 30 2018 David King - 0.11.5-1 - Update to 0.11.5 * Thu Apr 26 2018 Kalev Lember - 0.11.4-1 - Update to 0.11.4 * Mon Feb 19 2018 David King - 0.11.3-1 - Update to 0.11.3 * Mon Feb 19 2018 David King - 0.11.2-1 - Update to 0.11.2 * Wed Feb 14 2018 David King - 0.11.1-1 - Update to 0.11.1 (#1545224) * Wed Feb 07 2018 Fedora Release Engineering - 0.10.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Feb 02 2018 Igor Gnatenko - 0.10.3-2 - Switch to %%ldconfig_scriptlets * Tue Jan 30 2018 Kalev Lember - 0.10.3-1 - Update to 0.10.3 * Thu Dec 21 2017 David King - 0.10.2.1-1 - Update to 0.10.2.1 * Fri Dec 15 2017 Kalev Lember - 0.10.2-1 - Update to 0.10.2 * Fri Nov 24 2017 David King - 0.10.1-1 - Update to 0.10.1 * Thu Oct 26 2017 Kalev Lember - 0.10.0-1 - Update to 0.10.0 * Mon Oct 09 2017 Kalev Lember - 0.9.99-1 - Update to 0.9.99 * Tue Sep 26 2017 Kalev Lember - 0.9.98.2-1 - Update to 0.9.98.2 * Tue Sep 26 2017 Kalev Lember - 0.9.98.1-1 - Update to 0.9.98.1 * Mon Sep 25 2017 Kalev Lember - 0.9.98-1 - Update to 0.9.98 * Thu Sep 14 2017 Kalev Lember - 0.9.12-1 - Update to 0.9.12 * Wed Sep 13 2017 Kalev Lember - 0.9.11-1 - Update to 0.9.11 * Mon Sep 04 2017 Kalev Lember - 0.9.10-1 - Update to 0.9.10 - Split out flatpak-builder to a separate source package * Fri Aug 25 2017 Kalev Lember - 0.9.8-2 - Backport a patch to fix regression in --devel * Mon Aug 21 2017 David King - 0.9.8-1 - Update to 0.9.8 * Wed Aug 02 2017 Fedora Release Engineering - 0.9.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Sun Jul 30 2017 Florian Weimer - 0.9.7-4 - Rebuild with binutils fix for ppc64le (#1475636) * Thu Jul 27 2017 Owen Taylor - 0.9.7-3 - Add a patch to fix OCI refname annotation * Wed Jul 26 2017 Fedora Release Engineering - 0.9.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jul 01 2017 David King - 0.9.7-1 - Update to 0.9.7 (#1466970) * Tue Jun 20 2017 David King - 0.9.6-1 - Update to 0.9.6 * Sat Jun 10 2017 David King - 0.9.5-1 - Update to 0.9.5 (#1460437) * Tue May 23 2017 David King - 0.9.4-1 - Update to 0.9.4 (#1454750) * Mon Apr 24 2017 David King - 0.9.3-1 - Update to 0.9.3 * Fri Apr 07 2017 David King - 0.9.2-2 - Add eu-strip dependency for flatpak-builder * Wed Apr 05 2017 Kalev Lember - 0.9.2-1 - Update to 0.9.2 * Wed Mar 15 2017 Kalev Lember - 0.9.1-1 - Update to 0.9.1 * Fri Mar 10 2017 Kalev Lember - 0.8.4-1 - Update to 0.8.4 * Sun Feb 19 2017 David King - 0.8.3-3 - Make flatpak-builder require bzip2 (#1424857) * Wed Feb 15 2017 Kalev Lember - 0.8.3-2 - Avoid pulling in all of ostree and only depend on ostree-libs subpackage * Tue Feb 14 2017 Kalev Lember - 0.8.3-1 - Update to 0.8.3 * Fri Feb 10 2017 Fedora Release Engineering - 0.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 27 2017 Kalev Lember - 0.8.2-1 - Update to 0.8.2 * Wed Jan 18 2017 David King - 0.8.1-1 - Update to 0.8.1 * Tue Dec 20 2016 Kalev Lember - 0.8.0-1 - Update to 0.8.0 * Tue Nov 29 2016 David King - 0.6.14-2 - Add a patch to fix a GNOME Software crash - Silence repository listing during post * Tue Nov 29 2016 Kalev Lember - 0.6.14-1 - Update to 0.6.14 * Wed Oct 26 2016 David King - 0.6.13-2 - Add empty /etc/flatpak/remotes.d * Tue Oct 25 2016 David King - 0.6.13-1 - Update to 0.6.13 * Thu Oct 06 2016 David King - 0.6.12-1 - Update to 0.6.12 * Tue Sep 20 2016 Kalev Lember - 0.6.11-1 - Update to 0.6.11 - Set minimum ostree and bubblewrap versions * Mon Sep 12 2016 David King - 0.6.10-1 - Update to 0.6.10 * Tue Sep 06 2016 David King - 0.6.9-2 - Look for bwrap in PATH * Thu Aug 25 2016 David King - 0.6.9-1 - Update to 0.6.9 * Mon Aug 01 2016 David King - 0.6.8-1 - Update to 0.6.8 (#1361823) * Thu Jul 21 2016 David King - 0.6.7-2 - Use system bubblewrap * Fri Jul 01 2016 David King - 0.6.7-1 - Update to 0.6.7 * Thu Jun 23 2016 David King - 0.6.6-1 - Update to 0.6.6 * Fri Jun 10 2016 David King - 0.6.5-1 - Update to 0.6.5 * Wed Jun 01 2016 David King - 0.6.4-1 - Update to 0.6.4 * Tue May 31 2016 David King - 0.6.3-1 - Update to 0.6.3 - Move bwrap to main package * Tue May 24 2016 David King - 0.6.2-1 - Rename from xdg-app to flatpak (#1337434)