diff --git a/rules/netcdf4.json b/rules/netcdf4.json index f4859ad..72ba188 100644 --- a/rules/netcdf4.json +++ b/rules/netcdf4.json @@ -41,9 +41,9 @@ { "packages": ["netcdf-devel"], "pre_install": [ - { - "command": "dnf install -y epel-release" - } + { "command": "dnf install -y dnf-plugins-core" }, + { "command": "dnf config-manager --set-enabled powertools" }, + { "command": "dnf install -y epel-release" } ], "constraints": [ { @@ -53,7 +53,8 @@ }, { "os": "linux", - "distribution": "rockylinux" + "distribution": "rockylinux", + "versions": ["8"] } ] }, @@ -112,9 +113,8 @@ { "packages": ["netcdf-devel"], "pre_install": [ - { - "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" - } + { "command": "subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms" }, + { "command": "dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" } ], "constraints": [ {