[mate-desktop] move schemas and locale to -libs subpackage

Wolfgang Ulbrich raveit65 at fedoraproject.org
Wed Aug 7 22:30:47 UTC 2013


commit 6edcab20b5c399d5e9f822debef6fc570ebd9953
Author: raveit65 <chat-to-me at raveit.de>
Date:   Thu Aug 8 00:30:33 2013 +0200

    move schemas and locale to -libs subpackage

 mate-desktop.spec |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/mate-desktop.spec b/mate-desktop.spec
index d3d7a1e..6dc173c 100644
--- a/mate-desktop.spec
+++ b/mate-desktop.spec
@@ -58,7 +58,6 @@ MATE user environment.
 %package libs
 Summary:   Shared libraries for libmate-desktop
 License:   LGPLv2+
-Requires:  %{name} = %{version}-%{release}
 
 %description libs
 Shared libraries for libmate-desktop
@@ -114,7 +113,15 @@ rm -f  %{buildroot}%{_datadir}/MateConf/gsettings/mate-desktop.convert
 
 
 %post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+
+%postun libs
+/sbin/ldconfig
+if [ $1 -eq 0 ] ; then
+    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+%posttrans libs
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %postun
 if [ $1 -eq 0 ] ; then
@@ -125,22 +132,22 @@ fi
 /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 
-%files -f %{name}.lang
+%files
 %doc AUTHORS COPYING COPYING.LIB NEWS README
 %{_bindir}/mate-about
 %{_datadir}/applications/mate-about.desktop
 %{_datadir}/mate
 %{_datadir}/omf/mate-desktop
 %{_datadir}/mate-about
-%{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
 %{_datadir}/glib-2.0/schemas/mate-fedora.gschema.override
 %{_mandir}/man1/*
 %doc %{_datadir}/gtk-doc/html/mate-desktop
 %{_datadir}/pixmaps/gnu-cat.gif
 %{_datadir}/pixmaps/gnu-cat_navideno_v3.png
 
-%files libs
+%files libs -f %{name}.lang
 %{_libdir}/libmate-desktop-2.so.*
+%{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
 
 %files devel
 %{_libdir}/libmate-desktop-2.so
@@ -150,6 +157,7 @@ fi
 
 %changelog
 * Wed Aug 07 2013 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.6.1-11
+- move schemas and locale to -libs subpackage to fix rhbz #988944
 
 * Sun Jul 28 2013 Dan Mashal <dan.mashal at fedoraproject.org> - 1.6.1-10
 - Undo obsolete consolekit RHBZ 989208


More information about the scm-commits mailing list