[bt-devel] SPEC file question

Martin Gruner bt-devel@crosswire.org
Wed, 18 Jul 2001 12:53:04 +0200


Let configure set the correct values using bibletime.spec.in.

Martin


> Brook,
> I'm working on a one-for-all SPEC file in the HEAD branch which uses the
> new configure options.
>
> My problem is that the different Linux distributions have different values
> for Prefix:
> How do I set Prefix: depending on the Linux system (SuSE/Mandrake ...)?
>
> I thought about something like
>
> if [ %{ostype} = "Mandrake" ] ; then
> 	Prefix: /usr
> elif [ %{ostype} = "SuSE" ] ; then
> 	Prefix: /opt/kde2
> fi
>
> but this doesn't work because (I think) scripting isn't allowed in the
> header of a SPEC file.
>
> Joachim