$ git clone https://src.fedoraproject.org/rpms/rust-fedora-coreos-pinger.git
$ cd rust-fedora-coreos-pinger && mkdir output
Then cargo package
from the pinger repo and grab the .crate
file into /rust-fedora-coreos-pinger
.
Modify the spec file with correct version (attached below).
Create a Dockerfile which has the following:
FROM fedora:rawhide
WORKDIR /rpm
COPY . .
RUN dnf install -y rpmdevtools fedpkg dnf-plugins-core && \
spectool -g rust-fedora-coreos-pinger.spec && \
dnf -y builddep rust-fedora-coreos-pinger.spec
RUN fedpkg local; \
dnf builddep -y *.nosrc.rpm; \
fedpkg local; \
exit 0
CMD yes | cp -r rust-fedora-coreos-pinger-0.0.5-2.fc32* ./output/ && \
yes | cp -r x86_64/ ./output/
Replace the rust-fedora-coreos-pinger-0.0.5-2.fc32
with the corresponding output version.
$ podman run --rm -d --privileged -v ./output:/rpm/output --name rpm-container localhost/rpm-container
Copy the /output/x86
to overrides/rpm/
under FCOS directory and run cosa build
.