[ghc/f16] move post and postun scripts to the compiler subpackage

Jens Petersen petersen at fedoraproject.org
Fri Nov 11 02:51:11 UTC 2011


commit 5d5a7a4054e7d7391053f384d9fb2b6db8332aa5
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Nov 11 11:50:35 2011 +0900

    move post and postun scripts to the compiler subpackage

 ghc.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index dfb268a..5338453 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -29,7 +29,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: 31.2%{?dist}
+Release: 31.3%{?dist}
 Summary: Glasgow Haskell Compiler
 # fedora ghc has been bootstrapped on the following archs:
 #ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 armv7hl
@@ -53,6 +53,7 @@ Obsoletes: ghc-dph-prim-par < 0.5, ghc-dph-prim-par-devel < 0.5, ghc-dph-prim-pa
 Obsoletes: ghc-dph-prim-seq < 0.5, ghc-dph-prim-seq-devel < 0.5, ghc-dph-prim-seq-prof < 0.5
 Obsoletes: ghc-dph-seq < 0.5, ghc-dph-seq-devel < 0.5, ghc-dph-seq-prof < 0.5
 Obsoletes: ghc-feldspar-language < 0.4, ghc-feldspar-language-devel < 0.4, ghc-feldspar-language-prof < 0.4
+# change to ghc-compiler once backported
 BuildRequires: ghc %{!?ghc_bootstrapping: = %{version}}
 BuildRequires: ghc-rpm-macros >= 0.14
 BuildRequires: gmp-devel, libffi-devel
@@ -323,7 +324,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:
 #
@@ -341,7 +342,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
@@ -400,6 +401,9 @@ fi
 %files libraries
 
 %changelog
+* Fri Nov 11 2011 Jens Petersen <petersen at redhat.com> - 7.0.4-31.3
+- the post and postun scripts are now for the compiler subpackage
+
 * Wed Nov  2 2011 Jens Petersen <petersen at redhat.com> - 7.0.4-31.2
 - rename ghc-devel metapackage to ghc-libraries
 - require ghc-rpm-macros-0.14


More information about the scm-commits mailing list