symbol Asset 1


CentOS 7

1. Retrieve the source


curl -LO
tar xzf v0.9.0.tar.gz
cd rnp-0.9.0


git clone
cd rnp
git checkout v0.9.0

2. Launch a container

docker run -ti --rm -v $PWD:/usr/local/rnp centos:7 bash

From this point, all commands are executed in the container.

3. Install pre-requisites

# for newer cmake and other things
yum -y install epel-release

# rnp
yum -y install git cmake3 make gcc-c++
yum -y install bzip2-devel zlib-devel json-c12-devel

# botan
rpm --import
rpm --import
curl -L > /etc/yum.repos.d/ribose.repo
yum -y install botan2-devel

4. Build the RPM

yum -y install rpm-build
mkdir ~/build
cd ~/build
make package

5. Check and Install the RPM

It may be helpful to run rpmlint on the RPM and note new warnings or errors.

yum -y install rpmlint
rpmlint rnp-0.9.0-1.el7.centos.x86_64.rpm

At this point, you can test that the RPM installs successfully:

yum localinstall rnp-0.9.0-1.el7.centos.x86_64.rpm