[CentOS] rpm building and hyphens in Version tags

Mon Jun 7 22:48:51 UTC 2010
JohnS <jses27 at gmail.com>

On Mon, 2010-06-07 at 22:20 +0000, Joseph L. Casale wrote:
> According to http://www.rpm.org/api/4.4.2.2/specfile.html a
> Version: tag can contain a hyphen, as the tarball for the source
> I am compiling is named 2.3-pre4 etc.
> 
> When I try to build it I get an error about the illegal char?
> 
> Anyone know about the discrepancy between the docs and RHEL's
> rpmbuild? Without recreating a new tarball and bungling the name
> how does one gracefully handle this?
> 
> Thanks!
> jlc
---
Ok Special Attention here:

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged
file(s): /usr/lib/rpm/check-files /var/tmp/inotify-tools-3.13-3.el5-root-ethan
Wrote: /home/ethan/rpmbuild/SRPMS/inotify-tools-3.13-3.el5.src.rpm
Wrote: /home/ethan/rpmbuild/RPMS/i386/inotify-tools-3.13-3.el5.i386.rpm
Wrote: /home/ethan/rpmbuild/RPMS/i386/inotify-tools-devel-3.13-3.el5.i386.rpm
Wrote: /home/ethan/rpmbuild/RPMS/i386/inotify-tools-debuginfo-3.13-3.el5.i386.rpm
############################################################################
inotify-tools/spec 
############################################################################
Name:           inotify-tools
Version:        3.13
Release:        3%{?dist}    ## Here is you wanted `-`... ##
Summary:        Command line utilities for inotify

Release: pre4%{?dist}

John