refresh to cabal-rpm-2.0.2

This commit is contained in:
Jens Petersen 2020-02-06 22:59:15 +08:00
parent 73b7ca2520
commit 111f7cfb3c
1 changed files with 17 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-1.0.1 --subpackage
# generated by cabal-rpm-2.0.2 --subpackage
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name criterion
@ -7,7 +7,7 @@
%global criterionmeasurement criterion-measurement-0.1.1.0
%global subpkgs %{criterionmeasurement}
%bcond_with tests
%bcond_without tests
Name: ghc-%{pkg_name}
Version: 1.5.5.0
@ -54,7 +54,6 @@ BuildRequires: ghc-transformers-prof
BuildRequires: ghc-transformers-compat-prof
BuildRequires: ghc-vector-prof
BuildRequires: ghc-vector-algorithms-prof
BuildRequires: chrpath
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-QuickCheck-devel
@ -63,6 +62,8 @@ BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
%endif
# for missing dep 'criterion-measurement':
BuildRequires: ghc-base-compat-prof
# End cabal-rpm deps
%description
@ -95,6 +96,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
@ -106,6 +108,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.
@ -146,6 +149,16 @@ This package provides the Haskell %{pkg_name} profiling library.
%cabal_test
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%endif
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
@ -160,6 +173,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%if %{with haddock}
%files doc -f %{name}-doc.files
%license LICENSE
%endif