- 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
|
#endif
|
||||||
#define gmp_mparam_wrapper_h
|
#define gmp_mparam_wrapper_h
|
||||||
|
|
||||||
#if defined(__i386__)
|
#if defined(__arm__)
|
||||||
|
#include "gmp-mparam-arm.h"
|
||||||
|
#elif defined(__i386__)
|
||||||
#include "gmp-mparam-i386.h"
|
#include "gmp-mparam-i386.h"
|
||||||
#elif defined(__ia64__)
|
#elif defined(__ia64__)
|
||||||
#include "gmp-mparam-ia64.h"
|
#include "gmp-mparam-ia64.h"
|
||||||
|
4
gmp.h
4
gmp.h
@ -35,7 +35,9 @@ MA 02111-1307, USA. */
|
|||||||
#endif
|
#endif
|
||||||
#define gmp_wrapper_h
|
#define gmp_wrapper_h
|
||||||
|
|
||||||
#if defined(__i386__)
|
#if defined(__arm__)
|
||||||
|
#include "gmp-arm.h"
|
||||||
|
#elif defined(__i386__)
|
||||||
#include "gmp-i386.h"
|
#include "gmp-i386.h"
|
||||||
#elif defined(__ia64__)
|
#elif defined(__ia64__)
|
||||||
#include "gmp-ia64.h"
|
#include "gmp-ia64.h"
|
||||||
|
12
gmp.spec
12
gmp.spec
@ -8,8 +8,8 @@
|
|||||||
Summary: A GNU arbitrary precision library
|
Summary: A GNU arbitrary precision library
|
||||||
Name: gmp
|
Name: gmp
|
||||||
Version: 4.2.1
|
Version: 4.2.1
|
||||||
Release: 1%{dist}
|
Release: 2%{dist}
|
||||||
URL: http://www.swox.com/gmp/
|
URL: http://gmplib.org/
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2
|
Source0: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2
|
||||||
Source2: gmp.h
|
Source2: gmp.h
|
||||||
Source3: gmp-mparam.h
|
Source3: gmp-mparam.h
|
||||||
@ -119,6 +119,10 @@ basearch=%{_arch}
|
|||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
basearch=i386
|
basearch=i386
|
||||||
%endif
|
%endif
|
||||||
|
# always use arm for arm*
|
||||||
|
%ifarch %{arm}
|
||||||
|
basearch=arm
|
||||||
|
%endif
|
||||||
# Rename files and install wrappers
|
# Rename files and install wrappers
|
||||||
|
|
||||||
mv %{buildroot}/%{_includedir}/gmp.h %{buildroot}/%{_includedir}/gmp-${basearch}.h
|
mv %{buildroot}/%{_includedir}/gmp.h %{buildroot}/%{_includedir}/gmp-${basearch}.h
|
||||||
@ -180,6 +184,10 @@ exit 0
|
|||||||
%{_infodir}/gmp.info*
|
%{_infodir}/gmp.info*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Aug 6 2007 Ivana Varekova <varekova@redhat.com> 4.2.1-1
|
||||||
- update to 4.2.1
|
- update to 4.2.1
|
||||||
- do some spec cleanups
|
- do some spec cleanups
|
||||||
|
Loading…
Reference in New Issue
Block a user