2016-05-26 14:54:12 +00:00
|
|
|
Name: flatpak
|
2016-08-01 08:23:08 +00:00
|
|
|
Version: 0.6.8
|
|
|
|
Release: 1%{?dist}
|
2016-05-26 14:54:12 +00:00
|
|
|
Summary: Application deployment framework for desktop apps
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
License: LGPLv2+
|
2016-06-23 12:29:19 +00:00
|
|
|
URL: http://flatpak.org/
|
2016-05-31 15:31:48 +00:00
|
|
|
Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2016-08-01 08:23:08 +00:00
|
|
|
# Until https://github.com/flatpak/flatpak/pull/225 is merged and a new release
|
|
|
|
# made.
|
|
|
|
Patch0: flatpak-0.6.8-add-flatpak-metadata-xml.patch
|
2016-05-26 14:54:12 +00:00
|
|
|
|
2016-06-10 14:15:44 +00:00
|
|
|
BuildRequires: automake autoconf libtool
|
|
|
|
BuildRequires: gtk-doc
|
2016-05-26 14:54:12 +00:00
|
|
|
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)
|
2016-08-01 08:23:08 +00:00
|
|
|
BuildRequires: pkgconfig(ostree-1) >= 2016.7
|
2016-05-26 14:54:12 +00:00
|
|
|
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
|
2016-07-21 12:46:42 +00:00
|
|
|
BuildRequires: /usr/bin/bwrap
|
2016-08-01 08:23:08 +00:00
|
|
|
BuildRequires: /usr/bin/xmlto
|
2016-05-26 14:54:12 +00:00
|
|
|
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
|
|
|
|
|
2016-07-21 12:46:42 +00:00
|
|
|
Requires: /usr/bin/bwrap
|
|
|
|
|
2016-05-26 14:54:12 +00:00
|
|
|
# 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+
|
2016-07-21 12:46:42 +00:00
|
|
|
Requires: /usr/bin/bwrap
|
2016-05-26 14:54:12 +00:00
|
|
|
# Remove in F27.
|
|
|
|
Provides: xdg-app-libs%{?_isa} = %{version}-%{release}
|
|
|
|
Obsoletes: xdg-app-libs <= 0.5.2-2
|
|
|
|
|
|
|
|
%description libs
|
2016-05-31 15:31:48 +00:00
|
|
|
This package contains libflatpak.
|
2016-05-26 14:54:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-08-01 08:23:08 +00:00
|
|
|
%patch0 -p1
|
2016-05-26 14:54:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2016-06-10 14:15:44 +00:00
|
|
|
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
|
|
|
|
# User namespace support is sufficient.
|
2016-07-21 12:46:42 +00:00
|
|
|
%configure --with-dwarf-header=%{_includedir}/libdwarf --with-priv-mode=none \
|
2016-08-01 08:23:08 +00:00
|
|
|
--with-system-bubblewrap --enable-docbook-docs $CONFIGFLAGS)
|
2016-05-31 15:31:48 +00:00
|
|
|
%make_build V=1
|
2016-05-26 14:54:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2016-08-01 08:23:08 +00:00
|
|
|
install -pm 644 NEWS README.md %{buildroot}/%{_pkgdocdir}
|
2016-05-26 14:54:12 +00:00
|
|
|
# The system repo is not installed by the flatpak build system.
|
|
|
|
install -d %{buildroot}%{_localstatedir}/lib/flatpak
|
|
|
|
rm -f %{buildroot}%{_libdir}/libflatpak.la
|
2016-08-01 08:23:08 +00:00
|
|
|
%find_lang %{name}
|
2016-05-26 14:54:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
# Create an (empty) system-wide repo.
|
|
|
|
flatpak remote-list --system
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2016-08-01 08:23:08 +00:00
|
|
|
%files -f %{name}.lang
|
2016-05-26 14:54:12 +00:00
|
|
|
%license COPYING
|
2016-08-01 08:23:08 +00:00
|
|
|
# Comply with the packaging guidelines about not mixing relative and absolute
|
|
|
|
# paths in doc.
|
|
|
|
%doc %{_pkgdocdir}
|
2016-05-26 14:54:12 +00:00
|
|
|
%{_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
|
2016-05-31 15:31:48 +00:00
|
|
|
# Co-own directory.
|
2016-05-26 14:54:12 +00:00
|
|
|
%{_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*
|
2016-07-01 14:41:49 +00:00
|
|
|
%{_mandir}/man5/%{name}-metadata.5*
|
2016-05-26 14:54:12 +00:00
|
|
|
%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
|
2016-08-01 08:23:08 +00:00
|
|
|
# Co-own directory.
|
|
|
|
%{_userunitdir}/dbus.service.d/flatpak.conf
|
2016-05-26 14:54:12 +00:00
|
|
|
|
|
|
|
%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}/girepository-1.0/Flatpak-1.0.typelib
|
|
|
|
%{_libdir}/libflatpak.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2016-08-01 08:23:08 +00:00
|
|
|
* Mon Aug 01 2016 David King <amigadave@amigadave.com> - 0.6.8-1
|
|
|
|
- Update to 0.6.8 (#1361823)
|
|
|
|
|
2016-07-21 12:46:42 +00:00
|
|
|
* Thu Jul 21 2016 David King <amigadave@amigadave.com> - 0.6.7-2
|
|
|
|
- Use system bubblewrap
|
|
|
|
|
2016-07-01 14:41:49 +00:00
|
|
|
* Fri Jul 01 2016 David King <amigadave@amigadave.com> - 0.6.7-1
|
|
|
|
- Update to 0.6.7
|
|
|
|
|
2016-06-23 12:29:19 +00:00
|
|
|
* Thu Jun 23 2016 David King <amigadave@amigadave.com> - 0.6.6-1
|
|
|
|
- Update to 0.6.6
|
|
|
|
|
2016-06-10 13:02:15 +00:00
|
|
|
* Fri Jun 10 2016 David King <amigadave@amigadave.com> - 0.6.5-1
|
|
|
|
- Update to 0.6.5
|
|
|
|
|
2016-06-01 11:36:06 +00:00
|
|
|
* Wed Jun 01 2016 David King <amigadave@amigadave.com> - 0.6.4-1
|
|
|
|
- Update to 0.6.4
|
|
|
|
|
2016-05-31 15:31:48 +00:00
|
|
|
* Tue May 31 2016 David King <amigadave@amigadave.com> - 0.6.3-1
|
|
|
|
- Update to 0.6.3
|
|
|
|
- Move bwrap to main package
|
|
|
|
|
2016-05-26 14:54:12 +00:00
|
|
|
* Tue May 24 2016 David King <amigadave@amigadave.com> - 0.6.2-1
|
|
|
|
- Rename from xdg-app to flatpak (#1337434)
|