refresh to cabal-rpm-2.0.2

This commit is contained in:
Jens Petersen 2020-02-07 17:30:37 +08:00
parent a75aa8ea25
commit 13bb89dbe9
1 changed files with 17 additions and 12 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 hledger
@ -9,8 +9,6 @@
%global lucid lucid-2.9.11
%global subpkgs %{here} %{utilityht} %{lucid}
%bcond_with tests
Name: %{pkg_name}
Version: 1.12.1
# can only be reset when all subpkgs bumped
@ -68,15 +66,13 @@ BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-utf8-string-prof
#BuildRequires: ghc-utility-ht-prof
BuildRequires: ghc-wizards-prof
%if %{with tests}
BuildRequires: ghc-test-framework-devel
BuildRequires: ghc-test-framework-hunit-devel
%endif
# End cabal-rpm deps
# here
# for missing dep 'here':
BuildRequires: ghc-haskell-src-meta-prof
# lucid:
BuildRequires: ghc-template-haskell-prof
# for missing dep 'lucid':
BuildRequires: ghc-blaze-builder-prof
BuildRequires: ghc-mmorph-prof
# End cabal-rpm deps
%description
This is hledger's command-line interface. Its basic function is to read a plain
@ -112,6 +108,7 @@ This package provides the Haskell %{name} library development files.
%if %{with haddock}
%package -n ghc-%{name}-doc
Summary: Haskell %{name} library documentation
BuildArch: noarch
%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.
@ -122,6 +119,7 @@ This package provides the Haskell %{name} library documentation.
%package -n ghc-%{name}-prof
Summary: Haskell %{name} profiling library
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
Supplements: (ghc-%{name}-devel and ghc-prof)
%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.
@ -164,8 +162,14 @@ cabal-tweak-drop-dep mtl-compat
install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%check
%cabal_test
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%endif
%files
@ -189,6 +193,7 @@ install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%license LICENSE
%endif