monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] monit-5.0-beta1 spec file


From: Brian Candler
Subject: [monit-dev] monit-5.0-beta1 spec file
Date: Mon, 28 Apr 2008 12:20:23 +0100
User-agent: Mutt/1.5.11

I just tried to build monit-5.0-beta1 using its included monit.spec under
CentOS 4. It fails due to RPM version names not allowing hyphens:

  $ mach build monit.spec
  Building .src.rpm from monit.spec
  ERROR: Failed parsing spec file 'monit.spec' (return value 1).
  Output follows:
  error: line 3: Illegal char '-' in version: Version: 5.0-beta1

The attached patch fixes this by building 5.0_beta1 instead of 5.0-beta1. Of
course this won't be needed once the software is released :-)

But it also fixes the following errors:

  configure: error: monit requires flex, not lex
...
  checking for SSL include directory... Not found

  Couldn't find your SSL header files.
  Use --with-ssl-incl-dir option to fix this problem or disable
  the SSL support with --without-ssl
...
  + make
  yacc -dt p.y
  make: yacc: Command not found
  make: *** [y.tab.c] Error 127
  error: Bad exit status from /var/tmp/rpm-tmp.1667 (%build)

by adding explicit build dependencies on flex, bison and openssl-devel.
Building in a clean chroot environment is very good at finding these :-)

Regards,

Brian.

P.S. Aside: UPGRADE.txt doesn't mention the config file syntax changes from
4.10.1 to 5.0, although CHANGES.txt does.

UPGRADE.txt is also missing from the final RPM package. Perhaps this is
intentional, if it is obsolete. Or was it forgotten from %doc ?

Attachment: monit.spec.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]