diff --git a/_service b/_service
index df465bf..746fcdc 100644
--- a/_service
+++ b/_service
@@ -3,7 +3,7 @@
https://github.com/flatpak/flatpak.git
git
@PARENT_TAG@
- refs/tags/1.4.1
+ refs/tags/1.4.2
*.tar
diff --git a/_servicedata b/_servicedata
index 0dc2196..e833137 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,4 @@
https://github.com/flatpak/flatpak.git
- 2bfa0060b089a20de5fbf18d018f8f1b108d2480
+ f70978b4ad892cca6837153a3a1f7bc33ac347e8
diff --git a/flatpak-1.4.1.tar.xz b/flatpak-1.4.1.tar.xz
deleted file mode 100644
index b490392..0000000
--- a/flatpak-1.4.1.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:04027bcefebea169aa0d5b98d03cc502b1ad0cc03d362dbbaac509ab6b029ebc
-size 902828
diff --git a/flatpak-1.4.2.tar.xz b/flatpak-1.4.2.tar.xz
new file mode 100644
index 0000000..ddf5b1b
--- /dev/null
+++ b/flatpak-1.4.2.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6cbc17f74541d7286e6502028c672e04cc02c3ad4ba2cf8930536c83e0752659
+size 903084
diff --git a/flatpak.changes b/flatpak.changes
index b23fa0e..025967e 100644
--- a/flatpak.changes
+++ b/flatpak.changes
@@ -1,3 +1,25 @@
+-------------------------------------------------------------------
+Wed Jul 3 08:27:20 UTC 2019 - Antonio Larrosa
+
+- Update to version 1.4.2:
+ * Support extra_data in extensions.
+ * Handle double slashes ("//") in XDG_DATA_DIRS.
+ * Fix detection of local related refs.
+
+-------------------------------------------------------------------
+Thu Jun 14 09:33:16 UTC 2019 - Antonio Larrosa
+
+- Add a _dbusconfigdir variable in the spec file so we install the
+ flatpak-system-helper config file in a location actually read by
+ dbus, which didn't support having config files in /usr/share
+ until 1.9.18 (first introduced in SLE15).
+- Remove the systemd environment generator if building with
+ systemd < 233 which doesn't support environment generators.
+- Rename the libflapak-doc.xml file which has a typo in the name
+ upstream.
+- BuildRequire libgpgme-devel, not libqgpgme-devel which is not
+ really needed.
+
-------------------------------------------------------------------
Thu Jun 13 23:13:29 UTC 2019 - Bjørn Lie
diff --git a/flatpak.spec b/flatpak.spec
index 23e962a..3194701 100644
--- a/flatpak.spec
+++ b/flatpak.spec
@@ -16,9 +16,23 @@
#
+# dbus only used config files in /etc until 1.9.18
+%if %{pkg_vcmp dbus-1 < 1.9.18}
+%define _dbusconfigdir %{_sysconfdir}/dbus-1/system.d
+%else
+%define _dbusconfigdir %{_datadir}/dbus-1/system.d
+%endif
+
+# systemd only supports environment generators since version 233
+%if %{pkg_vcmp systemd < 233}
+%define support_environment_generators 0
+%else
+%define support_environment_generators 1
+%endif
+
%define libname libflatpak0
Name: flatpak
-Version: 1.4.1
+Version: 1.4.2
Release: 0
Summary: OSTree based application bundles management
License: LGPL-2.1-or-later
@@ -33,7 +47,7 @@ BuildRequires: gtk-doc
BuildRequires: intltool >= 0.35.0
BuildRequires: libcap-devel
BuildRequires: libdwarf-devel
-BuildRequires: libqgpgme-devel >= 1.1.8
+BuildRequires: libgpgme-devel >= 1.1.8
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: xsltproc
@@ -118,6 +132,9 @@ more information.
%patch0 -p1
sed -i -e '1s,#!%{_bindir}/env python3,#!%{_bindir}/python3,' scripts/flatpak-*
+# UPSTREAM: https://github.com/flatpak/flatpak/pull/2963
+mv doc/reference/libflapak-docs.xml doc/reference/libflatpak-docs.xml
+
%build
%define _lto_cflags %{nil}
NOCONFIGURE=1 ./autogen.sh
@@ -127,7 +144,7 @@ NOCONFIGURE=1 ./autogen.sh
--disable-document-portal \
--with-system-bubblewrap \
--with-priv-mode=none \
- --with-dbus-config-dir=%{_datadir}/dbus-1/system.d
+ --with-dbus-config-dir=%{_dbusconfigdir}
make %{?_smp_mflags}
%install
@@ -142,6 +159,10 @@ ln -s service %{buildroot}%{_sbindir}/rcflatpak-system-helper
# w/o password entry.
mv %{buildroot}/%{_datadir}/polkit-1/rules.d/{,60-}org.freedesktop.Flatpak.rules
+%if !%{support_environment_generators}
+rm -Rf %{buildroot}%{_libexecdir}/systemd/user-environment-generators/
+%endif
+
%find_lang %{name}
%post -n %{libname} -p /sbin/ldconfig
@@ -179,7 +200,7 @@ mv %{buildroot}/%{_datadir}/polkit-1/rules.d/{,60-}org.freedesktop.Flatpak.rules
%{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service
%{_datadir}/dbus-1/services/org.freedesktop.portal.Flatpak.service
%{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service
-%{_datadir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
+%{_dbusconfigdir}/org.freedesktop.Flatpak.SystemHelper.conf
# policykit rules
%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy
%{_datadir}/polkit-1/rules.d/60-org.freedesktop.Flatpak.rules
@@ -200,7 +221,9 @@ mv %{buildroot}/%{_datadir}/polkit-1/rules.d/{,60-}org.freedesktop.Flatpak.rules
%{_userunitdir}/flatpak-session-helper.service
%{_userunitdir}/flatpak-portal.service
%ghost %dir %{_localstatedir}/lib/flatpak
+%if %{support_environment_generators}
%{_libexecdir}/systemd/user-environment-generators/60-flatpak
+%endif
%files -n %{libname}
%{_libdir}/libflatpak.so.*