38b0973
# generated by cabal-rpm-2.1.0
cec5bbd
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
4156435
4156435
%global pkg_name haskell-src-meta
4156435
%global pkgver %{pkg_name}-%{version}
4156435
39ef9cf
%bcond_without tests
39ef9cf
4156435
Name:           ghc-%{pkg_name}
273dc69
Version:        0.8.12
24291e9
Release:        %autorelease
4156435
Summary:        Parse source to template-haskell abstract syntax
4156435
38b0973
License:        BSD-3-Clause
4156435
Url:            https://hackage.haskell.org/package/%{pkg_name}
4156435
# Begin cabal-rpm sources:
4156435
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
4156435
# End cabal-rpm sources
4156435
4156435
# Begin cabal-rpm deps:
4156435
BuildRequires:  ghc-Cabal-devel
4156435
BuildRequires:  ghc-rpm-macros
38b0973
BuildRequires:  ghc-base-devel
38b0973
BuildRequires:  ghc-haskell-src-exts-devel
38b0973
BuildRequires:  ghc-pretty-devel
38b0973
BuildRequires:  ghc-syb-devel
38b0973
BuildRequires:  ghc-template-haskell-devel
38b0973
BuildRequires:  ghc-th-orphans-devel
38b0973
%if %{with ghc_prof}
a1a0699
BuildRequires:  ghc-base-prof
a1a0699
BuildRequires:  ghc-haskell-src-exts-prof
a1a0699
BuildRequires:  ghc-pretty-prof
a1a0699
BuildRequires:  ghc-syb-prof
a1a0699
BuildRequires:  ghc-template-haskell-prof
a1a0699
BuildRequires:  ghc-th-orphans-prof
38b0973
%endif
39ef9cf
%if %{with tests}
39ef9cf
BuildRequires:  ghc-HUnit-devel
39ef9cf
BuildRequires:  ghc-containers-devel
39ef9cf
BuildRequires:  ghc-tasty-devel
39ef9cf
BuildRequires:  ghc-tasty-hunit-devel
39ef9cf
%endif
4156435
# End cabal-rpm deps
4156435
4156435
%description
4156435
The translation from haskell-src-exts abstract syntax to template-haskell
4156435
abstract syntax isn't 100% complete yet.
4156435
4156435
4156435
%package devel
4156435
Summary:        Haskell %{pkg_name} library development files
4156435
Provides:       %{name}-static = %{version}-%{release}
a1a0699
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
4156435
%if %{defined ghc_version}
4156435
Requires:       ghc-compiler = %{ghc_version}
4156435
%endif
4156435
Requires:       %{name}%{?_isa} = %{version}-%{release}
4156435
4156435
%description devel
4156435
This package provides the Haskell %{pkg_name} library development
4156435
files.
4156435
4156435
b08c561
%if %{with haddock}
b08c561
%package doc
b08c561
Summary:        Haskell %{pkg_name} library documentation
46e41ec
BuildArch:      noarch
7cf4288
Requires:       ghc-filesystem
b08c561
b08c561
%description doc
b08c561
This package provides the Haskell %{pkg_name} library documentation.
b08c561
%endif
b08c561
b08c561
b08c561
%if %{with ghc_prof}
b08c561
%package prof
b08c561
Summary:        Haskell %{pkg_name} profiling library
b08c561
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
46e41ec
Supplements:    (%{name}-devel and ghc-prof)
b08c561
b08c561
%description prof
b08c561
This package provides the Haskell %{pkg_name} profiling library.
b08c561
%endif
b08c561
b08c561
4156435
%prep
4156435
# Begin cabal-rpm setup:
4156435
%setup -q -n %{pkgver}
4156435
# End cabal-rpm setup
4156435
4156435
4156435
%build
4156435
# Begin cabal-rpm build:
4156435
%ghc_lib_build
4156435
# End cabal-rpm build
4156435
4156435
4156435
%install
4156435
# Begin cabal-rpm install
4156435
%ghc_lib_install
4156435
# End cabal-rpm install
4156435
4156435
39ef9cf
%check
7cf4288
%if %{with tests}
39ef9cf
%cabal_test
7cf4288
%endif
39ef9cf
39ef9cf
4156435
%files -f %{name}.files
4156435
# Begin cabal-rpm files:
4156435
%license LICENSE
4156435
# End cabal-rpm files
4156435
4156435
4156435
%files devel -f %{name}-devel.files
4156435
%doc ChangeLog README.md examples
4156435
4156435
b08c561
%if %{with haddock}
b08c561
%files doc -f %{name}-doc.files
46e41ec
%license LICENSE
b08c561
%endif
b08c561
b08c561
b08c561
%if %{with ghc_prof}
b08c561
%files prof -f %{name}-prof.files
b08c561
%endif
b08c561
b08c561
4156435
%changelog
24291e9
%autochangelog