From f0dd277da1631154a61764daff9fd2bc65101fcb Mon Sep 17 00:00:00 2001 From: Marcos Mello Date: Wed, 26 Jun 2024 15:35:53 -0300 Subject: [PATCH] Add RPM build instructions --- BUILDING-RPM.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 46 insertions(+) create mode 100644 BUILDING-RPM.md diff --git a/BUILDING-RPM.md b/BUILDING-RPM.md new file mode 100644 index 0000000..8ccf551 --- /dev/null +++ b/BUILDING-RPM.md @@ -0,0 +1,44 @@ +# Building the RPM package + +## Install the Prerequisites + +### Fedora/Red Hat Enterprise Linux (RHEL) +``` +sudo dnf -y install git python3-scons gcc-c++ openssl-devel zlib-devel bzip2-devel systemd-devel rpm-build systemd-rpm-macros +``` + +On Red Hat Enterprise Linux (RHEL) 8 and clones, you need to enable the PowerTools repository with `dnf config-manager --set-enabled powertools`. On RHEL 9 and clones, enable the [EPEL repository](https://docs.fedoraproject.org/en-US/epel/) instead. + +### openSUSE +``` +sudo zypper -n in git scons gcc-c++ libopenssl-devel zlib-devel libbz2-devel systemd-devel rpm-build systemd-rpm-macros +``` + +## Get the code +``` +git clone https://github.com/cauldrondevelopmentllc/cbang +git clone https://github.com/foldingathome/fah-client-bastet +``` + +## Build the Folding@home Client +``` +export CBANG_HOME=$PWD/cbang +scons -C cbang +scons -C fah-client-bastet +scons -C fah-client-bastet package +``` + +## Install the package +The last build step builds the RPM package. Before installing this package it is recommend that you first uninstall any previous Folding@home client software. You can then install the package like this: + +### Fedora/Red Hat Enterprise Linux (RHEL) +``` +sudo dnf install ./fah-client-bastet/fah_client--1.x86_64.rpm +``` + +### openSUSE +``` +sudo zypper in ./fah-client-bastet/fah_client--1.x86_64.rpm +``` + +Where `` is the software version number. On openSUSE, ignore ("i") when `zypper` complains the package is not signed. diff --git a/README.md b/README.md index 6783105..599cc84 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ development purposes. # Quick Start for Debian Linux +(see the [BUILDING-RPM.md](BUILDING-RPM.md) file for instructions on how to build the RPM package) + ## Install the Prerequisites ``` sudo apt update