#!/usr/bin/bash

set -ex

# https://github.com/xdp-project/xdp-tools/commit/3b4d6453b355cf98c20b4b07fa4c91b736b4e47b
if [ "$RPM_PACKAGE_VERSION" = 1.3.0 ]; then
  /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .clang --fuzz=0 < /usr/lib/rpm/clang/xdp-tools-0001-Link-with-lm-to-fix-build-on-arm-mips-risc-ppc.patch
fi

