_arch fits Cabal better for ghclibplatform

This commit is contained in:
Jens Petersen 2021-12-20 13:45:07 +08:00
parent ad76ca4d4c
commit 400c117550
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@
%endif
Name: ghc-rpm-macros
Version: 2.3.7
Version: 2.3.8
Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC
@ -184,6 +184,9 @@ EOF
%changelog
* Mon Dec 20 2021 Jens Petersen <petersen@redhat.com> - 2.3.8-1
- _arch fits Cabal better for ghclibplatform
* Mon Dec 20 2021 Jens Petersen <petersen@redhat.com> - 2.3.7-1
- ghclibplatform: Cabal uses i386 for i686

View File

@ -67,7 +67,7 @@ fi\
%ghcliblib %{ghclibdir}%{?with_hadrian:/lib}
# Cabal has specific arch names
%ghclibplatform %{ghcliblib}%{?with_hadrian:/%(arch | sed -e "s/ppc64le/ppc64/" -e "s/i686/i386/")-linux-ghc-%{ghc_version}}
%ghclibplatform %{ghcliblib}%{?with_hadrian:/%(echo %{_arch} | sed -e "s/ppc64le/ppc64/")-linux-ghc-%{ghc_version}}
# ghc_gen_filelists [name] [version]
%ghc_gen_filelists()\