mirror of
https://abf.rosa.ru/djam/cabal-install.git
synced 2025-02-24 15:12:51 +00:00
49 lines
1.2 KiB
RPMSpec
49 lines
1.2 KiB
RPMSpec
#% global debug_package %{nil}
|
|
#% define _cabal_setup Setup.lhs
|
|
%define _no_haddock 1
|
|
%define module cabal-install
|
|
Name: %{module}
|
|
Version: 1.16.0.2
|
|
Release: 1
|
|
Summary: The command-line interface for Cabal and Hackage
|
|
Group: Development/Other
|
|
License: BSD
|
|
URL: http://hackage.haskell.org/package/%{module}
|
|
Source0: http://hackage.haskell.org/packages/archive/%{module}/%{version}/%{module}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc, ghc-devel, haskell-macros, haddock
|
|
buildrequires: haskell(HTTP)
|
|
buildrequires: haskell(mtl)
|
|
buildrequires: haskell(network)
|
|
buildrequires: haskell(random)
|
|
buildrequires: haskell(zlib)
|
|
Requires(pre): ghc
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n %{module}-%{version}
|
|
|
|
%build
|
|
%_cabal_build
|
|
|
|
%install
|
|
%_cabal_install
|
|
%_cabal_rpm_gen_deps
|
|
#% _cabal_scriptlets
|
|
|
|
%check
|
|
%_cabal_check
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_docdir}/%{module}-%{version}
|
|
%_cabal_rpm_deps_dir
|
|
%_cabal_haddoc_files
|
|
%{_bindir}/cabal
|
|
|
|
|
|
|