2457830
# generated by cabal-rpm-2.1.0
ebf2063
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
a799982
a799982
%global pkg_name tasty-hunit
a799982
%global pkgver %{pkg_name}-%{version}
a799982
a799982
Name:           ghc-%{pkg_name}
4ce4b07
Version:        0.10.0.3
c22c37d
Release:        %autorelease
a799982
Summary:        HUnit support for the Tasty test framework
a799982
a799982
License:        MIT
a799982
Url:            https://hackage.haskell.org/package/%{pkg_name}
f7ac3d9
# Begin cabal-rpm sources:
a799982
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
f7ac3d9
# End cabal-rpm sources
a799982
f7ac3d9
# Begin cabal-rpm deps:
a799982
BuildRequires:  ghc-Cabal-devel
a799982
BuildRequires:  ghc-rpm-macros
2457830
BuildRequires:  ghc-base-devel
2457830
BuildRequires:  ghc-call-stack-devel
2457830
BuildRequires:  ghc-tasty-devel
2457830
%if %{with ghc_prof}
f46662f
BuildRequires:  ghc-base-prof
f46662f
BuildRequires:  ghc-call-stack-prof
f46662f
BuildRequires:  ghc-tasty-prof
2457830
%endif
a799982
# End cabal-rpm deps
a799982
a799982
%description
a799982
HUnit support for the Tasty test framework.
a799982
76972ff
Note that this package does not depend on HUnit but implements the relevant
76972ff
subset of its API. The name is a legacy of the early versions of tasty-hunit
76972ff
and of test-framework-hunit, which did depend on HUnit.
76972ff
a799982
a799982
%package devel
a799982
Summary:        Haskell %{pkg_name} library development files
a799982
Provides:       %{name}-static = %{version}-%{release}
f46662f
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
f838a41
%if %{defined ghc_version}
a799982
Requires:       ghc-compiler = %{ghc_version}
f838a41
%endif
a799982
Requires:       %{name}%{?_isa} = %{version}-%{release}
a799982
a799982
%description devel
a799982
This package provides the Haskell %{pkg_name} library development files.
a799982
a799982
7c2915b
%if %{with haddock}
7c2915b
%package doc
7c2915b
Summary:        Haskell %{pkg_name} library documentation
9ba7428
BuildArch:      noarch
2c1ef51
Requires:       ghc-filesystem
7c2915b
7c2915b
%description doc
7c2915b
This package provides the Haskell %{pkg_name} library documentation.
7c2915b
%endif
7c2915b
7c2915b
7c2915b
%if %{with ghc_prof}
7c2915b
%package prof
7c2915b
Summary:        Haskell %{pkg_name} profiling library
7c2915b
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
9ba7428
Supplements:    (%{name}-devel and ghc-prof)
7c2915b
7c2915b
%description prof
7c2915b
This package provides the Haskell %{pkg_name} profiling library.
7c2915b
%endif
7c2915b
7c2915b
a799982
%prep
f7ac3d9
# Begin cabal-rpm setup:
a799982
%setup -q -n %{pkgver}
f7ac3d9
# End cabal-rpm setup
a799982
a799982
a799982
%build
f7ac3d9
# Begin cabal-rpm build:
a799982
%ghc_lib_build
f7ac3d9
# End cabal-rpm build
a799982
a799982
a799982
%install
f7ac3d9
# Begin cabal-rpm install
a799982
%ghc_lib_install
f7ac3d9
# End cabal-rpm install
a799982
a799982
a799982
%files -f %{name}.files
f7ac3d9
# Begin cabal-rpm files:
a799982
%license LICENSE
f7ac3d9
# End cabal-rpm files
a799982
a799982
a799982
%files devel -f %{name}-devel.files
a799982
%doc CHANGELOG.md
a799982
a799982
7c2915b
%if %{with haddock}
7c2915b
%files doc -f %{name}-doc.files
9ba7428
%license LICENSE
7c2915b
%endif
7c2915b
7c2915b
7c2915b
%if %{with ghc_prof}
7c2915b
%files prof -f %{name}-prof.files
7c2915b
%endif
7c2915b
7c2915b
a799982
%changelog
c22c37d
%autochangelog