]> git.pld-linux.org Git - packages/rpm-pld-macros.git/blobdiff - rpm.macros
- 1.608 add %ghcdir
[packages/rpm-pld-macros.git] / rpm.macros
index 122559ce3ade10d96da6e3669de7a5b4768dbfc4..4709d0946178bfb4a27055bd3ef62db19ff12064 100644 (file)
@@ -2011,6 +2011,10 @@ else: \
                [ -f /etc/rc.d/init.d/%1 -o -f /etc/init/%1.conf ] && { echo -n "Re-"; /sbin/service %1 start; }; \
        fi
 
+# Haskell Macros
+# BuildRequires:  rpmbuild(macros) >= 1.608
+%ghcdir                ghc-%(/usr/bin/ghc --numeric-version 2>/dev/null || echo ERROR)
+
 # update /usr/lib*/ghc-*/package.conf.d/package.cache
 # Requires: ghc
 # BuildRequires:  rpmbuild(macros) >= 1.607
@@ -2021,5 +2025,4 @@ else: \
 };} \
 %{nil}
 
-
 # EOF
This page took 0.050151 seconds and 4 git commands to generate.