#!/usr/bin/bash

set -ex

# Fixed in 2.10.1
# https://gitlab.com/cjwatson/man-db/-/commit/f4f94402834f20b9da730aeca5daa465be38efdf
if [ "$RPM_PACKAGE_VERSION" = "2.10.0" ]; then
  /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .clang1 --fuzz=0 < /usr/lib/rpm/clang/man-db-0001-Revert-Reduce-indentation-depth-using-C99.patch
fi
