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

This commit is contained in:
Jens Petersen 2011-06-24 18:19:50 +09:00
parent 672d4fb3b2
commit a37a4e1eab

View File

@ -4,29 +4,19 @@
%global common_description %{common_summary}
%bcond_without shared
%bcond_without hscolour
# debuginfo is not useful for ghc
%global debug_package %{nil}
Name: ghc-%{pkg_name}
Version: 0.5.5
Release: 3%{?dist}
Summary: Haskell %{pkg_name}
Release: 4%{?dist}
Summary: %{common_summary}
Group: System Environment/Libraries
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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# fedora ghc archs:
ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9
BuildRequires: ghc, ghc-doc, ghc-prof
BuildRequires: ghc-rpm-macros >= 0.8.1
%if %{with hscolour}
ExclusiveArch: %{ghc_arches}
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: hscolour
%endif
%description
@ -42,23 +32,21 @@ BuildRequires: hscolour
%install
rm -rf %{buildroot}
%ghc_lib_install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE
%{?ghc_lib_package}
%ghc_lib_package
%changelog
* Fri Jun 24 2011 Jens Petersen <petersen@redhat.com> - 0.5.5-4
- BR ghc-Cabal-devel instead of ghc-prof and use ghc_arches (cabal2spec-0.23.2)
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.5.5-3
- Enable build on sparcv9