Skip to content

Commit

Permalink
Add RPM build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosfrm committed Jun 26, 2024
1 parent 5c16e77 commit afd2659
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions BUILDING-RPM.md
Original file line number Diff line number Diff line change
@@ -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 first 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-<version>-1.x86_64.rpm
```

### openSUSE
```
sudo zypper in ./fah-client-bastet/fah_client-<version>-1.x86_64.rpm
```

Where `<version>` is the software version number. On openSUSE, ignore ("i") when `zypper` complains the package is not signed.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afd2659

Please sign in to comment.