diff --git a/ghc-dns.spec b/ghc-dns.spec index aeebfa3..c8d363b 100644 --- a/ghc-dns.spec +++ b/ghc-dns.spec @@ -1,17 +1,17 @@ -# generated by cabal-rpm-2.0.9 +# generated by cabal-rpm-2.1.0 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ %global pkg_name dns %global pkgver %{pkg_name}-%{version} -# testsuite missing deps: dns-internal +%bcond_without tests Name: ghc-%{pkg_name} Version: 4.0.1 Release: 10%{?dist} Summary: DNS library in Haskell -License: BSD +License: BSD-3-Clause Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz @@ -20,6 +20,22 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +BuildRequires: ghc-array-devel +BuildRequires: ghc-async-devel +BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-auto-update-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base16-bytestring-devel +BuildRequires: ghc-base64-bytestring-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-cryptonite-devel +BuildRequires: ghc-hourglass-devel +BuildRequires: ghc-iproute-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-network-devel +BuildRequires: ghc-psqueues-devel +%if %{with ghc_prof} BuildRequires: ghc-array-prof BuildRequires: ghc-async-prof BuildRequires: ghc-attoparsec-prof @@ -30,12 +46,18 @@ BuildRequires: ghc-base64-bytestring-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-cryptonite-prof -#BuildRequires: ghc-dns-internal-prof BuildRequires: ghc-hourglass-prof BuildRequires: ghc-iproute-prof BuildRequires: ghc-mtl-prof BuildRequires: ghc-network-prof BuildRequires: ghc-psqueues-prof +%endif +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-doctest-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-word8-devel +%endif # End cabal-rpm deps %description @@ -95,6 +117,12 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm install +%check +%if %{with tests} +%cabal_test +%endif + + %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE