999d1f9
# generated by cabal-rpm-2.1.0
af74161
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
72c3a2f
72c3a2f
%global pkg_name lens-aeson
72c3a2f
%global pkgver %{pkg_name}-%{version}
72c3a2f
72c3a2f
Name:           ghc-%{pkg_name}
4aec2c6
Version:        1.2.3
4f634b7
Release:        %autorelease
72c3a2f
Summary:        Law-abiding lenses for aeson
72c3a2f
72c3a2f
License:        MIT
72c3a2f
Url:            https://hackage.haskell.org/package/%{pkg_name}
cfe9a6f
# Begin cabal-rpm sources:
72c3a2f
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
4aec2c6
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
cfe9a6f
# End cabal-rpm sources
72c3a2f
cfe9a6f
# Begin cabal-rpm deps:
4aec2c6
BuildRequires:  dos2unix
72c3a2f
BuildRequires:  ghc-Cabal-devel
72c3a2f
BuildRequires:  ghc-rpm-macros
999d1f9
BuildRequires:  ghc-aeson-devel
999d1f9
BuildRequires:  ghc-base-devel
999d1f9
BuildRequires:  ghc-bytestring-devel
999d1f9
BuildRequires:  ghc-lens-devel
999d1f9
BuildRequires:  ghc-scientific-devel
999d1f9
BuildRequires:  ghc-text-devel
999d1f9
BuildRequires:  ghc-text-short-devel
999d1f9
BuildRequires:  ghc-unordered-containers-devel
999d1f9
BuildRequires:  ghc-vector-devel
999d1f9
%if %{with ghc_prof}
51a6036
BuildRequires:  ghc-aeson-prof
51a6036
BuildRequires:  ghc-base-prof
51a6036
BuildRequires:  ghc-bytestring-prof
51a6036
BuildRequires:  ghc-lens-prof
51a6036
BuildRequires:  ghc-scientific-prof
51a6036
BuildRequires:  ghc-text-prof
999d1f9
BuildRequires:  ghc-text-short-prof
51a6036
BuildRequires:  ghc-unordered-containers-prof
51a6036
BuildRequires:  ghc-vector-prof
999d1f9
%endif
72c3a2f
# End cabal-rpm deps
72c3a2f
72c3a2f
%description
72c3a2f
Law-abiding lenses for aeson.
72c3a2f
72c3a2f
72c3a2f
%package devel
72c3a2f
Summary:        Haskell %{pkg_name} library development files
72c3a2f
Provides:       %{name}-static = %{version}-%{release}
51a6036
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
b60451f
%if %{defined ghc_version}
72c3a2f
Requires:       ghc-compiler = %{ghc_version}
b60451f
%endif
72c3a2f
Requires:       %{name}%{?_isa} = %{version}-%{release}
72c3a2f
72c3a2f
%description devel
72c3a2f
This package provides the Haskell %{pkg_name} library development files.
72c3a2f
72c3a2f
cc6b39f
%if %{with haddock}
cc6b39f
%package doc
cc6b39f
Summary:        Haskell %{pkg_name} library documentation
c4b4f8b
BuildArch:      noarch
92d81a0
Requires:       ghc-filesystem
cc6b39f
cc6b39f
%description doc
cc6b39f
This package provides the Haskell %{pkg_name} library documentation.
cc6b39f
%endif
cc6b39f
cc6b39f
cc6b39f
%if %{with ghc_prof}
cc6b39f
%package prof
cc6b39f
Summary:        Haskell %{pkg_name} profiling library
cc6b39f
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
c4b4f8b
Supplements:    (%{name}-devel and ghc-prof)
cc6b39f
cc6b39f
%description prof
cc6b39f
This package provides the Haskell %{pkg_name} profiling library.
cc6b39f
%endif
cc6b39f
cc6b39f
72c3a2f
%prep
cfe9a6f
# Begin cabal-rpm setup:
72c3a2f
%setup -q -n %{pkgver}
4aec2c6
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
cfe9a6f
# End cabal-rpm setup
72c3a2f
72c3a2f
72c3a2f
%build
cfe9a6f
# Begin cabal-rpm build:
72c3a2f
%ghc_lib_build
cfe9a6f
# End cabal-rpm build
72c3a2f
72c3a2f
72c3a2f
%install
cfe9a6f
# Begin cabal-rpm install
72c3a2f
%ghc_lib_install
cfe9a6f
# End cabal-rpm install
72c3a2f
72c3a2f
72c3a2f
%files -f %{name}.files
cfe9a6f
# Begin cabal-rpm files:
72c3a2f
%license LICENSE
cfe9a6f
# End cabal-rpm files
72c3a2f
72c3a2f
72c3a2f
%files devel -f %{name}-devel.files
72c3a2f
%doc AUTHORS.markdown CHANGELOG.markdown README.markdown
72c3a2f
72c3a2f
cc6b39f
%if %{with haddock}
cc6b39f
%files doc -f %{name}-doc.files
c4b4f8b
%license LICENSE
cc6b39f
%endif
cc6b39f
cc6b39f
cc6b39f
%if %{with ghc_prof}
cc6b39f
%files prof -f %{name}-prof.files
cc6b39f
%endif
cc6b39f
cc6b39f
72c3a2f
%changelog
4f634b7
%autochangelog