diff --git a/packaging/rules/debian/rules b/packaging/rules/debian/rules
index 46b0f2436d2ea7307f35c39cafae81be60cf1ab6..95291a80793b8ab72b4afa7eec97ebac7d6b154f 100755
--- a/packaging/rules/debian/rules
+++ b/packaging/rules/debian/rules
@@ -73,6 +73,7 @@ override_dh_auto_configure:
 		cmake \
 			-DCMAKE_INSTALL_PREFIX=/usr \
 			-DLibRingClient_PROJECT_DIR=/$(CURDIR)/lrc \
+			-DGSETTINGS_LOCALCOMPILE=OFF \
 			..
 
 	dh_auto_configure
diff --git a/packaging/rules/fedora/ring.spec b/packaging/rules/fedora/ring.spec
index c703611060106e15513b4278b3f5572d29abd250..f8c05054c2b2d22aaa163d4657c3a9ccd93b0e52 100644
--- a/packaging/rules/fedora/ring.spec
+++ b/packaging/rules/fedora/ring.spec
@@ -133,6 +133,7 @@ cd %{_builddir}/ring-project/client-gnome && \
         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
         -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
         -DLibRingClient_PROJECT_DIR=%{_builddir}/ring-project/lrc \
+        -DGSETTINGS_LOCALCOMPILE=OFF \
         ..
 
 #######################
@@ -202,6 +203,21 @@ DESTDIR=%{buildroot} make -C client-gnome/build install
 
 %post -p /sbin/ldconfig
 
-%postun -p /sbin/ldconfig
+%postun
+-p /sbin/ldconfig
+
+#for < f24 we have to update the schema explicitly
+%if 0%{?fedora} < 24
+    if [ $1 -eq 0 ] ; then
+        /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+    fi
+%endif
+
+%posttrans
+#for < f24 we have to update the schema explicitly
+%if 0%{?fedora} < 24
+    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+%endif
+
 
 %changelog