From e76b95588078d148f58555d3c3d8046e74a23517 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 26 May 2016 16:54:12 +0200 Subject: [PATCH] Initial import https://bugzilla.redhat.com/show_bug.cgi?id=1337434 --- .gitignore | 1 + flatpak.spec | 170 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 172 insertions(+) create mode 100644 flatpak.spec diff --git a/.gitignore b/.gitignore index e69de29..19c0c17 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/flatpak-0.6.2.tar.xz diff --git a/flatpak.spec b/flatpak.spec new file mode 100644 index 0000000..f4e7119 --- /dev/null +++ b/flatpak.spec @@ -0,0 +1,170 @@ +Name: flatpak +Version: 0.6.2 +Release: 1%{?dist} +Summary: Application deployment framework for desktop apps + +Group: Development/Tools +License: LGPLv2+ +URL: https://flatpak.github.io/ +Source0: https://www.freedesktop.org/software/xdg-app/releases/%{name}-%{version}.tar.xz + +BuildRequires: pkgconfig(fuse) +BuildRequires: pkgconfig(gio-unix-2.0) +BuildRequires: pkgconfig(json-glib-1.0) +BuildRequires: pkgconfig(libarchive) >= 2.8.0 +BuildRequires: pkgconfig(libelf) >= 0.8.12 +BuildRequires: pkgconfig(libgsystem) >= 2015.1 +BuildRequires: pkgconfig(libsoup-2.4) +BuildRequires: pkgconfig(ostree-1) >= 2016.5 +BuildRequires: pkgconfig(polkit-gobject-1) +BuildRequires: pkgconfig(libseccomp) +BuildRequires: pkgconfig(xau) +BuildRequires: docbook-dtds +BuildRequires: docbook-style-xsl +BuildRequires: intltool +BuildRequires: libattr-devel +BuildRequires: libcap-devel +BuildRequires: libdwarf-devel +BuildRequires: systemd +BuildRequires: /usr/bin/xsltproc + +# Crashes with older kernels (the bug being introduced in 4.0.2), without the +# upstream fixes in this version. +Requires: kernel >= 4.0.4-202 + +# Needed for the document portal. +Requires: /usr/bin/fusermount + +# Remove in F27. +Provides: xdg-app = %{version}-%{release} +Obsoletes: xdg-app <= 0.5.2-2 + +%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 builder +Summary: Build helper for %{name} +Group: Development/Tools +License: LGPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: /usr/bin/bzr +Requires: /usr/bin/git +Requires: /usr/bin/patch +Requires: /usr/bin/strip +Requires: /usr/bin/tar +Requires: /usr/bin/unzip +# Remove in F27. +Provides: xdg-app-builder = %{version}-%{release} +Obsoletes: xdg-app-builder <= 0.5.2-2 + +%description builder +flatpak-builder is a tool that makes it easy to build applications and their +dependencies by automating the configure && make && make install steps. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +License: LGPLv2+ +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +# Remove in F27. +Provides: xdg-app-devel%{?_isa} = %{version}-%{release} +Obsoletes: xdg-app-devel <= 0.5.2-2 + +%description devel +This package contains the pkg-config file and development headers for %{name}. + +%package libs +Summary: Libraries for %{name} +Group: Development/Libraries +License: LGPLv2+ +# Remove in F27. +Provides: xdg-app-libs%{?_isa} = %{version}-%{release} +Obsoletes: xdg-app-libs <= 0.5.2-2 + +%description libs +This package contains libflatpak and the bubblewrap helper. + + +%prep +%setup -q + + +%build +# User namespace support is sufficient. +%configure --with-dwarf-header=%{_includedir}/libdwarf --with-priv-mode=none +%make_build + + +%install +%make_install +# The system repo is not installed by the flatpak build system. +install -d %{buildroot}%{_localstatedir}/lib/flatpak +rm -f %{buildroot}%{_libdir}/libflatpak.la + + +%post +# Create an (empty) system-wide repo. +flatpak remote-list --system + +%post libs -p /sbin/ldconfig + + +%postun libs -p /sbin/ldconfig + + +%files +# A README would be nice. +%license COPYING +%doc NEWS +%{_bindir}/flatpak +%{_datadir}/bash-completion +%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.xml +%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Documents.xml +%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.PermissionStore.xml +%{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service +%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service +%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service +%{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service +%{_datadir}/gdm/env.d +%{_datadir}/%{name} +%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy +%{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules +%{_libexecdir}/flatpak-dbus-proxy +%{_libexecdir}/flatpak-session-helper +%{_libexecdir}/flatpak-system-helper +%{_libexecdir}/xdg-document-portal +%{_libexecdir}/xdg-permission-store +%dir %{_localstatedir}/lib/flatpak +%{_mandir}/man1/%{name}*.1* +%exclude %{_mandir}/man1/flatpak-builder.1* +%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf +%{_sysconfdir}/profile.d/flatpak.sh +%{_unitdir}/flatpak-system-helper.service +%{_userunitdir}/flatpak-session-helper.service +%{_userunitdir}/xdg-document-portal.service +%{_userunitdir}/xdg-permission-store.service + +%files builder +%{_bindir}/flatpak-builder +%{_mandir}/man1/flatpak-builder.1* + +%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}/flatpak/ +%{_libdir}/girepository-1.0/Flatpak-1.0.typelib +%{_libdir}/libflatpak.so.* + + +%changelog +* Tue May 24 2016 David King - 0.6.2-1 +- Rename from xdg-app to flatpak (#1337434) diff --git a/sources b/sources index e69de29..326b2b5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ce066e97d44d13b4d4634651a104fb0c flatpak-0.6.2.tar.xz