cabal-install/cabal-install.spec
2017-02-17 11:54:20 +03:00

71 lines
2.1 KiB
RPMSpec

%define debug_package %{nil}
%define module %{name}
Summary: The command-line interface for Cabal and Hackage
Name: cabal-install
Version: 1.24.0.0
Release: 5
License: BSD
Group: Development/Haskell
Url: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: cabal-install.sh
BuildRequires: ghc >= 8.0.1
BuildRequires: ghc-devel >= 8.0.1
BuildRequires: haskell-macros
BuildRequires: haskell(HTTP) >= 4000.3.3
BuildRequires: haskell(mtl) >= 2.2.1
BuildRequires: haskell(network-uri) >= 2.6.1.0
BuildRequires: haskell(random) >= 1.1
BuildRequires: haskell(zlib) >= 0.6.1.1
BuildRequires: haskell(async) >= 2.1.0
BuildRequires: haskell(base16-bytestring) >= 0.1.1.6
BuildRequires: haskell(cryptohash-sha256) >= 0.11.100.1
BuildRequires: haskell(hackage-security) >= 0.5.2.2
BuildRequires: haskell(hashable) >= 1.2.4.0
BuildRequires: haskell(stm) >= 2.4.4.1
# drop bootstrapped check
BuildRequires: haskell(QuickCheck) >= 2.9.2
BuildRequires: haskell(regex-posix) >= 0.95.2
BuildRequires: haskell(tagged) >= 0.8.5
BuildRequires: haskell(tasty) >= 0.11.0.4
BuildRequires: haskell(tasty-hunit) >= 0.9.2
BuildRequires: haskell(tasty-quickcheck) >= 0.8.4
Requires(post,preun): ghc >= 8.0.1
Requires(pre): ghc >= 8.0.1
Requires(pre): ghc-devel >= 8.0.1
%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.
%files
%{_bindir}/cabal
%{_docdir}/%{name}-%{version}
%{_cabal_rpm_deps_dir}
%{_mandir}/man1/cabal.1.*
%config(noreplace) %{_sysconfdir}/bash_completion.d/cabal
%config(noreplace) %{_sysconfdir}/profile.d/cabal-install.sh
#----------------------------------------------------------------------------
%prep
%setup -q
%build
%_cabal_build
%install
install -Dm644 bash-completion/cabal \
%{buildroot}%{_sysconfdir}/bash_completion.d/cabal
install -Dm644 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/profile.d/cabal-install.sh
%_cabal_install
%_cabal_rpm_gen_deps
#%%check
#%%_cabal_check