On 04/09/07, Marcus Rueckert <[EMAIL PROTECTED]> wrote: > On 2007-09-04 16:49:05 +0200, Stanislav Brabec wrote: > > Marcus Rueckert wrote: > > > > > %if 0%{?suse_version} < 1030 > > > %define _prefix /opt/gnome > > > %endif > > > > Insufficient. If you want to use %configure, you have to redefine all > > used paths (_bindir, _datadir and so on). > > > > You also may use following trick: > > %define _prefix %(pkg-config --variable=prefix libgnome-2.0) > > %define _libdir %(pkg-config --variable=libdir libgnome-2.0) > > ... > > > > Instead of "libgnome-2.0" you can use package of your choice. Not all > > standard variables are defined in all packages. > > afaik all other variables are defined relative to _prefix. > so just changing _prefix should be sufficient no? > Yes; I've tried not overriding _libdir, etc. and it has no effect.
Depending on the files the package install, though, you might still have to redefine _sysconfdir : on openSUSE 10.2 and below it's /etc%{_prefix} rather than /etc . -- Michel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]