refresh to cabal-rpm-2.0.2
This commit is contained in:
parent
39443b5bcb
commit
501d521010
@ -1,11 +1,9 @@
|
||||
# generated by cabal-rpm-1.0.1
|
||||
# generated by cabal-rpm-2.0.2
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name hspec-core
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
%bcond_with tests
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 2.6.1
|
||||
Release: 2%{?dist}
|
||||
@ -37,12 +35,6 @@ BuildRequires: ghc-setenv-prof
|
||||
BuildRequires: ghc-stm-prof
|
||||
BuildRequires: ghc-tf-random-prof
|
||||
BuildRequires: ghc-transformers-prof
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-hspec-meta-devel
|
||||
BuildRequires: ghc-process-devel
|
||||
BuildRequires: ghc-silently-devel
|
||||
BuildRequires: ghc-temporary-devel
|
||||
%endif
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
@ -66,6 +58,7 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||
%if %{with haddock}
|
||||
%package doc
|
||||
Summary: Haskell %{pkg_name} library documentation
|
||||
BuildArch: noarch
|
||||
Obsoletes: %{name}-devel-doc < %{version}-%{release}
|
||||
|
||||
%description doc
|
||||
@ -77,6 +70,7 @@ This package provides the Haskell %{pkg_name} library documentation.
|
||||
%package prof
|
||||
Summary: Haskell %{pkg_name} profiling library
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
Supplements: (%{name}-devel and ghc-prof)
|
||||
|
||||
%description prof
|
||||
This package provides the Haskell %{pkg_name} profiling library.
|
||||
@ -101,8 +95,14 @@ This package provides the Haskell %{pkg_name} profiling library.
|
||||
# End cabal-rpm install
|
||||
|
||||
|
||||
%check
|
||||
%cabal_test
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
%endif
|
||||
|
||||
|
||||
%files -f %{name}.files
|
||||
@ -116,6 +116,7 @@ This package provides the Haskell %{pkg_name} profiling library.
|
||||
|
||||
%if %{with haddock}
|
||||
%files doc -f %{name}-doc.files
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user