b0e3325
# generated by cabal-rpm-2.1.0
e5255c4
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
7250d8d
7250d8d
%global pkg_name quickcheck-io
7250d8d
%global pkgver %{pkg_name}-%{version}
7250d8d
7250d8d
Name:           ghc-%{pkg_name}
7250d8d
Version:        0.2.0
88a9a5a
Release:        %autorelease
7250d8d
Summary:        Use HUnit assertions as QuickCheck properties
7250d8d
7250d8d
License:        MIT
7250d8d
Url:            https://hackage.haskell.org/package/%{pkg_name}
2a586fb
# Begin cabal-rpm sources:
7250d8d
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2a586fb
# End cabal-rpm sources
7250d8d
2a586fb
# Begin cabal-rpm deps:
7250d8d
BuildRequires:  ghc-Cabal-devel
7250d8d
BuildRequires:  ghc-rpm-macros
b0e3325
BuildRequires:  ghc-HUnit-devel
b0e3325
BuildRequires:  ghc-QuickCheck-devel
b0e3325
BuildRequires:  ghc-base-devel
b0e3325
%if %{with ghc_prof}
09263df
BuildRequires:  ghc-HUnit-prof
09263df
BuildRequires:  ghc-QuickCheck-prof
09263df
BuildRequires:  ghc-base-prof
b0e3325
%endif
7250d8d
# End cabal-rpm deps
7250d8d
7250d8d
%description
7250d8d
This package provides an orphan instance that allows you to use HUnit
7250d8d
assertions as QuickCheck properties.
7250d8d
7250d8d
7250d8d
%package devel
7250d8d
Summary:        Haskell %{pkg_name} library development files
7250d8d
Provides:       %{name}-static = %{version}-%{release}
09263df
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
ae8578e
%if %{defined ghc_version}
7250d8d
Requires:       ghc-compiler = %{ghc_version}
ae8578e
%endif
7250d8d
Requires:       %{name}%{?_isa} = %{version}-%{release}
7250d8d
7250d8d
%description devel
7250d8d
This package provides the Haskell %{pkg_name} library development files.
7250d8d
7250d8d
b1bea9a
%if %{with haddock}
b1bea9a
%package doc
b1bea9a
Summary:        Haskell %{pkg_name} library documentation
a6125ff
BuildArch:      noarch
da43fd5
Requires:       ghc-filesystem
b1bea9a
b1bea9a
%description doc
b1bea9a
This package provides the Haskell %{pkg_name} library documentation.
b1bea9a
%endif
b1bea9a
b1bea9a
b1bea9a
%if %{with ghc_prof}
b1bea9a
%package prof
b1bea9a
Summary:        Haskell %{pkg_name} profiling library
b1bea9a
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
a6125ff
Supplements:    (%{name}-devel and ghc-prof)
b1bea9a
b1bea9a
%description prof
b1bea9a
This package provides the Haskell %{pkg_name} profiling library.
b1bea9a
%endif
b1bea9a
b1bea9a
7250d8d
%prep
2a586fb
# Begin cabal-rpm setup:
7250d8d
%setup -q -n %{pkgver}
2a586fb
# End cabal-rpm setup
7250d8d
7250d8d
7250d8d
%build
2a586fb
# Begin cabal-rpm build:
7250d8d
%ghc_lib_build
2a586fb
# End cabal-rpm build
7250d8d
7250d8d
7250d8d
%install
2a586fb
# Begin cabal-rpm install
7250d8d
%ghc_lib_install
2a586fb
# End cabal-rpm install
7250d8d
7250d8d
7250d8d
%files -f %{name}.files
2a586fb
# Begin cabal-rpm files:
7250d8d
%license LICENSE
2a586fb
# End cabal-rpm files
7250d8d
7250d8d
7250d8d
%files devel -f %{name}-devel.files
7250d8d
7250d8d
b1bea9a
%if %{with haddock}
b1bea9a
%files doc -f %{name}-doc.files
a6125ff
%license LICENSE
b1bea9a
%endif
b1bea9a
b1bea9a
b1bea9a
%if %{with ghc_prof}
b1bea9a
%files prof -f %{name}-prof.files
b1bea9a
%endif
b1bea9a
b1bea9a
7250d8d
%changelog
88a9a5a
%autochangelog