* Build gmp with --disable-assembly flag
* libgmp will use the generic C code
Change-Id: I054906bc2427b888f2a5cd4818f053a8d93333b6
Reviewed-on: http://photon-jenkins.eng.vmware.com/720
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>
(cherry picked from commit 4edc20eada0f747884ffaebb53b5b68b44af21bd)
Reviewed-on: http://photon-jenkins.eng.vmware.com/926
Tested-by: suezzelur <anishs@vmware.com>
| ... | ... |
@@ -1,48 +1,50 @@ |
| 1 |
-Summary: Math libraries |
|
| 2 |
-Name: gmp |
|
| 3 |
-Version: 6.0.0a |
|
| 4 |
-Release: 1%{?dist}
|
|
| 5 |
-License: LGPLv3+ |
|
| 6 |
-URL: http://www.gnu.org/software/gmp |
|
| 7 |
-Group: Applications/System |
|
| 8 |
-Vendor: VMware, Inc. |
|
| 9 |
-Distribution: Photon |
|
| 10 |
-Source0: http://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.xz
|
|
| 1 |
+Summary: Math libraries |
|
| 2 |
+Name: gmp |
|
| 3 |
+Version: 6.0.0a |
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 |
+License: LGPLv3+ |
|
| 6 |
+URL: http://www.gnu.org/software/gmp |
|
| 7 |
+Group: Applications/System |
|
| 8 |
+Vendor: VMware, Inc. |
|
| 9 |
+Distribution: Photon |
|
| 10 |
+Source0: http://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.xz
|
|
| 11 | 11 |
%define sha1 gmp=1aaf78358ab9e34aeb61f3ae08174ee9118ece98 |
| 12 | 12 |
%description |
| 13 | 13 |
The GMP package contains math libraries. These have useful functions |
| 14 | 14 |
for arbitrary precision arithmetic. |
| 15 |
-%package devel |
|
| 16 |
-Summary: Header and development files for gmp |
|
| 17 |
-Requires: %{name} = %{version}
|
|
| 18 |
-%description devel |
|
| 19 |
-It contains the libraries and header files to create applications |
|
| 15 |
+%package devel |
|
| 16 |
+Summary: Header and development files for gmp |
|
| 17 |
+Requires: %{name} = %{version}
|
|
| 18 |
+%description devel |
|
| 19 |
+It contains the libraries and header files to create applications |
|
| 20 | 20 |
for handling compiled objects. |
| 21 | 21 |
%prep |
| 22 | 22 |
%setup -q -n gmp-6.0.0 |
| 23 | 23 |
%build |
| 24 | 24 |
%ifarch i386 i486 i586 i686 |
| 25 |
- ABI=32 ./configure \ |
|
| 26 |
- --prefix=%{_prefix} \
|
|
| 27 |
- --enable-cxx \ |
|
| 28 |
- --disable-silent-rules |
|
| 25 |
+ ABI=32 ./configure \ |
|
| 26 |
+ --prefix=%{_prefix} \
|
|
| 27 |
+ --enable-cxx \ |
|
| 28 |
+ --disable-silent-rules \ |
|
| 29 |
+ --disable-assembly |
|
| 29 | 30 |
%else |
| 30 |
- ./configure \ |
|
| 31 |
- --prefix=%{_prefix} \
|
|
| 32 |
- --enable-cxx \ |
|
| 33 |
- --disable-silent-rules |
|
| 31 |
+ ./configure \ |
|
| 32 |
+ --prefix=%{_prefix} \
|
|
| 33 |
+ --enable-cxx \ |
|
| 34 |
+ --disable-silent-rules \ |
|
| 35 |
+ --disable-assembly |
|
| 34 | 36 |
%endif |
| 35 | 37 |
make %{?_smp_mflags}
|
| 36 | 38 |
%install |
| 37 | 39 |
make DESTDIR=%{buildroot} install
|
| 38 | 40 |
install -vdm 755 %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
| 39 |
-cp -v doc/{isa_abi_headache,configuration} doc/*.html %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
| 41 |
+cp -v doc/{isa_abi_headache,configuration} doc/*.html %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
| 40 | 42 |
find %{buildroot}%{_libdir} -name '*.la' -delete
|
| 41 | 43 |
rm -rf %{buildroot}%{_infodir}
|
| 42 | 44 |
%check |
| 43 | 45 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 44 |
-%post -p /sbin/ldconfig |
|
| 45 |
-%postun -p /sbin/ldconfig |
|
| 46 |
+%post -p /sbin/ldconfig |
|
| 47 |
+%postun -p /sbin/ldconfig |
|
| 46 | 48 |
%files |
| 47 | 49 |
%defattr(-,root,root) |
| 48 | 50 |
%{_libdir}/libgmp.so.10
|
| ... | ... |
@@ -61,7 +63,9 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 61 | 61 |
%{_libdir}/libgmpxx.so
|
| 62 | 62 |
%{_libdir}/libgmp.so
|
| 63 | 63 |
%changelog |
| 64 |
-* Tue Jan 12 2016 Xiaolin Li <xiaolinl@vmware.com> 6.0.0-1 |
|
| 65 |
-- Updated to version 6.0.0 |
|
| 66 |
-* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.1.3-1 |
|
| 67 |
-- Initial build. First version |
|
| 64 |
+* Thu Apr 14 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 6.0.0a-2 |
|
| 65 |
+- Disable assembly and use generic C code |
|
| 66 |
+* Tue Jan 12 2016 Xiaolin Li <xiaolinl@vmware.com> 6.0.0a-1 |
|
| 67 |
+- Updated to version 6.0.0 |
|
| 68 |
+* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.1.3-1 |
|
| 69 |
+- Initial build. First version |