LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   create RPMs : problem with spec file (http://www.linuxquestions.org/questions/red-hat-31/create-rpms-problem-with-spec-file-420532/)

80n 03-01-2006 02:54 AM

create RPMs : problem with spec file
 
Hello there; sorry it is a newbie question, but I am really stuck and
can't find the answer in the forums...

I try to use conditional dependancies (upon RH version) in a spec file
Ok so I have got a spec file which is going like this :

Code:

%{?rh9:%define _without_tcltk_devel 1}
...

then later on :

Code:

%package lpgc
Summary: TATCBP800
Group: Applications/Engineering
requires: gcc, make, tcl >= 8.3 , tclx >= 8.3 , gnat-3.15a1
%{!?_without_tcltk_devel:requires: tcl-devel >= 8.3}
%{!?_without_tcltk_devel:requires: tclx-devel >= 8.3}

The basic idea is I need tcl-devel and tclx-devel only if I use RH4 ...
and with RH9 I don't need it... but the problem is, when I try to install the RPM from RH9, rpm wants
the tcl-devel packages as well...

:scratch:

So I wonder : is the ?rh9:%... statement incorrect; Then, how should I do that (get the rh version)

or is there a problem in the conditional stuff ?

please, help ! :cry:


All times are GMT -5. The time now is 10:46 PM.