Build platform specific RPM
I am automating the process of uploading SRPM. I want to build my packages for Fedora and CentOS. I will be generating SRPMs individually for Fedora and centOS to match up the RHEL platform. Is there a command line tool to switch off building for CentOS when Fedora SRPM is uploaded to COPR and vice versa?
When done manually, I'll be clearing the CentOS checkbox and select Fedora platform for Fedora generated SRPMs. Likewise for the other-way round.
I think, not sure as have not done it, you could add and if condition on the spec file that include the excludearch depending if Centos or Fedora