Marcin Zajączkowski wrote:
Patrice Dumas wrote:
> On Thu, Apr 19, 2007 at 10:26:06PM +0200, Marcin Zajączkowski wrote:
(...)
>> Whould you tell me, is there a better way to determine Fedora version than:
>> %if "fedora-release" > "6"
>> BuildRequires: libsmbclient-devel >= 3.0
>> %endif
> Normaly it is:
> %if "%fedora" > "6"
> BuildRequires: libsmbclient-devel >= 3.0
> %endif
I thought that too, but it's always false on my machine with FC5 (I
don't use mock), even if I write '%if "%fedora" >
"3"'.
In mock build there is '--define "fedora 7"'. I added similar macro to
my .rpmmacros (maybe it should defined out-of-box globally in Fedora?)
But I'm not sure why my version failed in mock (23 is a line with my "if"):
error: syntax error in expression
error: fuse-smb.spec:23: parseExpressionBoolean returns -1
error: Package has no %description: fuse-smb
error: query of specfile fuse-smb.spec failed, can't parse
error: syntax error in expression
error: fuse-smb.spec:23: parseExpressionBoolean returns -1
error: Package has no %description: fuse-smb
error: query of specfile fuse-smb.spec failed, can't parse
Any ideas?
Marcin