2 # BuildRequires: rpmbuild(macros) >= 1.608
3 %ghcdir ghc-%(/usr/bin/ghc --numeric-version 2>/dev/null || echo ERROR)
5 # update /usr/lib*/ghc-*/package.conf.d/package.cache
7 # BuildRequires: rpmbuild(macros) >= 1.607
9 %ghc_pkg_recache() {{ \
11 [ ! -x /usr/bin/ghc-pkg ] || /usr/bin/ghc-pkg recache; \