%patch -p1
%if_enabled flac
[ $(rpmvercmp %{get_version libflac-devel} 1.1.3) -lt 0 ] || subst 's/AM_PATH_LIBOGGFLAC/AM_PATH_LIBFLAC/' configure.ac
[ $(rpmvercmp %{get_version libflac-devel} 1.1.3) -lt 0 ] || sed -i 's/AM_PATH_LIBOGGFLAC/AM_PATH_LIBFLAC/' configure.ac
%endif
%if_enabled mad
# libmad.pc describes 'libmad', not 'mad'
%__subst 's/\[mad\]/[libmad]/' configure.ac
sed -i 's/\[mad\]/[libmad]/' configure.ac
-