From b54e5948eda2bb7c2f376796c2e73988373b5384 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 8 Feb 2020 22:53:13 +0800 Subject: [PATCH] refresh to cabal-rpm-2.0.2 --- xmonad.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/xmonad.spec b/xmonad.spec index ebabbc6..c16c3d3 100644 --- a/xmonad.spec +++ b/xmonad.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-1.0.1 +# generated by cabal-rpm-2.0.2 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name xmonad @@ -8,7 +8,7 @@ Name: %{pkg_name} Version: 0.15 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A tiling window manager License: BSD @@ -156,6 +156,7 @@ in a MATE session. %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. @@ -166,6 +167,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. @@ -203,6 +205,16 @@ install -p -m 0644 -D %SOURCE7 %{buildroot}%{_datadir}/xmonad/xmonad.hs %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 @@ -237,6 +249,7 @@ install -p -m 0644 -D %SOURCE7 %{buildroot}%{_datadir}/xmonad/xmonad.hs %if %{with haddock} %files -n ghc-%{name}-doc -f ghc-%{name}-doc.files +%license LICENSE %endif @@ -246,6 +259,9 @@ install -p -m 0644 -D %SOURCE7 %{buildroot}%{_datadir}/xmonad/xmonad.hs %changelog +* Wed Feb 19 2020 Jens Petersen - 0.15-5 +- refresh to cabal-rpm-2.0.2 + * Fri Jan 31 2020 Fedora Release Engineering - 0.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild