You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2022/01/14 13:20:53 UTC

[daffodil] branch main updated: Add a "daffodil" alias to the RPM

This is an automated email from the ASF dual-hosted git repository.

slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new 6496d27  Add a "daffodil" alias to the RPM
6496d27 is described below

commit 6496d2727c79c4238925502915465d6c4b0484bf
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Mon Dec 27 08:57:31 2021 -0500

    Add a "daffodil" alias to the RPM
    
    The official name of the Daffodil RPM is "apache-daffodil", which means
    this intuitive command to install the RPM with dnf does not work:
    
        dnf install daffodil
    
    Instead you need to install using the full name:
    
        dnf install apache-daffodil
    
    To support both commands, adds a "Provides: daffodil" tag to the RPM
    build configuration, which essentially adds an alias so that users can
    dnf install either "daffodil" or "apache-daffodil".
    
    DAFFODIL-2613
---
 daffodil-cli/build.sbt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/daffodil-cli/build.sbt b/daffodil-cli/build.sbt
index 07ccee8..ca038e5 100644
--- a/daffodil-cli/build.sbt
+++ b/daffodil-cli/build.sbt
@@ -49,6 +49,9 @@ maintainer := "Apache Daffodil <de...@daffodil.apache.org>"
 //
 rpmVendor := "Apache Daffodil"
 
+// Add an alias so users can install either "apache-daffodil" or "daffodil" with dnf
+rpmProvides := Seq("daffodil = %{version}-%{release}")
+
 Rpm / packageArchitecture := "noarch"
 
 Rpm / packageSummary := "Open-source implementation of the Data Format Description Language (DFDL)"