Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 03-01-2006, 03:54 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
Unhappy 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 :

%{?rh9:%define _without_tcltk_devel 1}

then later on :

%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...

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 !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with rpmbuild and template.spec file abefroman Linux - Software 0 11-27-2005 01:18 AM
%file attribute for RPM SPEC files Brian of Gep Fedora 0 06-15-2004 08:12 PM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 11:36 PM
Patches for .spec file linuxdev Linux - Newbie 5 02-12-2004 02:32 PM
where to get a recent spec file to build rpms for kde3.1.4? mmodem Mandriva 0 11-15-2003 10:09 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration