- add superH support (#437688)
This commit is contained in:
parent
c26ffb5a7c
commit
7ea96a3fa1
@ -52,6 +52,8 @@ MA 02111-1307, USA. */
|
|||||||
#include "gmp-mparam-x86_64.h"
|
#include "gmp-mparam-x86_64.h"
|
||||||
#elif defined(__alpha__)
|
#elif defined(__alpha__)
|
||||||
#include "gmp-mparam-alpha.h"
|
#include "gmp-mparam-alpha.h"
|
||||||
|
#elif defined(__sh__)
|
||||||
|
#include "gmp-mparam-sh.h"
|
||||||
#else
|
#else
|
||||||
#error "The gmp-devel package is not usable with the architecture."
|
#error "The gmp-devel package is not usable with the architecture."
|
||||||
#endif
|
#endif
|
||||||
|
2
gmp.h
2
gmp.h
@ -53,6 +53,8 @@ MA 02111-1307, USA. */
|
|||||||
#include "gmp-x86_64.h"
|
#include "gmp-x86_64.h"
|
||||||
#elif defined(__alpha__)
|
#elif defined(__alpha__)
|
||||||
#include "gmp-alpha.h"
|
#include "gmp-alpha.h"
|
||||||
|
#elif defined(__sh__)
|
||||||
|
#include "gmp-sh.h"
|
||||||
#else
|
#else
|
||||||
#error "The gmp-devel package is not usable with the architecture."
|
#error "The gmp-devel package is not usable with the architecture."
|
||||||
#endif
|
#endif
|
||||||
|
9
gmp.spec
9
gmp.spec
@ -8,7 +8,7 @@
|
|||||||
Summary: A GNU arbitrary precision library
|
Summary: A GNU arbitrary precision library
|
||||||
Name: gmp
|
Name: gmp
|
||||||
Version: 4.2.2
|
Version: 4.2.2
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
URL: http://gmplib.org/
|
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
|
||||||
@ -132,6 +132,10 @@ basearch=i386
|
|||||||
%ifarch %{arm}
|
%ifarch %{arm}
|
||||||
basearch=arm
|
basearch=arm
|
||||||
%endif
|
%endif
|
||||||
|
# superH architecture support
|
||||||
|
%ifarch sh3 sh4
|
||||||
|
basearch=sh
|
||||||
|
%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
|
||||||
@ -199,6 +203,9 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 19 2008 Ivana Varekova <varekova@redhat.com> 4.2.2-7
|
||||||
|
- add superH support (#437688)
|
||||||
|
|
||||||
* Wed Feb 13 2008 Ivana varekova <varekova@redhat.com> 4.2.2-6
|
* Wed Feb 13 2008 Ivana varekova <varekova@redhat.com> 4.2.2-6
|
||||||
- fix gcc-4.3 problem - add <cstdio> (#432336)
|
- fix gcc-4.3 problem - add <cstdio> (#432336)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user