#1090 Define ModularityLabel RPM header
Merged 2 years ago by mprahl. Opened 2 years ago by psabata.
psabata/fm-orchestrator modularitylabel  into  master

Define ModularityLabel RPM header
Petr Šabata • 2 years ago  

@@ -339,6 +339,7 @@ 

          spec_content = """

  %global dist {disttag}

  %global disttag module({module_name}:{module_stream}:{module_version}:{module_context})

+ %global modularitylabel {module_name}:{module_stream}:{module_version}:{module_context}

  %global _module_name {module_name}

  %global _module_stream {module_stream}

  %global _module_version {module_version}

@@ -401,6 +402,7 @@ 


  %dist {disttag}

  %disttag module({module_name}:{module_stream}:{module_version}:{module_context})

+ %modularitylabel {module_name}:{module_stream}:{module_version}:{module_context}

  %_module_build 1

  %_module_name {module_name}

  %_module_stream {module_stream}

We intend to stop using the DistTag header and replace it with
ModularityLabel. Upstream RPM already supports it but it is not yet
available in Fedora.

Related Modularity ticket: https://pagure.io/modularity/issue/113

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1650286

For the time being, we need to keep both.

Signed-off-by: Petr Šabata contyk@redhat.com

Pull-Request has been merged by mprahl

2 years ago