This repository has been archived by the owner on Oct 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Building RPMs
Aidan Kahrs edited this page Oct 15, 2017
·
11 revisions
- Packages that do not replace upstream Fedora version should install into /usr/local/bin or an appropriate directory in accordance with the FHS.
- Packages that do replace the upstream Fedora version should include a conflicts and an obsoletes statement for the Fedora package it replaces. All packages that replace upstream versions should be tested to ensure compatibility.
- Get sources
- Write spec file
- Create source tarball (naming of directories MUST match the spec file, usually packagename-version)
- Run
fedpkg --release [fedora release in the form f[number]] mockbuild
in the directory with the tarball and spec - Add the SRPM to the staging area, notify admin that package is ready
- Once admin notifies you that the package has been signed and the repo updated, download the new SRPM and add it to git
-
rpmdev-extract
existing SRPM and edit.- Also edit raw sources in git if applicable
- Add changed raw sources to git
- Edit specfile for new version and add changelog entry(alternatively use
rpmdev-bumpspec
) - Recreate source tarball
- Run
fedpkg --release [fedora release in the form f[number]] mockbuild
in the directory with the tarball and spec - Add the SRPM to the staging area, notify admin that package is ready
- Once admin notifies you that the package has been signed and the repo updated, download the new SRPM and add it to git
© CC-BY-SA 4.0 – 2018, RIT Linux Users Group