FC4 spec file problem: %define doesn't work
hahaha_30k at yahoo.com
Sat Feb 18 09:18:14 UTC 2006
I found a strange problem with "%define" in .spec
file. my rpm version is 4.4.1-22.
The problem is: The defined value with '%define' can
not be refered -- see the mykver variable defined with
"%define" which trying to
represent kernel version like "26" or "24". But it
failed to be refered later and I had to comment
and directly put the expression in the "Release:"
I've seen a lot of '%define' in use in other .spec
files before, then what
is my problem?? Please help.
## failed to resolve Release with '%define' statement
%define mykver %(echo `/bin/uname -r | /bin/cut -c1-3
| /bin/sed -e 's/\.//g'`)
Summary: perforce - perforce binaries and helper
#Release: 3_example_%(echo `/bin/uname -r | /bin/cut
-c1-3 | /bin/sed -e 's/\.//g'`)
Vendor: Provided seperatedly by Perforce Company,
rolled together by Example company for easy
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the users