refresh to cabal-rpm-2.0.2

This commit is contained in:
Jens Petersen 2020-02-08 22:53:13 +08:00
parent b26b896bf0
commit ec6f2b9de4
1 changed files with 14 additions and 1 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 xmobar
@ -100,6 +100,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.
@ -110,6 +111,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.
@ -159,6 +161,16 @@ install --mode=0755 -p examples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpro
%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
# Begin cabal-rpm files:
%license license
@ -182,6 +194,7 @@ install --mode=0755 -p examples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpro
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%license license
%endif