Skip to content

RPM parameters

Simon Paulger edited this page Mar 29, 2015 · 6 revisions

The plugin supports the specification, at a per package configuration level, the following RPM parameters.

    ...
    <configuration>
        ...
        <packages>
            <package>
                <name>my-project</name>
                <version>1.0</version>
                <release>1</release>
            
                <url>http://www.example.com</url>
                <group>Application/Productivity</group>
                <license>Apache 2.0</license>
                
                <summary>Summary of project</summary>
                <description>Description of project</description>
                
                <architecture>i386</architecture>
                </operatingSystem>linux</operatingSystem>
                
                <buildHostName>localhost</buildHostName>
                <packager>Simon</packager>
            
                ...
            </package>
        </packages>
    </configuration>

name

The name of the package. Defaults to the artifactId of the Maven project if not specified.

version

The version of the package. Defaults to the version of the Maven project if not specified.

release

The release of the package. Defaults to the current UNIX EPOCH if not specified. This allows repeated builds to upgrade previous builds even when the version number has not changed.

url

URL of the package. Defaults to the Maven project URL if not specified, or null if the Maven project URL is not specified.

group

Group of the package. Defaults to null if not specified. Many Linux distributions recommend a selection of group names to best categorise packages. Fedora Linux recommend these group names.

license

The license of the package. Defaults to licenses of the Maven project, with each license name separated by a comma.

summary

A summary of the package. Defaults to null if not specified.

description

A description of the package. Defaults to null if not specified.

architecture

Architecture of the package. This may be one of the following values (case insensitive):

  • noarch
  • i386
  • alpha
  • sparc
  • mips
  • ppc
  • m68k
  • ip
  • rs6000
  • ia64
  • sparc64
  • mipsel
  • arm
  • mk68kmint
  • s390
  • s390x
  • ppc64
  • sh
  • xtensa
  • x86_64

Defaults to noarch if not specified.

operating system

The target operating system of the package. This may be one of hte following values (case insensitive):

  • unknown
  • linux
  • irix
  • solaris
  • sunos
  • amigaos
  • aix
  • hpux10
  • osf1
  • freebsd
  • sco
  • irix64
  • nextstep
  • bsdi
  • machten
  • cygwinnt
  • cygwin95
  • unixsv
  • mint
  • os390
  • vmesa
  • linux390
  • macosx

The default value is linux if not specified.

build host name

The build hostname of the package. Defaults to the hostname of the system running the Maven build.

packager

The name of the individual/organisation building the package. Defaults to null if not specified.