diff --git a/gmp-mparam.h b/gmp-mparam.h index ad31971..6eaee2e 100644 --- a/gmp-mparam.h +++ b/gmp-mparam.h @@ -34,7 +34,9 @@ MA 02111-1307, USA. */ #endif #define gmp_mparam_wrapper_h -#if defined(__i386__) +#if defined(__arm__) +#include "gmp-mparam-arm.h" +#elif defined(__i386__) #include "gmp-mparam-i386.h" #elif defined(__ia64__) #include "gmp-mparam-ia64.h" diff --git a/gmp.h b/gmp.h index 3f4957e..b11c20e 100644 --- a/gmp.h +++ b/gmp.h @@ -35,7 +35,9 @@ MA 02111-1307, USA. */ #endif #define gmp_wrapper_h -#if defined(__i386__) +#if defined(__arm__) +#include "gmp-arm.h" +#elif defined(__i386__) #include "gmp-i386.h" #elif defined(__ia64__) #include "gmp-ia64.h" diff --git a/gmp.spec b/gmp.spec index d37a46d..c215f51 100644 --- a/gmp.spec +++ b/gmp.spec @@ -8,8 +8,8 @@ Summary: A GNU arbitrary precision library Name: gmp Version: 4.2.1 -Release: 1%{dist} -URL: http://www.swox.com/gmp/ +Release: 2%{dist} +URL: http://gmplib.org/ Source0: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2 Source2: gmp.h Source3: gmp-mparam.h @@ -119,6 +119,10 @@ basearch=%{_arch} %ifarch %{ix86} basearch=i386 %endif +# always use arm for arm* +%ifarch %{arm} +basearch=arm +%endif # Rename files and install wrappers mv %{buildroot}/%{_includedir}/gmp.h %{buildroot}/%{_includedir}/gmp-${basearch}.h @@ -180,6 +184,10 @@ exit 0 %{_infodir}/gmp.info* %changelog +* Tue Aug 7 2007 Ivana Varekova 4.2.1-2 +- add arm support (#245456) + thanks to Lennert Buytenhek + * Mon Aug 6 2007 Ivana Varekova 4.2.1-1 - update to 4.2.1 - do some spec cleanups