# generated by cabal-rpm-0.12.1 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name fail %global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} Version: 4.9.0.0 Release: 1%{?dist} Summary: Forward-compatible MonadFail class License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros %description This package contains the "Control.Monad.Fail" module providing the class that became available in for older 'base' package versions. This package turns into an empty package when used with GHC versions which already provide the "Control.Monad.Fail" module to make way for GHC's own "Control.Monad.Fail" module. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} %endif %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkgver} %build %ghc_lib_build_without_haddock %install %ghc_lib_install mv %{buildroot}%{_ghcdocdir}{,-devel} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files devel -f %{name}-devel.files %license LICENSE %changelog * Mon Jan 29 2018 Fedora Haskell SIG - 4.9.0.0-1 - spec file generated by cabal-rpm-0.12.1