From 4ecbdd4c79c74d116067e09733ff80d807202c27 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 8 Jun 2012 10:11:44 +0900 Subject: [PATCH] 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 file changed, 4 insertions(+) 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