]> TLD Linux GIT Repositories - packages/rpm-tld-macros.git/blob - macros.ghc
- merged 2.029 from PLD
[packages/rpm-tld-macros.git] / macros.ghc
1 # Haskell Macros
2 # BuildRequires:        rpmbuild(macros) >= 1.608
3 %ghcdir         ghc-%(/usr/bin/ghc --numeric-version 2>/dev/null || echo ERROR)
4
5 # update /usr/lib*/ghc-*/package.conf.d/package.cache
6 # Requires: ghc
7 # BuildRequires:        rpmbuild(macros) >= 1.607
8 #
9 %ghc_pkg_recache() {{ \
10         umask 022; \
11         [ ! -x /usr/bin/ghc-pkg ] || /usr/bin/ghc-pkg recache; \
12 };} \
13 %{nil}