[packages/granite] disable gsettings and icon update at packaging time, do it at install time

glen glen at pld-linux.org
Wed Feb 6 23:28:29 CET 2013


commit 016f65308c8220ecea4fc05956ef75cd6c84fc0d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Feb 7 00:27:51 2013 +0200

    disable gsettings and icon update at packaging time, do it at install time

 granite.spec | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/granite.spec b/granite.spec
index 8191a0c..c060550 100644
--- a/granite.spec
+++ b/granite.spec
@@ -19,6 +19,9 @@ BuildRequires:	vala
 BuildRequires:	vala-libgee0.6
 BuildRequires:	which
 Requires:	%{name}-libs = %{version}-%{release}
+Requires:	glib2 >= 1:2.26.0
+Requires:	gtk-update-icon-cache
+Requires:	hicolor-icon-theme
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,7 +50,10 @@ This package contains the header files for libgranite.
 %build
 install -d build
 cd build
-%cmake ..
+%cmake \
+	-DGSETTINGS_COMPILE=OFF \
+	-DICON_UPDATE=OFF \
+	..
 %{__make}
 
 %install
@@ -70,6 +76,14 @@ rm -rf $RPM_BUILD_ROOT
 %post	libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
 
+%post
+%update_icon_cache hicolor
+%glib_compile_schemas
+
+%postun
+%update_icon_cache hicolor
+%glib_compile_schemas
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/granite.git/commitdiff/016f65308c8220ecea4fc05956ef75cd6c84fc0d



More information about the pld-cvs-commit mailing list