[packages/adapter: 528/631] - more fedoraish

glen glen at pld-linux.org
Mon Sep 12 20:18:42 CEST 2016


commit a6490001c1b3bf445cd76174dac325b117ef2686
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Aug 13 06:21:11 2011 +0000

    - more fedoraish
    
    Changed files:
        adapter.awk -> 1.497

 adapter.awk | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 3ef9d0b..095fee7 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -637,6 +637,16 @@ function b_makekey(a, b,	s) {
 	# fedora extras macros
 	sub("%__chkconfig", "/sbin/chkconfig");
 
+	sub("update-desktop-database &> /dev/null \\|\\| :", "%update_desktop_database");
+	sub("touch --no-create %{_datadir}/icons/hicolor", "%update_icon_cache_post hicolor");
+	sub("if \\[ -x %{_bindir}/gtk-update-icon-cache \\]; then\n\t%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor \|\| :\nfi", "");
+
+	sub("export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`", "")
+	if (/gconftool-2 --makefile-install-rule/) {
+		sub("gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/", "%gconf_schema_install ")
+		sub(".schemas > /dev/null", "");
+	}
+
 	use_macros()
 }
 /^%preun/, (!/^%preun/ && $0 ~ SECTIONS) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list