- sync whitespace with template

- add alpha arch (cabal2spec-0.11)
This commit is contained in:
Jens Petersen 2009-02-27 04:12:58 +00:00
parent 61ea922f43
commit 749192f12d

View File

@ -1,5 +1,5 @@
%define pkg_name zlib
%define ghc_version 6.10.1
%global pkg_name zlib
%global ghc_version 6.10.1
%global pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
%global pkg_docdir %{_docdir}/ghc/libraries/%{pkg_name}-%{version}
@ -10,25 +10,26 @@
# ghc does not emit debug information
%global debug_package %{nil}
Name: ghc-%{pkg_name}
Version: 0.5.0.0
Release: 7%{?dist}
Summary: Haskell compression and decompression library binding
Name: ghc-%{pkg_name}
Version: 0.5.0.0
Release: 7%{?dist}
Summary: Haskell compression and decompression library binding
Group: Development/Libraries
License: BSD
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
Source: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Group: Development/Libraries
License: BSD
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExclusiveArch: %{ix86} x86_64 ppc
BuildRequires: ghc = %{ghc_version}
# fedora ghc archs:
ExclusiveArch: %{ix86} x86_64 ppc alpha
BuildRequires: ghc = %{ghc_version}
%if %{with doc}
BuildRequires: ghc-doc = %{ghc_version}
%endif
%if %{with prof}
BuildRequires: ghc-prof = %{ghc_version}
%endif
BuildRequires: zlib-devel
BuildRequires: zlib-devel
%description
This package provides a pure Haskell interface for compressing and
@ -41,10 +42,10 @@ the few cases where more control is needed, it provides access to the
full zlib feature set.
%package devel
Summary: Development libraries for %{name}
Group: Development/Libraries
Requires: zlib-devel
Requires: ghc = %{ghc_version}
Summary: Haskell %{pkg_name} library
Group: Development/Libraries
Requires: zlib-devel
Requires: ghc = %{ghc_version}
Requires(post): ghc = %{ghc_version}
Requires(preun): ghc = %{ghc_version}
@ -146,9 +147,9 @@ fi
%changelog
* Fri Feb 27 2009 Jens Petersen <petersen@redhat.com> - 0.5.0.0-7
- update to cabal2spec-0.9:
- update to cabal2spec-0.11:
- add devel subpackage
- use ix86 macro for archs
- use ix86 macro for archs and add alpha
- use global rather than define
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0.0-6