Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • how to change warfile name after the build process ignoring SPEC file warfile name?

    Posted on

    I was looking for an answer whether we can change the warfile name to a desired name before RPM installation ( After the build process has been done and RPMs have been created )? For example; I have a spec file which has 'warfile name" defined as "Internal-custom.war" ( This will come from a source URL ). After the build completes. I have a RPM with a NVR " custom_project_internal_custom_********" . Then I install this RPM to my system and when I check it gets installed as "Internal-custom.war" . However, I want this to be installed as just "custom.war" instead of "Internal-custom.war" . I know I can only change this on spec file but I want to keep warfile name on SPEC file as "Internal-custom.war" but install as just "custom.war". This is due to a requirement on my system that it has to appear as "custom.war" .Is this possible?

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat