RPM Packaging
The repository includes a local RPM build script and spec file.
Build Requirements
Install rpm-build once on the build host:
sudo dnf install -y rpm-build
Build Command
Run from the project directory:
cd /path/to/cockpit-openshift
./build-rpm.sh
Expected output:
rpmbuild/RPMS/noarch/cockpit-openshift-*.noarch.rpm
rpmbuild/SRPMS/cockpit-openshift-*.src.rpm
Install Command
Install the built package from the project directory:
sudo dnf install -y ./rpmbuild/RPMS/noarch/cockpit-openshift-0.1.0-1.el10.noarch.rpm
The exact dist suffix depends on the build host.
Packaged Files
The RPM spec currently installs:
manifest.jsonindex.htmlcreate.htmloverview.htmlcockpit-openshift.jscluster-list.jscluster-overview.jscockpit-openshift.cssinstaller_backend.pyREADME.md
Install path:
/usr/share/cockpit/cockpit-openshift/
Packaging Source
| Path | Role |
|---|---|
build-rpm.sh | creates the source tarball and runs rpmbuild |
cockpit-openshift.spec | package metadata and install manifest |