a4b37d1
# generated by cabal-rpm-2.1.0
72b082b
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
b935895
b935895
%global pkg_name microlens-mtl
b935895
%global pkgver %{pkg_name}-%{version}
b935895
b935895
Name:           ghc-%{pkg_name}
a4b37d1
Version:        0.2.0.3
c99f3b5
Release:        %autorelease
b935895
Summary:        Microlens support for Reader/Writer/State from mtl
b935895
a4b37d1
License:        BSD-3-Clause
b935895
Url:            https://hackage.haskell.org/package/%{pkg_name}
b935895
# Begin cabal-rpm sources:
b935895
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
b935895
# End cabal-rpm sources
b935895
b935895
# Begin cabal-rpm deps:
b935895
BuildRequires:  ghc-Cabal-devel
b935895
BuildRequires:  ghc-rpm-macros
a4b37d1
BuildRequires:  ghc-base-devel
a4b37d1
BuildRequires:  ghc-microlens-devel
a4b37d1
BuildRequires:  ghc-mtl-devel
a4b37d1
BuildRequires:  ghc-transformers-devel
a4b37d1
BuildRequires:  ghc-transformers-compat-devel
a4b37d1
%if %{with ghc_prof}
bdc533e
BuildRequires:  ghc-base-prof
bdc533e
BuildRequires:  ghc-microlens-prof
bdc533e
BuildRequires:  ghc-mtl-prof
bdc533e
BuildRequires:  ghc-transformers-prof
bdc533e
BuildRequires:  ghc-transformers-compat-prof
a4b37d1
%endif
b935895
# End cabal-rpm deps
b935895
b935895
%description
b935895
This package contains functions (like 'view' or '+=') which work on
b935895
'MonadReader', 'MonadWriter', and 'MonadState' from the mtl package.
b935895
b935895
This package is a part of the 
e812985
microlens> family; see the readme 
e812985
on Github>.
b935895
b935895
b935895
%package devel
b935895
Summary:        Haskell %{pkg_name} library development files
b935895
Provides:       %{name}-static = %{version}-%{release}
bdc533e
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
b935895
%if %{defined ghc_version}
b935895
Requires:       ghc-compiler = %{ghc_version}
b935895
%endif
b935895
Requires:       %{name}%{?_isa} = %{version}-%{release}
b935895
b935895
%description devel
b935895
This package provides the Haskell %{pkg_name} library development files.
b935895
b935895
e97a8bc
%if %{with haddock}
e97a8bc
%package doc
e97a8bc
Summary:        Haskell %{pkg_name} library documentation
f964b52
BuildArch:      noarch
76c2fe5
Requires:       ghc-filesystem
e97a8bc
e97a8bc
%description doc
e97a8bc
This package provides the Haskell %{pkg_name} library documentation.
e97a8bc
%endif
e97a8bc
e97a8bc
e97a8bc
%if %{with ghc_prof}
e97a8bc
%package prof
e97a8bc
Summary:        Haskell %{pkg_name} profiling library
e97a8bc
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
f964b52
Supplements:    (%{name}-devel and ghc-prof)
e97a8bc
e97a8bc
%description prof
e97a8bc
This package provides the Haskell %{pkg_name} profiling library.
e97a8bc
%endif
e97a8bc
e97a8bc
b935895
%prep
b935895
# Begin cabal-rpm setup:
b935895
%setup -q -n %{pkgver}
b935895
# End cabal-rpm setup
b935895
b935895
b935895
%build
b935895
# Begin cabal-rpm build:
b935895
%ghc_lib_build
b935895
# End cabal-rpm build
b935895
b935895
b935895
%install
b935895
# Begin cabal-rpm install
b935895
%ghc_lib_install
b935895
# End cabal-rpm install
b935895
b935895
b935895
%files -f %{name}.files
b935895
# Begin cabal-rpm files:
b935895
%license LICENSE
b935895
# End cabal-rpm files
b935895
b935895
b935895
%files devel -f %{name}-devel.files
b935895
%doc CHANGELOG.md
b935895
b935895
e97a8bc
%if %{with haddock}
e97a8bc
%files doc -f %{name}-doc.files
f964b52
%license LICENSE
e97a8bc
%endif
e97a8bc
e97a8bc
e97a8bc
%if %{with ghc_prof}
e97a8bc
%files prof -f %{name}-prof.files
e97a8bc
%endif
e97a8bc
e97a8bc
b935895
%changelog
c99f3b5
%autochangelog