]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - macros.ghc
- split macros into language/feature specific files
[packages/rpm-build-macros.git] / macros.ghc
diff --git a/macros.ghc b/macros.ghc
new file mode 100644 (file)
index 0000000..5842cf8
--- /dev/null
@@ -0,0 +1,13 @@
+# 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
+#
+%ghc_pkg_recache() {{ \
+       umask 022; \
+       [ ! -x /usr/bin/ghc-pkg ] || /usr/bin/ghc-pkg recache; \
+};} \
+%{nil}
This page took 0.071378 seconds and 4 git commands to generate.