Thanks for the feedback. It turns out I needed to make some additional changes as well. I can mock build the following on f27. srpm: https://zmrepo.zoneminder.com/f/testing/27/SRPMS/zoneminder-1.30.4-2.fc27.src.rpm specfile: https://gist.githubusercontent.com/knnniggett/8f148fc1dd5b9f8e4ae604d0de60ca09/raw/c6ae7200da2281cf1458a2655cf81b84fc389f2f/zoneminder.spec patch0: https://gist.githubusercontent.com/knnniggett/8f148fc1dd5b9f8e4ae604d0de60ca09/raw/c6ae7200da2281cf1458a2655cf81b84fc389f2f/zoneminder-ftbsf27.patch patch1: https://gist.githubusercontent.com/knnniggett/8f148fc1dd5b9f8e4ae604d0de60ca09/raw/c6ae7200da2281cf1458a2655cf81b84fc389f2f/zoneminder-distropatternmatch.patch Patches are based on merged upstream changes from the current master branch.