Name: cabal-install Version: 0.14.0 Release: 1%{?dist} Summary: Command-line interface for Cabal and Hackage License: BSD Group: Development/Tools URL: http://hackage.haskell.org/package/%{name} Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz Patch0: cabal-install-0.14.0-bootstrap-url.patch BuildRequires: ghc-Cabal-devel #BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: #BuildRequires: ghc-HTTP-devel BuildRequires: ghc-array-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel BuildRequires: ghc-filepath-devel #BuildRequires: ghc-mtl-devel #BuildRequires: ghc-network-devel BuildRequires: ghc-old-time-devel BuildRequires: ghc-pretty-devel BuildRequires: ghc-process-devel #BuildRequires: ghc-random-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unix-devel #BuildRequires: ghc-zlib-devel # End cabal-rpm deps BuildRequires: zlib-devel%{?_isa} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description The 'cabal' command-line program simplifies the process of managing Haskell software by automating the fetching, configuration, compilation and installation of Haskell libraries and programs. The program is statically linked to Haskell libraries. %prep %setup -q %patch0 -p1 -b .orig %build %{nil} %install rm -rf %{buildroot} # bootstrap ghc-pkg registers deps HOME=$PWD export PREFIX=%{buildroot}%{_prefix} sh bootstrap.sh # remove all the dep devel files rm -r %{buildroot}%{_prefix}/{lib,share} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE %{_bindir}/cabal %changelog * Sat Jan 25 2014 Jens Petersen - 0.14.0-1 - build with bootstrap.sh patched for downloading from hackage2