[bt-devel] SPEC file question

Joachim Ansorg bt-devel@crosswire.org
Wed, 18 Jul 2001 11:35:23 +0200


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