diff --git a/colourista-testsuite-ppc.patch b/colourista-testsuite-ppc.patch new file mode 100644 index 0000000..8911466 --- /dev/null +++ b/colourista-testsuite-ppc.patch @@ -0,0 +1,10 @@ +--- colourista-0.1.0.1/colourista.cabal~ 2001-09-09 09:46:40.000000000 +0800 ++++ colourista-0.1.0.1/colourista.cabal 2023-02-17 09:22:56.784571275 +0800 +@@ -89,5 +89,6 @@ + , text + + ghc-options: -threaded +- -rtsopts ++ if(!arch(ppc64)) ++ ghc-options: -rtsopts + -with-rtsopts=-N diff --git a/ghc-colourista.spec b/ghc-colourista.spec index d702f0a..fd06641 100644 --- a/ghc-colourista.spec +++ b/ghc-colourista.spec @@ -19,6 +19,7 @@ Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz # End cabal-rpm sources +Patch0: colourista-testsuite-ppc.patch # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel @@ -82,6 +83,7 @@ This package provides the Haskell %{pkg_name} profiling library. # Begin cabal-rpm setup: %setup -q -n %{pkgver} # End cabal-rpm setup +%patch0 -p1 -b .orig %build