opensips-2.4.6-1.fc31 fails to build in F31 because recent rpm-build refuses Obsoletes: tags with a parentheses character: Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/opensips.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False BUILDSTDERR: warning: line 55: It's not recommended to have unversioned Obsoletes: Obsoletes: opensips-auth_diameter BUILDSTDERR: warning: line 56: It's not recommended to have unversioned Obsoletes: Obsoletes: opensips-event_datagram BUILDSTDERR: warning: line 57: It's not recommended to have unversioned Obsoletes: Obsoletes: opensips-mi_xmlrpc BUILDSTDERR: warning: line 58: It's not recommended to have unversioned Obsoletes: Obsoletes: opensips-xmlrpc BUILDSTDERR: warning: line 122: It's not recommended to have unversioned Obsoletes: Obsoletes: opensips-memcached BUILDSTDERR: warning: line 144: It's not recommended to have unversioned Obsoletes: Obsoletes: opensips-redis BUILDSTDERR: error: line 194: Illegal char ')' (0x29) in: Obsoletes:opensips-cpl-c(aarch-64) < 2.2.2-1 BUILDSTDERR: error: line 194: Only package names are allowed in Obsoletes: Obsoletes:opensips-cpl-c(aarch-64) < 2.2.2-1
I removed %{?_isa} from the Obsoletes and added a Provides without %{?_isa}. You should also correct the unversiones Obsoletes. They should carry a version constrain. That enables introducing them (revoking the obsoletence) later.