Asterisk 16.11.1 SRPM spec file has a syntax error(?)

I was trying to build Asterisk 16.11.1 from the SRPM and the usual procedure I’m following to compile asterisk and build an RPM is throwing an error trying to parse the spec file.

[[email protected] SPECS]# rpmbuild -ba asterisk16.spec

error: line 91: Dependency tokens must begin with alpha-numeric, '_' or '/': Requires: %{pkg_name}-core = 16.11.1-1.el7.sangoma

It appears that the asterisk16.spec file has a mistake in it. The spec file in the SRPM 16.11.1 file has the entry on line 7:

Name: %{pkg_name}

when, based on older spec files, it was:

Name: asterisk16

Changing the Name to asterisk16 seems to allow 16.11.1 to compile…or did something else change and I’m just building asterisk the wrong way now?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.