# https://fedoraproject.org/wiki/Packaging:Haskell Name: cabal-install Version: 1.18.2.0 Release: 1%{?dist} Summary: The command-line interface for Cabal and Hackage License: BSD URL: http://hackage.haskell.org/package/%{name} Source0: http://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz Source1: cabal-install.sh BuildRequires: ghc-Cabal-devel # Begin cabal-rpm deps: #BuildRequires: ghc-HTTP-devel BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-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-stm-devel BuildRequires: ghc-time-devel BuildRequires: ghc-unix-devel #BuildRequires: ghc-zlib-devel # End cabal-rpm deps BuildRequires: zlib-devel # for /etc/bash_completion.d/ Requires: filesystem # for /etc/profile.d/ Requires: setup %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 from Hackage. %prep %setup -q %build ./bootstrap.sh %install install -D dist/build/cabal/cabal %{buildroot}%{_bindir}/cabal mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d cp -p bash-completion/cabal $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d %files %doc LICENSE %doc README %{_bindir}/cabal %config(noreplace) %{_sysconfdir}/bash_completion.d/cabal %config(noreplace) %{_sysconfdir}/profile.d/cabal-install.sh %changelog * Mon Oct 31 2016 Jens Petersen - 1.18.2.0-1 - 1.18.2.0 * Fri Oct 23 2015 Jens Petersen - 1.18.1.0-1 - update to 1.18.1.0 * Mon Jan 19 2015 Jens Petersen - 1.18.0.8-2 - add bash_completion.d and profile.d files * Fri Jan 16 2015 Jens Petersen - 1.18.0.8-1 - update to 1.18.0.8 - build with bootstrap.sh * Thu Mar 6 2014 Fedora Haskell SIG - 1.18.0.3 - spec file generated by cabal-rpm-0.8.10