update to ghc-rpm-macros-0.8.1, hscolour and drop doc pkg (cabal2spec-0.22.2)
This commit is contained in:
parent
75cd8af4cc
commit
b7aad5ee4f
@ -9,13 +9,14 @@ Haskell.
|
|||||||
%global ghc_pkg_deps ghc-mtl-devel
|
%global ghc_pkg_deps ghc-mtl-devel
|
||||||
|
|
||||||
%bcond_without shared
|
%bcond_without shared
|
||||||
|
%bcond_without hscolour
|
||||||
|
|
||||||
# debuginfo is not useful for ghc
|
# debuginfo is not useful for ghc
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 1.5.1
|
Version: 1.5.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: %{common_summary}
|
Summary: %{common_summary}
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -25,7 +26,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
# fedora ghc archs:
|
# fedora ghc archs:
|
||||||
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
||||||
BuildRequires: ghc, ghc-doc, ghc-prof
|
BuildRequires: ghc, ghc-doc, ghc-prof
|
||||||
BuildRequires: ghc-rpm-macros >= 0.6.0
|
BuildRequires: ghc-rpm-macros >= 0.8.1
|
||||||
|
%if %{with hscolour}
|
||||||
|
BuildRequires: hscolour
|
||||||
|
%endif
|
||||||
%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
|
%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -35,33 +39,31 @@ This package provides the shared library.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%{?ghc_lib_package}
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cabal_configure --ghc -p
|
%ghc_lib_build
|
||||||
%cabal build
|
|
||||||
%cabal haddock
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%cabal_install
|
%ghc_lib_install
|
||||||
%cabal_pkg_conf
|
|
||||||
|
|
||||||
%ghc_gen_filelists
|
|
||||||
%ghc_strip_dynlinked
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%ghc_lib_package -o 1.5.1-4
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 4 2010 Jens Petersen <petersen@redhat.com> - 1.5.1-4
|
||||||
|
- update to latest macros, hscolour and drop doc pkg (cabal2spec-0.22.2)
|
||||||
|
- part of haskell-platform-2010.2.0.0
|
||||||
|
|
||||||
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 1.5.1-3
|
* Sat Jun 26 2010 Jens Petersen <petersen@redhat.com> - 1.5.1-3
|
||||||
- strip shared library (cabal2spec-0.21.4)
|
- strip shared library (cabal2spec-0.21.4)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user