[cpphs] use BR ghc-Cabal-devel and use ghc_arches (cabal2spec-0.23.2)

Jens Petersen petersen at fedoraproject.org
Tue Jun 21 10:03:16 UTC 2011


commit 03c00b9e997c991741c0ba9e1f75a350b3f80abc
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Jun 21 19:03:04 2011 +0900

    use BR ghc-Cabal-devel and use ghc_arches (cabal2spec-0.23.2)

 cpphs.spec |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/cpphs.spec b/cpphs.spec
index de30b56..08566ce 100644
--- a/cpphs.spec
+++ b/cpphs.spec
@@ -11,35 +11,23 @@ compatible with traditional (K&R) pre-processors. Additional features\
 include: a plain-text mode; an option to unlit literate code files; and\
 an option to turn off macro-expansion.
 
-# debuginfo is not useful for ghc
-%global debug_package %{nil}
-
 Name:           %{pkg_name}
 Version:        1.11
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        C pre-processor for Haskell
 Group:          Development/Languages
 License:        GPL+ and LGPLv2+
 URL:            http://hackage.haskell.org/package/%{name}
 Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
-# fedora ghc archs:
-ExclusiveArch:  %{ix86} x86_64 ppc alpha sparcv9
-BuildRequires:  ghc, ghc-doc, ghc-prof
-BuildRequires:  ghc-rpm-macros >= 0.7.3
+ExclusiveArch:  %{ghc_arches}
+BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-rpm-macros
 BuildRequires:  hscolour
+BuildRequires:  ghc-haskell98-prof
 
 %description
 %{common_description}
 
-%files
-%defattr(-,root,root,-)
-%doc LICENCE-GPL docs/index.html
-%{_bindir}/%{name}
-
-
-%ghc_binlib_package -l LGPLv2+
-
-
 %prep
 %setup -q
 
@@ -52,7 +40,19 @@ BuildRequires:  hscolour
 %ghc_lib_install
 
 
+%files
+%defattr(-,root,root,-)
+%doc LICENCE-GPL docs/index.html
+%{_bindir}/%{name}
+
+
+%ghc_binlib_package -l LGPLv2+
+
+
 %changelog
+* Tue Jun 21 2011 Jens Petersen <petersen at redhat.com> - 1.11-10
+- BR ghc-Cabal-devel instead of ghc-prof (cabal2spec-0.23.2)
+
 * Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto at redhat.com> - 1.11-9
 - Enable build on sparcv9
 


More information about the scm-commits mailing list