From 4cc43a13a1969636dd9c8d0130a801484e0c41de Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 10 May 2011 22:48:28 -0400 Subject: [PATCH] Update to cabal2spec-0.22.6 --- ghc-cmdargs.spec | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/ghc-cmdargs.spec b/ghc-cmdargs.spec index 00338de..a929085 100644 --- a/ghc-cmdargs.spec +++ b/ghc-cmdargs.spec @@ -1,3 +1,7 @@ +# For Haskell Packaging Guidelines see: +# - https://fedoraproject.org/wiki/Packaging:Haskell +# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell + %global pkg_name cmdargs %global common_summary Command line argument processing @@ -7,12 +11,9 @@ parsers. %global ghc_pkg_deps ghc-transformers-devel -# debuginfo is not useful for ghc -%global debug_package %{nil} - Name: ghc-%{pkg_name} -Version: 0.6.8 -Release: 2%{?dist} +Version: 0.7 +Release: 1%{?dist} Summary: Haskell %{pkg_name} Group: System Environment/Libraries @@ -20,17 +21,15 @@ License: BSD URL: http://hackage.haskell.org/package/%{pkg_name} Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz # fedora ghc archs: -ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 +ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 BuildRequires: ghc, ghc-doc, ghc-prof +# macros for building haskell packages BuildRequires: ghc-rpm-macros >= 0.7.3 BuildRequires: hscolour %{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} %description %{common_description} -%if %{with shared} -This package provides the shared library. -%endif %prep @@ -47,10 +46,15 @@ This package provides the shared library. rm -vf %{buildroot}/%{_bindir}/%{pkg_name} -%{?ghc_lib_package} +# define the devel and prof subpkgs, devel post[un] scripts, and filelists: +# ghc-%pkg_name{,devel,prof}.files +%ghc_lib_package %changelog +* Tue May 10 2011 Ben Boeckel - 0.7-1 +- Update to cabal2spec-0.22.6 + * Thu Mar 10 2011 Fabio M. Di Nitto - 0.6.8-2 - Enable build on sparcv9