2016-06-15 12:03:45 +02:00
|
|
|
#
|
|
|
|
# spec file for package flatpak
|
|
|
|
#
|
2018-02-08 13:06:39 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-15 12:03:45 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-11-04 13:56:03 +01:00
|
|
|
|
2016-06-15 12:03:45 +02:00
|
|
|
%define libname libflatpak0
|
|
|
|
Name: flatpak
|
2018-02-15 15:12:49 +01:00
|
|
|
Version: 0.10.4
|
2016-06-15 12:03:45 +02:00
|
|
|
Release: 0
|
2017-09-08 22:32:45 +02:00
|
|
|
Summary: OSTree based application bundles management
|
2018-02-15 15:13:19 +01:00
|
|
|
License: LGPL-2.1+
|
2016-06-15 12:03:45 +02:00
|
|
|
Group: System/Packages
|
|
|
|
Url: https://flatpak.github.io/
|
2016-10-26 18:45:15 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2016-06-15 12:03:45 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2016-09-08 23:25:03 +02:00
|
|
|
BuildRequires: gtk-doc
|
2016-06-15 12:03:45 +02:00
|
|
|
BuildRequires: intltool >= 0.35.0
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libdwarf-devel
|
2017-08-31 09:43:28 +02:00
|
|
|
BuildRequires: libqgpgme-devel >= 1.1.8
|
2016-06-15 12:03:45 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xsltproc
|
2017-12-02 17:25:13 +01:00
|
|
|
BuildRequires: pkgconfig(appstream-glib)
|
2016-06-15 12:03:45 +02:00
|
|
|
BuildRequires: pkgconfig(fuse)
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2017-03-23 19:21:55 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.44
|
2016-06-15 12:03:45 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.40.0
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-no-export-1.0) >= 1.40.0
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2016-09-08 23:25:03 +02:00
|
|
|
BuildRequires: pkgconfig(libarchive) >= 2.8.0
|
|
|
|
BuildRequires: pkgconfig(libelf) >= 0.8.12
|
2016-06-15 12:03:45 +02:00
|
|
|
BuildRequires: pkgconfig(libseccomp)
|
|
|
|
BuildRequires: pkgconfig(libsoup-2.4)
|
2017-12-22 14:18:27 +01:00
|
|
|
BuildRequires: pkgconfig(ostree-1) >= 2017.14
|
2016-06-15 12:03:45 +02:00
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1)
|
|
|
|
BuildRequires: pkgconfig(xau)
|
2017-12-22 14:18:27 +01:00
|
|
|
Requires: ostree >= 2017.14
|
2017-08-31 09:43:28 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2016-06-15 12:03:45 +02:00
|
|
|
# Remove after openSUSE Leap 42 is out of scope
|
|
|
|
Provides: xdg-app = %{version}
|
2016-10-22 12:59:13 +02:00
|
|
|
Obsoletes: xdg-app < %{version}
|
2016-06-15 12:03:45 +02:00
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%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 -n %{libname}
|
2017-09-08 22:32:45 +02:00
|
|
|
Summary: OSTree based application bundle management library
|
2016-06-15 12:03:45 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
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 -n typelib-1_0-Flatpak-1_0
|
2017-09-08 22:32:45 +02:00
|
|
|
Summary: Introspection bindings for the flatpak library
|
2016-06-15 12:03:45 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Flatpak-1_0
|
|
|
|
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
|
2017-09-08 22:32:45 +02:00
|
|
|
Summary: Development files for the flatpak library
|
2016-06-15 12:03:45 +02:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
2016-11-04 13:56:03 +01:00
|
|
|
Requires: %{name} = %{version}
|
2016-06-15 12:03:45 +02:00
|
|
|
Requires: typelib-1_0-Flatpak-1_0 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
flatpak is a system for building, distributing and running sandboxed desktop
|
|
|
|
applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for
|
|
|
|
more information.
|
|
|
|
|
2016-09-08 23:25:03 +02:00
|
|
|
%lang_package
|
|
|
|
|
2016-06-15 12:03:45 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-09-08 23:25:03 +02:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2016-06-15 12:03:45 +02:00
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--with-dwarf-header=%{_includedir}/libdwarf \
|
2016-09-08 23:25:03 +02:00
|
|
|
--enable-gtk-doc \
|
2016-06-15 12:03:45 +02:00
|
|
|
--with-priv-mode=none
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
Accepting request 539882 from GNOME:Next
- Update to version 0.10.0:
+ Added the flatpak config option which can set the language
settings.
+ Fix issue where sometimes ld.so.conf were not generated.
+ /dev/mali0 is added to --device=dri.
+ Work around ostree static delta issues in some cases.
- Changes from version 0.9.99:
+ Requires ostree 2017.12 for important pull stability fix.
+ New libflatpak API: flatpak_dir_cleanup_undeployed_refs,
flatpak_installation_prune_local_repo,
flatpak_installation_remove_local_ref_sync,
flatpak_installation_cleanup_local_refs_sync.
+ build: FLATPAK_ID and FLATPAK_ARCH are now set in the
environment when building.
+ update: Don't fail the entire update if some remote fails to
update its metadata.
+ run: /.flatpak-info now lists exact commits and extensions in
use.
+ run: We now use a per-app ld.so.cache file whenn running. This
should speed things up, and allows ldconfig to report the
correct results.
+ The verbose mode was changed into two levels, use -vv to show
the more detailed info, which currently only contains the full
bubblewrap argument lists.
+ run: Some common problematic host environment variables are now
unset in the sandbox (PYTHONPATH, PERLLIB, PERL5LIB and
XCURSOR_PATH).
+ run: Fixed failure when a higher prio extensions depended on a
lower prio one.
+ run: The extension ld path order is now: app extensions, app,
OBS-URL: https://build.opensuse.org/request/show/539882
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/flatpak?expand=0&rev=32
2017-11-21 16:37:30 +01:00
|
|
|
%make_install
|
2016-06-15 12:03:45 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcflatpak-system-helper
|
|
|
|
|
2016-09-08 23:25:03 +02:00
|
|
|
# The system repo is not installed by the flatpak build system.
|
|
|
|
install -d %{buildroot}%{_localstatedir}/lib/flatpak
|
|
|
|
%find_lang %{name}
|
|
|
|
|
2016-06-15 12:03:45 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%pre
|
|
|
|
%service_add_pre flatpak-system-helper.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun flatpak-system-helper.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post flatpak-system-helper.service
|
2016-09-08 23:25:03 +02:00
|
|
|
# Create an (empty) system-wide repo.
|
|
|
|
flatpak remote-list --system > /dev/null 2>&1
|
2016-06-15 12:03:45 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun flatpak-system-helper.service
|
|
|
|
|
2016-09-08 23:25:03 +02:00
|
|
|
%files -f %{name}.lang
|
2016-10-26 18:31:12 +02:00
|
|
|
%doc COPYING
|
2016-06-15 12:03:45 +02:00
|
|
|
%{_bindir}/flatpak
|
Accepting request 539882 from GNOME:Next
- Update to version 0.10.0:
+ Added the flatpak config option which can set the language
settings.
+ Fix issue where sometimes ld.so.conf were not generated.
+ /dev/mali0 is added to --device=dri.
+ Work around ostree static delta issues in some cases.
- Changes from version 0.9.99:
+ Requires ostree 2017.12 for important pull stability fix.
+ New libflatpak API: flatpak_dir_cleanup_undeployed_refs,
flatpak_installation_prune_local_repo,
flatpak_installation_remove_local_ref_sync,
flatpak_installation_cleanup_local_refs_sync.
+ build: FLATPAK_ID and FLATPAK_ARCH are now set in the
environment when building.
+ update: Don't fail the entire update if some remote fails to
update its metadata.
+ run: /.flatpak-info now lists exact commits and extensions in
use.
+ run: We now use a per-app ld.so.cache file whenn running. This
should speed things up, and allows ldconfig to report the
correct results.
+ The verbose mode was changed into two levels, use -vv to show
the more detailed info, which currently only contains the full
bubblewrap argument lists.
+ run: Some common problematic host environment variables are now
unset in the sandbox (PYTHONPATH, PERLLIB, PERL5LIB and
XCURSOR_PATH).
+ run: Fixed failure when a higher prio extensions depended on a
lower prio one.
+ run: The extension ld path order is now: app extensions, app,
OBS-URL: https://build.opensuse.org/request/show/539882
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/flatpak?expand=0&rev=32
2017-11-21 16:37:30 +01:00
|
|
|
%{_bindir}/flatpak-bisect
|
2016-06-15 12:03:45 +02:00
|
|
|
%{_libexecdir}/flatpak-bwrap
|
|
|
|
%{_libexecdir}/flatpak-dbus-proxy
|
|
|
|
%{_libexecdir}/flatpak-session-helper
|
|
|
|
%{_libexecdir}/flatpak-system-helper
|
|
|
|
%{_libexecdir}/xdg-document-portal
|
|
|
|
%{_libexecdir}/xdg-permission-store
|
|
|
|
%{_datadir}/bash-completion/completions/flatpak
|
|
|
|
# # Own dirs so we don't have to depend on dbus for building.
|
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%dir %{_datadir}/dbus-1/interfaces
|
|
|
|
%dir %{_datadir}/dbus-1/services
|
|
|
|
%{_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
|
|
|
|
# policykit rules
|
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy
|
|
|
|
%{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules
|
|
|
|
%{_mandir}/man1/%{name}*.1%{ext_man}
|
2016-09-08 23:25:03 +02:00
|
|
|
%{_mandir}/man5/flatpak-metadata.5%{ext_man}
|
2016-10-22 12:59:13 +02:00
|
|
|
%{_mandir}/man5/flatpak-flatpakref.5%{ext_man}
|
|
|
|
%{_mandir}/man5/flatpak-flatpakrepo.5%{ext_man}
|
2017-08-31 09:43:28 +02:00
|
|
|
%{_mandir}/man5/flatpak-installation.5%{ext_man}
|
|
|
|
%{_mandir}/man5/flatpak-remote.5%{ext_man}
|
2016-06-15 12:03:45 +02:00
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
|
|
|
|
%{_sysconfdir}/profile.d/flatpak.sh
|
|
|
|
# Own dirs so we don't have to depend on gdm for building.
|
|
|
|
%dir %{_datadir}/gdm/
|
|
|
|
%dir %{_datadir}/gdm/env.d/
|
|
|
|
%{_datadir}/gdm/env.d/flatpak.env
|
|
|
|
%{_unitdir}/flatpak-system-helper.service
|
|
|
|
%{_sbindir}/rcflatpak-system-helper
|
|
|
|
%{_userunitdir}/flatpak-session-helper.service
|
|
|
|
%{_userunitdir}/xdg-document-portal.service
|
|
|
|
%{_userunitdir}/xdg-permission-store.service
|
2016-09-08 23:25:03 +02:00
|
|
|
%dir %{_localstatedir}/lib/flatpak
|
|
|
|
%dir %{_userunitdir}
|
|
|
|
%dir %{_userunitdir}/dbus.service.d
|
|
|
|
%{_userunitdir}/dbus.service.d/flatpak.conf
|
2016-06-15 12:03:45 +02:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libflatpak.so.*
|
|
|
|
|
|
|
|
%files -n typelib-1_0-Flatpak-1_0
|
|
|
|
%{_libdir}/girepository-1.0/Flatpak-1.0.typelib
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/pkgconfig/flatpak.pc
|
|
|
|
%{_datadir}/gtk-doc/
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/libflatpak.so
|
|
|
|
%{_datadir}/gir-1.0/Flatpak-1.0.gir
|
|
|
|
|
|
|
|
%changelog
|