d5d1edf
# generated by cabal-rpm-2.1.0
c7f604b
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
8693e7b
8693e7b
%global pkg_name monad-journal
8693e7b
%global pkgver %{pkg_name}-%{version}
8693e7b
8693e7b
Name:           ghc-%{pkg_name}
8693e7b
Version:        0.8.1
3ff9e0a
Release:        %autorelease
8693e7b
Summary:        Pure logger typeclass and monad transformer
8693e7b
d5d1edf
License:        BSD-3-Clause
8693e7b
Url:            https://hackage.haskell.org/package/%{pkg_name}
438882b
# Begin cabal-rpm sources:
8693e7b
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
438882b
# End cabal-rpm sources
8693e7b
438882b
# Begin cabal-rpm deps:
8693e7b
BuildRequires:  ghc-Cabal-devel
8693e7b
BuildRequires:  ghc-rpm-macros
d5d1edf
BuildRequires:  ghc-base-devel
d5d1edf
BuildRequires:  ghc-monad-control-devel
d5d1edf
BuildRequires:  ghc-mtl-devel
d5d1edf
BuildRequires:  ghc-transformers-devel
d5d1edf
BuildRequires:  ghc-transformers-base-devel
d5d1edf
%if %{with ghc_prof}
fca6e79
BuildRequires:  ghc-base-prof
fca6e79
BuildRequires:  ghc-monad-control-prof
fca6e79
BuildRequires:  ghc-mtl-prof
fca6e79
BuildRequires:  ghc-transformers-prof
fca6e79
BuildRequires:  ghc-transformers-base-prof
d5d1edf
%endif
8693e7b
# End cabal-rpm deps
8693e7b
8693e7b
%description
8693e7b
This package provides a typeclass for logging in pure code, or more generally,
8693e7b
in any kind of context. You can do whatever you want with logs, especially get
8693e7b
them, clear them or even sink them through 'IO' if you're logging in '(MonadIO
8693e7b
m) => m'.
8693e7b
8693e7b
8693e7b
%package devel
8693e7b
Summary:        Haskell %{pkg_name} library development files
8693e7b
Provides:       %{name}-static = %{version}-%{release}
fca6e79
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
8693e7b
%if %{defined ghc_version}
8693e7b
Requires:       ghc-compiler = %{ghc_version}
8693e7b
%endif
8693e7b
Requires:       %{name}%{?_isa} = %{version}-%{release}
8693e7b
8693e7b
%description devel
8693e7b
This package provides the Haskell %{pkg_name} library development files.
8693e7b
8693e7b
587a938
%if %{with haddock}
587a938
%package doc
587a938
Summary:        Haskell %{pkg_name} library documentation
5ba241d
BuildArch:      noarch
4aa1213
Requires:       ghc-filesystem
587a938
587a938
%description doc
587a938
This package provides the Haskell %{pkg_name} library documentation.
587a938
%endif
587a938
587a938
587a938
%if %{with ghc_prof}
587a938
%package prof
587a938
Summary:        Haskell %{pkg_name} profiling library
587a938
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
5ba241d
Supplements:    (%{name}-devel and ghc-prof)
587a938
587a938
%description prof
587a938
This package provides the Haskell %{pkg_name} profiling library.
587a938
%endif
587a938
587a938
8693e7b
%prep
438882b
# Begin cabal-rpm setup:
8693e7b
%setup -q -n %{pkgver}
438882b
# End cabal-rpm setup
8693e7b
8693e7b
8693e7b
%build
438882b
# Begin cabal-rpm build:
8693e7b
%ghc_lib_build
438882b
# End cabal-rpm build
8693e7b
8693e7b
8693e7b
%install
438882b
# Begin cabal-rpm install
8693e7b
%ghc_lib_install
438882b
# End cabal-rpm install
8693e7b
8693e7b
8693e7b
%files -f %{name}.files
438882b
# Begin cabal-rpm files:
8693e7b
%license LICENSE
438882b
# End cabal-rpm files
8693e7b
8693e7b
8693e7b
%files devel -f %{name}-devel.files
8693e7b
%doc CHANGELOG.md README.md
8693e7b
8693e7b
587a938
%if %{with haddock}
587a938
%files doc -f %{name}-doc.files
5ba241d
%license LICENSE
587a938
%endif
587a938
587a938
587a938
%if %{with ghc_prof}
587a938
%files prof -f %{name}-prof.files
587a938
%endif
587a938
587a938
8693e7b
%changelog
3ff9e0a
%autochangelog