#!/usr/bin/bash

set -ex

# Workaround for missing FLT_ROUNDS implementation on s390x.
if echo "$RPM_PACKAGE_VERSION" | grep "^5.36"; then
    /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .clang --fuzz=0 < /usr/lib/rpm/clang/perl-Fix-fegetround-on-s390x-with-clang.patch
fi
