Skip to content

RPM Packaging

John Wass edited this page Oct 4, 2022 · 5 revisions

Packaging the fapolicy analyzer RPM

GitHub CI builds a SRPM first and then performs a rpmbuild --rebuild to produce the RPM, both are captured as artifacts in builds and releases.

Build from Rawhide container with Podman

make -f .copr/Makefile vendor
podman build -t fapolicy-analyzer:rawhide -f scripts/srpm/Containerfile.fc .
podman run --rm -it --network=none fapolicy-analyzer:rawhide

or from a RHEL container

make -f .copr/Makefile vendor
podman build -t fapolicy-analyzer:el -f scripts/srpm/Containerfile.el .
podman run --rm -it --network=none fapolicy-analyzer:el

Both examples produce a disconnected build using an unprivileged user.

Fedora Copr

RPMS for several platforms are also available from Copr

Copr build status

Guidelines

It is important to reference the guidelines here when packaging: