[haskell-platform] expand %ghc_devel_post_postun haskell-platform

Jens Petersen petersen at fedoraproject.org
Mon Jun 17 07:24:20 UTC 2013


commit 004b3351e58368a3715b776f2c026e027815d862
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Jun 17 16:23:59 2013 +0900

    expand %ghc_devel_post_postun haskell-platform

 haskell-platform.spec |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/haskell-platform.spec b/haskell-platform.spec
index 9fd70a3..73363d6 100644
--- a/haskell-platform.spec
+++ b/haskell-platform.spec
@@ -292,18 +292,20 @@ fi
 mv %{buildroot}%{_datadir}/HUnit-*/* %{buildroot}%{_docdir}/ghc-HUnit-*/
 
 
-%ghc_devel_post_postun haskell-platform
+%post -n ghc-haskell-platform-devel
+%ghc_pkg_recache
+
+
+%postun -n ghc-haskell-platform-devel
+%ghc_pkg_recache
 
 
 %files
 %doc packages/%{name}-%{version}/LICENSE
 
 
-# protect for koji
-%if %{defined ghc_devel_files}
 %files -n ghc-haskell-platform-devel -f ghc-haskell-platform-devel.files
 %doc packages/haskell-platform-%{version}/LICENSE
-%endif
 
 
 %files -n alex


More information about the scm-commits mailing list