#!/usr/bin/env bash

# Copyright 2018-2023 Istituto Nazionale di Fisica Nucleare
# SPDX-License-Identifier: EUPL-1.2

set -ex

dnf install -y epel-release
dnf update -y

dnf install -y --setopt=tsflags=nodocs \
    which \
    wget \
    sudo \
    file \
    git \
    gcc-c++ \
    gd-devel \
    gettext \
    ccache \
    libxslt-devel \
    lcov \
    perl-ExtUtils-Embed \
    perl-Digest-SHA \
    readline-devel \
    boost-devel \
    voms-devel \
    make \
    patch \
    zlib-devel \
    pcre2-devel \
    rpmdevtools \
    rpmlint \
    cpan \
    voms-clients-java