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