[haskell-platform] ghc-haskell-platform-devel should not require non-existant ghc-haskell-platform; protect ghc-haskell

Jens Petersen petersen at fedoraproject.org
Fri Jun 8 01:11:56 UTC 2012


commit 4ecbdd4c79c74d116067e09733ff80d807202c27
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 8 10:11:44 2012 +0900

    ghc-haskell-platform-devel should not require non-existant ghc-haskell-platform; protect ghc-haskell-platform-devel %files for koji

 haskell-platform.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/haskell-platform.spec b/haskell-platform.spec
index 6525b5e..f25aff7 100644
--- a/haskell-platform.spec
+++ b/haskell-platform.spec
@@ -146,6 +146,7 @@ hand-written or generated by another program).
 
 
 # devel subpackage
+%define ghc_without_shared 1
 %ghc_devel_package haskell-platform %{version}
 %{?ghc_packages_list:Requires: %(echo %{ghc_packages_list} | sed -e "s/\([^ ]*\)-\([^ ]*\)/ghc-\1-devel = \2-%{release},/g")}
 Requires:       ghc-libraries = %{ghc_compiler_version}
@@ -282,8 +283,11 @@ cd ..
 %{_sysconfdir}/profile.d/cabal-install.sh
 
 
+# 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 happy


More information about the scm-commits mailing list