[ghc] test ghc_packages_list in requires for mock
Jens Petersen
petersen at fedoraproject.org
Wed Jan 5 12:48:22 UTC 2011
commit 199162c70af718280b8e89642457e1a969823149
Author: Jens Petersen <petersen at redhat.com>
Date: Wed Jan 5 21:48:11 2011 +0900
test ghc_packages_list in requires for mock
ghc.spec | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index ec4470e..09d7976 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -107,7 +107,7 @@ interface.
%package devel
Summary: GHC development libraries meta package
Group: Development/Libraries
-Requires: %(echo %{ghc_packages_list} | sed -e "s/\([^ ]*\)-\([^ ]*\)/ghc-\1-devel = \2,/g")
+%{?ghc_packages_list:Requires: %(echo %{ghc_packages_list} | sed -e "s/\([^ ]*\)-\([^ ]*\)/ghc-\1-devel = \2,/g")}
%description devel
This is a meta-package for all the development library packages in GHC.
@@ -116,7 +116,7 @@ This is a meta-package for all the development library packages in GHC.
%package prof
Summary: GHC profiling libraries meta-package
Group: Development/Libraries
-Requires: %(echo %{ghc_packages_list} | sed -e "s/\([^ ]*\)-\([^ ]*\)/ghc-\1-prof = \2,/g")
+%{?ghc_packages_list:Requires: %(echo %{ghc_packages_list} | sed -e "s/\([^ ]*\)-\([^ ]*\)/ghc-\1-prof = \2,/g")}
Obsoletes: ghc-haddock-prof < 2.4.2-3
%description prof
More information about the scm-commits
mailing list