[bt-devel] SPEC file question

Joachim Ansorg bt-devel@crosswire.org
Wed, 18 Jul 2001 20:53:53 +0200


Yes, SUSE has /usr as value of %_prefix also, but KDE2 apps should got into 
/opt/kde2 that's why I have to change the Prefix: value.
I think the best way is configure.

Joachim

> Holger Schurig wrote:
> >O> I thought about something like
> >
> >>if [ %{ostype} = "Mandrake" ] ; then
> >>	Prefix: /usr
> >>elif [ %{ostype} = "SuSE" ] ; then
> >>	Prefix: /opt/kde2
> >>fi
> >
> >You you check /usr/lib/rpm/macros?
> >
> >For me (Red Hat 6.2) there is line
> >
> >%_prefix  /usr
>
> Thanks for the reply mandrake does the same. I wonder if suse is the
> same also?
>
> >in it (you have to access this with %{_prefix} inside the spec file).
> >And RPM's %if stuff is allowed in the header section. So you could
> >check for the %{_vendor} variable (for me it's 'redhat').
> >
> >
> >If not, then an "kde-config --prefix" with the *.spec.in file should do
> >the trick.