a hand on guide could be found here.
more detailed ref is rpm-packaging-guide
for the v8-riscv/v8 project, things are a little different: the source code are cross-compiled, and we just tar the binary files.
Steps:¶
clone the v8-riscv project and cross compiled using riscv-gnu-toolchain. you get
d8
andsnapshot_blob.bin
.create folders and spec file like v8-riscv-fedora
put the
d8
and other new compiled files into the destination you want.check the spec file, update release notes if you like.
run
rpmbuild -bb d8.spec
in the v8-riscv-fedora folder. you nay needyum install rpmdevtools
to install rpm tools.
if you want publish¶
A good place is github release actions. you can download the rpm after the github Actions done.
Anyone could upload the rpm files to HTTP/FTP mirroring sites. You may need to create a sign-key to sign the files on the mirror site.