From e0a191a3e60369f433ef47602588fa325fe86b45 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Feb 19 2020 18:19:11 +0000 Subject: refresh to cabal-rpm-2.0.2 --- diff --git a/shake.spec b/shake.spec index 3feba79..e54234f 100644 --- a/shake.spec +++ b/shake.spec @@ -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 shake @@ -11,6 +11,7 @@ %global jsdgtable js-dgtable-0.5.2 %global subpkgs %{jsflot} %{jsjquery} %{filepattern} %{heaps} %{jsdgtable} +# failing to build %bcond_with tests Name: %{pkg_name} @@ -54,7 +55,6 @@ BuildRequires: ghc-transformers-prof BuildRequires: ghc-unix-prof BuildRequires: ghc-unordered-containers-prof BuildRequires: ghc-utf8-string-prof -BuildRequires: chrpath %if %{with tests} BuildRequires: ghc-QuickCheck-devel %endif @@ -126,6 +126,7 @@ information (e.g. compiler version). %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. @@ -136,6 +137,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. @@ -187,6 +189,16 @@ rm %{buildroot}%{_datadir}/%{pkgver}/docs/manual/* %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: %{_bindir}/%{name} @@ -209,6 +221,7 @@ rm %{buildroot}%{_datadir}/%{pkgver}/docs/manual/* %if %{with haddock} %files -n ghc-%{name}-doc -f ghc-%{name}-doc.files +%license LICENSE %endif