Re: zmanda SRPM error

2008-08-14 Thread FM

Nope :)
Redhat enterprise 5.2 32 bits version

F



Dan Locks wrote:

FM wrote:

Hello,
I download the SRPM from zmanda site.

But when I am trying the rpmbuild -bb  SPECS/amanda.spec
error: parse error in expression
error: /home/users/lexum/mederyf/rpmbuild/SPECS/amanda.spec:77: 
parseExpressionBoolean returns -1

error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)


any idea ? :)

Regards
  
This happens when the conditional clauses in the spec file don't 
return an expected result.  Spec syntax does not allow for error 
handling, so we get weird stuff like this.  What 
Os/Distribution/Version are you trying to compile for?  My guess is 
that you're compiling for a new version of Fedora.  I haven't added 
the code to detect F9 yet, but I can send you a patch.  Keep in mind 
that you will be testing this patch for me :-)  (Don't worry, it would 
only affect the rpm stuff, not any of the Amanda code, so it's safe)


Dan





Re: zmanda SRPM error

2008-08-14 Thread Dustin J. Mitchell
On Thu, Aug 14, 2008 at 11:56 AM, FM [EMAIL PROTECTED] wrote:
 Redhat enterprise 5.2 32 bits version

(replying for dan, who's on a plane)

The .2 confuses the integer expression on line 77.  Since the
release, we haved changed to using expressions like this:

%if %(awk '$1 == Red  $7 ~ /5.*/ { exit 1; }'
/etc/redhat-release; echo $?)

You can edit the .spec file similarly.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: zmanda SRPM error

2008-08-12 Thread Dan Locks

FM wrote:

Hello,
I download the SRPM from zmanda site.

But when I am trying the rpmbuild -bb  SPECS/amanda.spec
error: parse error in expression
error: /home/users/lexum/mederyf/rpmbuild/SPECS/amanda.spec:77: 
parseExpressionBoolean returns -1

error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)


any idea ? :)

Regards
  
This happens when the conditional clauses in the spec file don't return 
an expected result.  Spec syntax does not allow for error handling, so 
we get weird stuff like this.  What Os/Distribution/Version are you 
trying to compile for?  My guess is that you're compiling for a new 
version of Fedora.  I haven't added the code to detect F9 yet, but I can 
send you a patch.  Keep in mind that you will be testing this patch for 
me :-)  (Don't worry, it would only affect the rpm stuff, not any of the 
Amanda code, so it's safe)


Dan