On Wed, Mar 11, 2015 at 10:23:07AM +0100, Niki Kovacs wrote: > > Le 11/03/2015 09:40, Niki Kovacs a écrit : > >Unfortunately when I insert the correct version in the spec file, I get > >this: > > > >$ rpmbuild -ba --clean squidanalyzer.spec > >error: line 5: Illegal char '-' in: Version: 6.2-1 > > I'll answer that myself, since I just found the culprit. There's a version > mismatch between the tarball and the extracted source directory. Simply > renaming the tarball to version 6.2 fixed it. Also, you can't use a - in the Version tag in the rpm spec file. A mismatch between the tarball name and the extracted source directory would be a different error. -- Jonathan Billings <billings at negate.org>