diff --git a/ghc-network-info.changes b/ghc-network-info.changes index 4d5d768..ff61f18 100644 --- a/ghc-network-info.changes +++ b/ghc-network-info.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 17 12:20:00 UTC 2020 - Ondřej Súkup + +- force i686 arch on i586 + ------------------------------------------------------------------- Mon Aug 31 09:34:36 UTC 2020 - psimons@suse.com diff --git a/ghc-network-info.spec b/ghc-network-info.spec index c848309..2949042 100644 --- a/ghc-network-info.spec +++ b/ghc-network-info.spec @@ -27,6 +27,12 @@ Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +# GHC dont support i586 +%ifarch %{ix86} +ExclusiveArch: i586 i686 +ExclusiveArch: i686 +%{expand:%%global optflags %(echo "%{optflags}"|sed -e s/i586/i686/) -march=i686 -mtune=generic} +%endif %description This library provides simple read-only access to the local computer's @@ -48,7 +54,7 @@ Requires(postun): ghc-compiler = %{ghc_version} This package provides the Haskell %{pkg_name} library development files. %prep -%setup -q -n %{pkg_name}-%{version} +%autosetup -n %{pkg_name}-%{version} cp -p %{SOURCE1} %{pkg_name}.cabal %build