Marcus Rueckert 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).
My mistake. Most paths are really changes automatically.
> > 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.
Yes, you are nearly true. Most other variables are defined relative to
_prefix and correctly expanded even after changing it. Exceptions are:
sysconfdir and _localstatedir.
_libexecdir is prefixed to a bad value in all cases.
> so just changing _prefix should be sufficient no?
_prefix, _sysconfdir, _localstatedir and again _libexecdir.
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: [EMAIL PROTECTED]
Lihovarská 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]