Skip to content

RPM Packaging guidelines

Samuel VERSCHELDE edited this page May 2, 2019 · 8 revisions

TODO.

See https://xcp-ng.org/forum/topic/183/git-repository-structure-and-conventions-for-rpms until we've got something better.

Release tag

The Release tag versions the packaging itself (whereas the Version tag is the version of the software that we package).

Usually, any change warrants increasing the Release tag by one unit. However, for packages that initially come from XenServer and which we patch, we increment the release by less than one, using what is called "subrelease".

Example:

  • Initial release 3%{?dist}
  • Package is our own: increment to 4%{?dist}
  • Upstream for the source RPM is XenServer project, CentOS or other: increment to 3.1%{?dist} so that any upstream 4%{?dist} is still considered higher as ours.

About %{?dist}: our build system will replace this with .xcpng{VERSION}, so 3%{?dist} becomes 3.xcpng8.0 when built for XCP-ng 8.0.

XCP-ng's documentation has now moved to
https://xcp-ng.org/docs

Clone this wiki locally