Add gsettings schema compilation scriptlets for subpackages where needed
This commit is contained in:
parent
ebadd7c9d0
commit
643e2c8669
@ -209,18 +209,35 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT/%{_libdir}/gedit/plugins -name "*.la" -exec rm {} \;
|
||||
|
||||
|
||||
%postun
|
||||
%check
|
||||
[ -f ${RPM_BUILD_ROOT}%{_libdir}/gedit/plugins/terminal.py ]
|
||||
|
||||
|
||||
%postun -n gedit-plugin-drawspaces
|
||||
if [ $1 -eq 0 ]; then
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
||||
fi
|
||||
|
||||
|
||||
%posttrans
|
||||
%posttrans -n gedit-plugin-drawspaces
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
||||
|
||||
|
||||
%check
|
||||
[ -f ${RPM_BUILD_ROOT}%{_libdir}/gedit/plugins/terminal.py ]
|
||||
%postun -n gedit-plugin-terminal
|
||||
if [ $1 -eq 0 ]; then
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans -n gedit-plugin-terminal
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
||||
|
||||
|
||||
%postun -n gedit-plugin-wordcompletion
|
||||
if [ $1 -eq 0 ]; then
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans -n gedit-plugin-wordcompletion
|
||||
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
|
||||
|
||||
|
||||
# Empty files section for the metapackage to make sure it's created
|
||||
|
Loading…
Reference in New Issue
Block a user