Bug 112931

Summary: uim: gtk2 specific stuff in %post and %postun should be moved to the proper sub-package
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Mike Fabian <mfabian>
Component: GNOMEAssignee: Mike Fabian <mfabian>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Mike Fabian 2005-08-25 10:30:09 UTC
uim: gtk2 specific stuff in %post and %postun should be moved to the
proper sub-package.

See also:

http://lists.suse.com/archive/m17n/2005-Aug/0030.html
http://lists.suse.com/archive/m17n/2005-Aug/0031.html
Comment 1 Mike Fabian 2005-08-25 10:41:41 UTC
Package with the following fix submitted to STABLE, should show up in Beta4:

++++++ uim.spec ++++++
--- /var/tmp/diff_new_pack.a12597/_old	2005-08-25 12:40:49.000000000 +0200
+++ /var/tmp/diff_new_pack.a12597/_new	2005-08-25 12:40:49.000000000 +0200
@@ -138,16 +138,20 @@
 #[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
 
 %post
+%run_ldconfig
+
+%postun
+%run_ldconfig
+
+%post gtk2
 # trigger run of SuSEconfig.gtk2 to register/unregister this input module
 # by calling gtk-query-immodules-2.0:
 touch var/adm/SuSEconfig/run-gtk
-%run_ldconfig
 
-%postun
+%postun gtk2
 # trigger run of SuSEconfig.gtk2 to register/unregister this input module
 # by calling gtk-query-immodules-2.0:
 touch var/adm/SuSEconfig/run-gtk
-%run_ldconfig
 
 %files -n uim -f uim.lang
 %defattr(-, root, root)


Closing as FIXED.