d50cba2
# generated by cabal-rpm-2.1.0
7101eeb
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
d9d0739
d9d0739
%global pkg_name hspec
d9d0739
%global pkgver %{pkg_name}-%{version}
d9d0739
d9d0739
Name:           ghc-%{pkg_name}
d50cba2
Version:        2.9.7
9be9d35
Release:        %autorelease
d9d0739
Summary:        A Testing Framework for Haskell
d9d0739
d9d0739
License:        MIT
d9d0739
Url:            https://hackage.haskell.org/package/%{pkg_name}
0934c18
# Begin cabal-rpm sources:
d9d0739
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
0934c18
# End cabal-rpm sources
d9d0739
0934c18
# Begin cabal-rpm deps:
d9d0739
BuildRequires:  ghc-Cabal-devel
d9d0739
BuildRequires:  ghc-rpm-macros
d50cba2
BuildRequires:  ghc-QuickCheck-devel
d50cba2
BuildRequires:  ghc-base-devel
d50cba2
BuildRequires:  ghc-hspec-core-devel
d50cba2
BuildRequires:  ghc-hspec-discover-devel
d50cba2
BuildRequires:  ghc-hspec-expectations-devel
d50cba2
%if %{with ghc_prof}
4a4d8d2
BuildRequires:  ghc-QuickCheck-prof
4a4d8d2
BuildRequires:  ghc-base-prof
4a4d8d2
BuildRequires:  ghc-hspec-core-prof
4a4d8d2
BuildRequires:  ghc-hspec-discover-prof
4a4d8d2
BuildRequires:  ghc-hspec-expectations-prof
d50cba2
%endif
d9d0739
# End cabal-rpm deps
d9d0739
d9d0739
%description
566d2e9
Hspec is a testing framework for Haskell. Some of Hspec's distinctive features
566d2e9
are:
d9d0739
d9d0739
* a friendly DSL for defining tests
d9d0739
d9d0739
* integration with QuickCheck, SmallCheck, and HUnit
d9d0739
d9d0739
* parallel test execution
d9d0739
d9d0739
* automatic discovery of test files
d9d0739
d9d0739
The Hspec Manual is at <http://hspec.github.io/>.
d9d0739
d9d0739
d9d0739
%package devel
d9d0739
Summary:        Haskell %{pkg_name} library development files
d9d0739
Provides:       %{name}-static = %{version}-%{release}
4a4d8d2
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
17195cd
%if %{defined ghc_version}
d9d0739
Requires:       ghc-compiler = %{ghc_version}
17195cd
%endif
d9d0739
Requires:       %{name}%{?_isa} = %{version}-%{release}
d9d0739
d9d0739
%description devel
d9d0739
This package provides the Haskell %{pkg_name} library development files.
d9d0739
d9d0739
6108ef1
%if %{with haddock}
6108ef1
%package doc
6108ef1
Summary:        Haskell %{pkg_name} library documentation
630fde2
BuildArch:      noarch
6ffbddf
Requires:       ghc-filesystem
6108ef1
6108ef1
%description doc
6108ef1
This package provides the Haskell %{pkg_name} library documentation.
6108ef1
%endif
6108ef1
6108ef1
6108ef1
%if %{with ghc_prof}
6108ef1
%package prof
6108ef1
Summary:        Haskell %{pkg_name} profiling library
6108ef1
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
630fde2
Supplements:    (%{name}-devel and ghc-prof)
6108ef1
6108ef1
%description prof
6108ef1
This package provides the Haskell %{pkg_name} profiling library.
6108ef1
%endif
6108ef1
6108ef1
d9d0739
%prep
0934c18
# Begin cabal-rpm setup:
d9d0739
%setup -q -n %{pkgver}
0934c18
# End cabal-rpm setup
d9d0739
d9d0739
d9d0739
%build
0934c18
# Begin cabal-rpm build:
d9d0739
%ghc_lib_build
0934c18
# End cabal-rpm build
d9d0739
d9d0739
d9d0739
%install
0934c18
# Begin cabal-rpm install
d9d0739
%ghc_lib_install
0934c18
# End cabal-rpm install
d9d0739
d9d0739
d9d0739
%files -f %{name}.files
0934c18
# Begin cabal-rpm files:
d9d0739
%license LICENSE
0934c18
# End cabal-rpm files
d9d0739
d9d0739
d9d0739
%files devel -f %{name}-devel.files
d9d0739
%doc CHANGES.markdown
d9d0739
d9d0739
6108ef1
%if %{with haddock}
6108ef1
%files doc -f %{name}-doc.files
630fde2
%license LICENSE
6108ef1
%endif
6108ef1
6108ef1
6108ef1
%if %{with ghc_prof}
6108ef1
%files prof -f %{name}-prof.files
6108ef1
%endif
6108ef1
6108ef1
d9d0739
%changelog
9be9d35
%autochangelog