[ghc] make the post and postun scripts now be for the compiler subpackage

Jens Petersen petersen at fedoraproject.org
Thu Nov 10 09:23:29 UTC 2011


commit ec9ab4a788b0ac8f2f334d45cb72dfb28f77b758
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Nov 10 18:23:09 2011 +0900

    make the post and postun scripts now be for the compiler subpackage

 ghc.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index 019877a..3076222 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -26,7 +26,7 @@ Version: 7.0.4
 # - release can only be reset if all library versions get bumped simultaneously
 #   (eg for a major release)
 # - minor release numbers should be incremented monotonically
-Release: 37%{?dist}
+Release: 38%{?dist}
 Summary: Glasgow Haskell Compiler
 # fedora ghc has been bootstrapped on the following archs:
 #ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 armv7hl
@@ -316,7 +316,7 @@ rm testghc/*
 make -C testsuite/tests/ghc-regress fast
 %endif
 
-%post
+%post compiler
 # Alas, GHC, Hugs, and nhc all come with different set of tools in
 # addition to a runFOO:
 #
@@ -334,7 +334,7 @@ update-alternatives --install %{_bindir}/runhaskell runhaskell \
 update-alternatives --install %{_bindir}/hsc2hs hsc2hs \
   %{_bindir}/hsc2hs-ghc 500
 
-%preun
+%preun compiler
 if [ "$1" = 0 ]; then
   update-alternatives --remove runhaskell %{_bindir}/runghc
   update-alternatives --remove hsc2hs     %{_bindir}/hsc2hs-ghc
@@ -393,6 +393,9 @@ fi
 %files libraries
 
 %changelog
+* Thu Nov 10 2011 Jens Petersen <petersen at redhat.com> - 7.0.4-38
+- the post and postun scripts are now for the compiler subpackage
+
 * Wed Nov  2 2011 Jens Petersen <petersen at redhat.com> - 7.0.4-37
 - rename ghc-devel metapackage to ghc-libraries
 - require ghc-rpm-macros-0.14


More information about the scm-commits mailing list