[SCIM] skim: rpm and German manual for SuSE Linux 9.1

Jan Hefti j.hefti at hamburg.de
Mon Aug 23 09:08:30 PDT 2004


Hi Cougar,

>>I changed it a little, so now it honors the --prefix switch from
>>../configure. Unfortunately, I could not make it honor --exec-prefix,
>>etc., since make converts those to strings that contain shell variables
>>(like ${prefix}), which are not permitted e.g. in the %files section of
>>the spec file.
>>    
>>
>Thanks.
>But I do think that if your use
>%configure
>rather than ./configure
>I think it would honor the prefix (and other parameters)
>Of course, I have no environment to test. Only FYI
>(scim use only %configure, so you may want to give it a try)
>  
>
(Please correct me if I am wrong.)
I think %configure honors the system-wide configuration, not the values 
passed on to the ./configure script used to create the Makefile. That is 
ok for scim and scim-chinese because they are expected to be installed 
under the usual program paths (i.e. /usr/... on SuSE Linux). But skim is 
a KDE program, and SuSE expects all KDE programs to be installed in 
/opt/kde3. Unfortunately, rpmbuild does not distinguish between KDE, 
Gnome and other programs, so we have to set the correct paths ourselves. 
There are certainly solutions that look much more elegant than mine, but 
mine works for SuSE (and should work for other distros as well, as long 
as ./configure is called with the correct --prefix if necessary), while 
using %configure (without other modifications) in the .spec file does not.

That is why I added the rather awkward looking header (%define ...) to 
your .spec file, and used ./configure instead of %configure.

Best regards,
Jan



More information about the scim mailing list