Bug 1075690

Summary: fix to pass mock build on imsettings when GConf2 is not installed
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: imsettingsAssignee: Akira TAGOH <tagoh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: i18n-bugs, tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-13 12:16:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1051573    

Description Menanteau Guy 2014-03-12 15:24:43 UTC
Description of problem: imseetings build failed with following error:
error: Installed (but unpackaged) file(s) found:
   /usr/lib64/imsettings/libimsettings-gconf.so

This happens when GConf2 is not installed

Version-Release number is imsettings-1.6.7

check you don't have GConf2 installed and run a build command like
rpmbuild -ba ...


For info, I bypassed the problem by changing the spec file like:
--- imsettings.spec.ori
+++ imsettings.spec
@@ -30,6 +30,11 @@ Requires:    %{name}-desktop-module%{?_isa}
 Requires(post):        /bin/dbus-send %{_sbindir}/alternatives
 Requires(postun):      /bin/dbus-send %{_sbindir}/alternatives

+# Detect gconf installation
+%if %(test -f /usr/lib64/pkgconfig/gconf-2.0.pc && echo 1 || echo 0)
+%define GConf 1
+%endif
+
 %description
 IMSettings is a framework that delivers Input Method
 settings and applies the changes so they take effect
@@ -267,6 +272,9 @@ fi
 %files libs
 %doc AUTHORS COPYING ChangeLog NEWS README
 %{_libdir}/libimsettings.so.*
+%if %{defined GConf}
+%{_libdir}/imsettings/libimsettings-gconf.so
+%endif

 %files devel
 %doc AUTHORS COPYING ChangeLog NEWS README

Comment 1 Akira TAGOH 2014-03-13 12:16:11 UTC
fixed in 1.6.7-2.fc21