diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c33128 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/flatpak-1.10.7.tar.xz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/flatpak.spec b/flatpak.spec new file mode 100644 index 0000000..9e50902 --- /dev/null +++ b/flatpak.spec @@ -0,0 +1,529 @@ +%global bubblewrap_version 0.4.0 +%global ostree_version 2020.8 + +Name: flatpak +Version: 1.10.7 +Release: 1%{?dist} +Summary: Application deployment framework for desktop apps + +License: LGPLv2+ +URL: http://flatpak.org/ +Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz + +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(libsystemd) +BuildRequires: pkgconfig(libxml-2.0) >= 2.4 +BuildRequires: pkgconfig(libzstd) >= 0.8.1 +BuildRequires: pkgconfig(ostree-1) >= %{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-pyparsing +BuildRequires: systemd +BuildRequires: /usr/bin/python3 +BuildRequires: /usr/bin/xmlto +BuildRequires: /usr/bin/xsltproc + +%{?systemd_requires} + +Requires: bubblewrap >= %{bubblewrap_version} +Requires: librsvg2%{?_isa} +Requires: ostree-libs%{?_isa} >= %{ostree_version} +# 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 + +# Make sure the document portal is installed +%if 0%{?fedora} || 0%{?rhel} > 7 +Recommends: xdg-desktop-portal > 0.10 +# Remove in F30. +Conflicts: xdg-desktop-portal < 0.10 +%else +Requires: xdg-desktop-portal > 0.10 +%endif + +%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} +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} +License: LGPLv2+ +Requires: bubblewrap >= %{bubblewrap_version} +Requires: ostree%{?_isa} >= %{ostree_version} +Requires(pre): /usr/sbin/useradd + +%description libs +This package contains libflatpak. + +%package selinux +Summary: SELinux policy module for %{name} +License: LGPLv2+ +BuildRequires: selinux-policy +BuildRequires: selinux-policy-devel +BuildArch: noarch +%{?selinux_requires} + +%description selinux +This package contains the SELinux policy module for %{name}. + +%package session-helper +Summary: User D-Bus service used by %{name} and others +License: LGPLv2+ +Conflicts: flatpak < 1.4.1-2 +Requires: systemd + +%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} +License: LGPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-session-helper%{?_isa} = %{version}-%{release} +Requires: bubblewrap >= %{bubblewrap_version} +Requires: ostree%{?_isa} >= %{ostree_version} + +%description tests +This package contains installed tests for %{name}. + + +%prep +%autosetup -p1 + + +%build +(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 \ + --enable-selinux-module \ + --with-priv-mode=none \ + --with-system-bubblewrap \ + $CONFIGFLAGS) +%make_build V=1 + + +%install +%make_install +install -pm 644 NEWS README.md %{buildroot}/%{_pkgdocdir} +# The system repo is not installed by the flatpak build system. +install -d %{buildroot}%{_localstatedir}/lib/flatpak +install -d %{buildroot}%{_sysconfdir}/flatpak/remotes.d +rm -f %{buildroot}%{_libdir}/libflatpak.la +%find_lang %{name} + +# Work around selinux denials, see +# https://github.com/flatpak/flatpak/issues/4128 for details. Note that we are +# going to need the system env generator if we should enable malcontent support +# in the future. +rm %{buildroot}%{_systemd_system_env_generator_dir}/60-flatpak-system-only + +%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 + + +%post +# Create an (empty) system-wide repo. +flatpak remote-list --system &> /dev/null || : + + +%post selinux +%selinux_modules_install %{_datadir}/selinux/packages/flatpak.pp.bz2 + + +%postun selinux +if [ $1 -eq 0 ]; then + %selinux_modules_uninstall %{_datadir}/selinux/packages/flatpak.pp.bz2 +fi + + +%ldconfig_scriptlets libs + + +%files -f %{name}.lang +%license COPYING +# Comply with the packaging guidelines about not mixing relative and absolute +# paths in doc. +%doc %{_pkgdocdir} +%{_bindir}/flatpak +%{_bindir}/flatpak-bisect +%{_bindir}/flatpak-coredumpctl +%{_datadir}/bash-completion +%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml +%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.Authenticator.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 +%{_datadir}/fish +%{_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-dbus-proxy +%{_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 +%{_sysusersdir}/flatpak.conf +%{_unitdir}/flatpak-system-helper.service +%{_userunitdir}/flatpak-oci-authenticator.service +%{_userunitdir}/flatpak-portal.service +%{_systemd_user_env_generator_dir}/60-flatpak + +%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 selinux +%{_datadir}/selinux/packages/flatpak.pp.bz2 +%{_datadir}/selinux/devel/include/contrib/flatpak.if + +%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 +%{_userunitdir}/flatpak-session-helper.service + +%files tests +%{_datadir}/installed-tests +%{_libexecdir}/installed-tests + + +%changelog +* Wed Mar 09 2022 Debarshi Ray - 1.10.7-1 +- Rebase to 1.10.7 (#2062417) + +* Thu Feb 03 2022 Debarshi Ray - 1.8.7-1 +- Rebase to 1.8.7 (#2041972) + +* Tue Jan 25 2022 Debarshi Ray - 1.8.6-1 +- Rebase to 1.8.6 (#2010533) + +* Tue Oct 26 2021 Debarshi Ray - 1.8.5-6 +- Fix CVE-2021-41133 (#2012869) + +* Tue Oct 05 2021 Debarshi Ray - 1.8.5-5 +- Disable gvfs plugins when listing flatpak installations (#1980438) + +* Wed Jul 28 2021 Tomas Popela - 1.8.5-4 +- Ship flatpak-devel in CRB (#1938064) + +* Mon Mar 22 2021 David King - 1.8.5-3 +- Fix CVE-2021-21381 (#1938064) + +* Mon Jan 25 2021 David King - 1.8.5-2 +- Apply post-release CVE fixes (#1918776) + +* Thu Jan 14 2021 David King - 1.8.5-1 +- Rebase to 1.8.5 (#1851958) + +* Tue Nov 17 2020 David King - 1.8.3-1 +- Rebase to 1.8.3 (#1851958) + +* Mon Oct 05 2020 David King - 1.8.2-1 +- Rebase to 1.8.2 (#1851958) + +* Mon Sep 14 2020 Kalev Lember - 1.6.2-4 +- OCI: extract appstream data for runtimes (#1878231) + +* Wed Jun 17 2020 David King - 1.6.2-3 +- Further fixes for OCI authenticator (#1847201) + +* Fri Mar 20 2020 David King - 1.6.2-2 +- Fixes for OCI authenticator (#1814045) + +* Thu Feb 13 2020 David King - 1.6.2-1 +- Rebase to 1.6.2 (#1775339) + +* Thu Jan 23 2020 David King - 1.6.1-1 +- Rebase to 1.6.1 (#1775339) + +* Fri Jan 17 2020 David King - 1.6.0-2 +- Remove broken python3 sed hack (#1775339) + +* Sat Dec 21 2019 David King - 1.6.0-1 +- Rebase to 1.6.0 (#1775339) + +* Fri Nov 08 2019 David King - 1.4.3-2 +- Use %%{?selinux_requires} for proper install ordering + +* Tue Oct 08 2019 David King - 1.4.3-1 +- Rebase to 1.4.3 (#1748276) + +* Fri Sep 20 2019 Kalev Lember - 1.0.9-1 +- Update to 1.0.9 (#1753613) + +* Tue May 14 2019 David King - 1.0.6-4 +- Bump release (#1700654) + +* Mon Apr 29 2019 David King - 1.0.6-3 +- Fix IOCSTI sandbox bypass (#1700654) + +* Wed Feb 13 2019 David King - 1.0.6-2 +- Do not mount /proc in root sandbox (#1675776) + +* Tue Dec 18 2018 Kalev Lember - 1.0.6-1 +- Update to 1.0.6 (#1630249) +- Recommend p11-kit-server instead of just p11-kit (#1649049) + +* Mon Dec 10 2018 David King - 1.0.4-2 +- Backport patches to improve OCI support (#1657306) + +* Fri Oct 12 2018 Kalev Lember - 1.0.4-1 +- Update to 1.0.4 (#1630249) + +* Thu Sep 13 2018 Kalev Lember - 1.0.2-1 +- Update to 1.0.2 (#1630249) + +* Tue Aug 28 2018 David King - 1.0.1-1 +- Update to 1.0.1 (#1621401) + +* Wed Aug 01 2018 David King - 0.99.3-1 +- Update to 0.99.3 + +* 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) diff --git a/sources b/sources new file mode 100644 index 0000000..34413ed --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (flatpak-1.10.7.tar.xz) = a25e9492b21542082e074c8805fd0d723a2e50f88da414a46981460a58111750ccf1c23ea2137b3f1a22638e473911f6c1c88d22f2cba641e1c2cbad53e402ed