CentOS Stream 8: Build GNU Global

This article builds Fedora 31's src.rpm.

1 Enable EPEL repository and PowerTools repository

Enable EPEL repository.

sudo dnf install -y epel-release

Enable PowerTools repository.

sudo dnf config-manager --set-enabled powertools

2 Build GNU Global

#!/bin/sh -e

URL=https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31
URL=${URL}/Everything/source/tree/Packages/g/global-6.6.3-2.fc31.src.rpm

wget ${URL}
sudo dnf install -y make rpmdevtools
sudo dnf builddep -y global-6.6.3-2.fc31.src.rpm
rpmbuild --rebuild global-6.6.3-2.fc31.src.rpm