]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- 1.607: add %ghc_pkg_recache for haskell packages auto/th/rpm-build-macros-1_607-1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Feb 2011 10:44:03 +0000 (10:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build-macros.spec -> 1.289
    rpm.macros -> 1.607

rpm-build-macros.spec
rpm.macros

index 886fa04cee927100cebdafd7a2768b5ab834a16b..6d0a83f94f63b499e8c88d4bf4ee697ec1f7f4b2 100644 (file)
@@ -1,4 +1,4 @@
-%define                rpm_macros_rev  1.606
+%define                rpm_macros_rev  1.607
 %define                find_lang_rev   1.34
 Summary:       PLD Linux RPM build macros
 Summary(pl.UTF-8):     Makra do budowania pakietów RPM dla Linuksa PLD
index 5b816901c6a35700e64b8f41b4da0c131cb9fe0a..122559ce3ade10d96da6e3669de7a5b4768dbfc4 100644 (file)
@@ -986,6 +986,7 @@ fi \
 
 %py3_ocomp             %{__python3} -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])"
 
+
 # Hardlink binary identical .pyc and .pyo files
 %__spec_install_post_py_hardlink {\
 %{!?no_install_post_py_hardlink: __spec_install_post_py_hardlink() { \
@@ -2010,4 +2011,15 @@ else: \
                [ -f /etc/rc.d/init.d/%1 -o -f /etc/init/%1.conf ] && { echo -n "Re-"; /sbin/service %1 start; }; \
        fi
 
+# update /usr/lib*/ghc-*/package.conf.d/package.cache
+# Requires: ghc
+# BuildRequires:  rpmbuild(macros) >= 1.607
+#
+%ghc_pkg_recache () {{ \
+       umask 022; \
+       /usr/bin/ghc-pkg recache; \
+};} \
+%{nil}
+
+
 # EOF
This page took 0.048175 seconds and 4 git commands to generate.