#!/bin/bash

set -ex


if [ "$RPM_PACKAGE_VERSION" = "3.0.3" ]; then
  # https://bugs.ruby-lang.org/issues/17836
  /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .clang --fuzz=0 < /usr/lib/rpm/clang/ruby-0001-Specify-c-to-emit-pch-with-clang-4423.patch
fi
