- add arm support (#245456) thanks to Lennert Buytenhek
This commit is contained in:
parent
d6afb23e92
commit
a59e78a306
@ -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"
|
||||
|
4
gmp.h
4
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"
|
||||
|
12
gmp.spec
12
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 <varekova@redhat.com> 4.2.1-2
|
||||
- add arm support (#245456)
|
||||
thanks to Lennert Buytenhek
|
||||
|
||||
* Mon Aug 6 2007 Ivana Varekova <varekova@redhat.com> 4.2.1-1
|
||||
- update to 4.2.1
|
||||
- do some spec cleanups
|
||||
|
Loading…
Reference in New Issue
Block a user