[CentOS-devel] Building a package for RedHat
Mikolaj Izdebski
mizdebsk at redhat.com
Mon Mar 5 11:56:56 UTC 2018
On 03/05/2018 12:44 PM, dacav wrote:
> Hello Centos developers,
>
> My company would like to use Red-Hat/Centos as a target system for releasing
> (proprietary) software.
>
> In order to do this properly, I've constructed an infrastructure which
> allows to build those packages, wrapping mock and other tools. Such
> infrastructure uses a pool of Centos virtual machines for the building
> phase.
>
> A question that keeps popping in my mailbox is how to build those packages
> without the 'centos' suffix, as in:
>
> %{name}-%{version}.el7.centos.x86_64.rpm
>
> Some developers here find that `.centos` tag quite disturbing as
> we are supposed to release for Red Hat.
>
> I think the right thing to do here would be getting a (physical, licensed)
> Red Hat builder to do the job. But I'm not sure of what this would entail.
> For instance, is there a mock configuration to use for that? Would that be
> included in a Red Hat machine?
You can override dist tag in your mock config:
config_opts['macros']['%dist'] = '.el7'
--
Mikolaj Izdebski
Senior Software Engineer, Red Hat
IRC: mizdebsk
More information about the CentOS-devel
mailing list