Skip to content
Snippets Groups Projects
Commit d6f588a2 authored by Stepan Salenikovich's avatar Stepan Salenikovich
Browse files

packaging: compile gsettings schema for f23

Starting f24 and later, the gsettings schema compilation is
automatically triggered when needed, but we need to explicitly do
it for earlier versions [0].

This patch also disables the gsettings schema local compilation so
that this is not done during 'make install' since the schema will
be compiled post install and it is also not needed locally.

[0] - https://fedoraproject.org/wiki/Packaging:Scriptlets?rd=Packaging:ScriptletSnippets#GSettings_Schema

Change-Id: I8b78c4d50e2208c29200f89d3947aa3117fbb6ab
Tuleap: #975
parent b524abf1
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ override_dh_auto_configure:
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLibRingClient_PROJECT_DIR=/$(CURDIR)/lrc \
-DGSETTINGS_LOCALCOMPILE=OFF \
..
dh_auto_configure
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment