Hi again,
I've got Koji to build rpms - but the task is still failing with the message
GenericError: Unable to complete build: release mismatch (build: 2, rpm: 2.el6)
The different build steps are giving different results. My .spec file contains
Release: %{release}%{?dist}
and my build and srpm-build groups both contain redhat-release, which resolves to centos-release-6-2.el6.centos.7.x86_64 and contains /etc/rpm/macros.dist to set "%dist .el6".
However buildSRPMFromSCM results in
Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/mypackage-1.0-2.src.rpm
while buildArch also builds a srpm before the binary rpm:
Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/mypackage-1.0-2.el6.src.rpm
Building target platforms: noarch Building for target noarch ... Wrote: /builddir/build/RPMS/slspkg-1.0-2.el6.noarch.rpm
My Koji hub lists the build as "mypackage-1.0-2". If I get buildSRPMFromSCM to use the dist macro, will the Koji hub pick up the right name? How do I get buildSRPMFromSCM to do that?
Moray. "To err is human; to purr, feline."
buildsys@lists.fedoraproject.org