summaryrefslogtreecommitdiff
path: root/ci/fedora.sh
blob: 314635b9ce353eb89dc8d00637b719b53fc8bffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# Copyright (c) 2019-2021 Petr Vorel <petr.vorel@gmail.com>
set -ex

yum -y install \
	clang \
	docbook5-style-xsl \
	gcc \
	gettext \
	iproute \
	libcap-devel \
	libxslt \
	make \
	pkg-config

if [ "$(basename $0)" = "centos.sh" ] || [ "$(basename $0)" = "rockylinux.sh" ]; then
	# CentOS Linux 7: libidn2-devel, meson, ninja-build are provided by EPEL
	yum -y install epel-release

	# Enable CRB (formerly PowerTools) on CentOS/RHEL/Rocky >= 8 via EPEL
	# CentOS/RHEL/Rocky >= 8: meson and ninja-build are provided by CRB
	if [ "$DISTRO_VERSION" != 7 ]; then
		# Update epel-release because CentOS Stream 9 ships 9-2.el9,
		# which is unfortunately too old to provide the crb command.
		dnf -y install 'dnf-command(config-manager)' epel-release
		crb enable
	fi
fi

yum -y install libidn2-devel meson ninja-build