LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-01-2006, 02:54 AM   #1
80n
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 :

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



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 !
 
  


Reply


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 12:18 AM
%file attribute for RPM SPEC files Brian of Gep Fedora 0 06-15-2004 07:12 PM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
Patches for .spec file linuxdev Linux - Newbie 5 02-12-2004 01:32 PM
where to get a recent spec file to build rpms for kde3.1.4? mmodem Mandriva 0 11-15-2003 09:09 PM


All times are GMT -5. The time now is 06:31 PM.

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