diff --git a/gmp-mparam.h b/gmp-mparam.h index 6eaee2e..906e194 100644 --- a/gmp-mparam.h +++ b/gmp-mparam.h @@ -52,6 +52,8 @@ MA 02111-1307, USA. */ #include "gmp-mparam-x86_64.h" #elif defined(__alpha__) #include "gmp-mparam-alpha.h" +#elif defined(__sh__) +#include "gmp-mparam-sh.h" #else #error "The gmp-devel package is not usable with the architecture." #endif diff --git a/gmp.h b/gmp.h index b11c20e..e9f4eed 100644 --- a/gmp.h +++ b/gmp.h @@ -53,6 +53,8 @@ MA 02111-1307, USA. */ #include "gmp-x86_64.h" #elif defined(__alpha__) #include "gmp-alpha.h" +#elif defined(__sh__) +#include "gmp-sh.h" #else #error "The gmp-devel package is not usable with the architecture." #endif diff --git a/gmp.spec b/gmp.spec index 212f5ae..649cdb2 100644 --- a/gmp.spec +++ b/gmp.spec @@ -8,7 +8,7 @@ Summary: A GNU arbitrary precision library Name: gmp Version: 4.2.2 -Release: 6%{?dist} +Release: 7%{?dist} URL: http://gmplib.org/ Source0: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2 Source2: gmp.h @@ -132,6 +132,10 @@ basearch=i386 %ifarch %{arm} basearch=arm %endif +# superH architecture support +%ifarch sh3 sh4 +basearch=sh +%endif # Rename files and install wrappers mv %{buildroot}/%{_includedir}/gmp.h %{buildroot}/%{_includedir}/gmp-${basearch}.h @@ -199,6 +203,9 @@ exit 0 %changelog +* Wed Mar 19 2008 Ivana Varekova 4.2.2-7 +- add superH support (#437688) + * Wed Feb 13 2008 Ivana varekova 4.2.2-6 - fix gcc-4.3 problem - add (#432336)