|
@@ -1,7 +1,7 @@
|
|
|
-%define configure CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; ./configure %{_target_platform} --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --datadir=%{_datadir} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir}
|
|
|
-%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
-
|
|
|
+#
|
|
|
+# Important for %{ix86}:
|
|
|
# This rpm has to be build on a CPU with sse2 support like Pentium 4 !
|
|
|
+#
|
|
|
%ifarch %{ix86}
|
|
|
%define SSE2 1
|
|
|
%else
|
|
@@ -11,11 +11,13 @@
|
|
|
# Don't you want to build a libraries using SSE2?
|
|
|
%{?_without_sse2%define SSE2 0}
|
|
|
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
Summary: A GNU arbitrary precision library.
|
|
|
Summary(ja): GNU 多倍長演算ライブラリ
|
|
|
Name: gmp
|
|
|
-Version: 4.3.1
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 4.3.2
|
|
|
+Release: 1%{?_dist_release}
|
|
|
URL: http://gmplib.org/
|
|
|
Source: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2
|
|
|
Source2: gmp.h
|
|
@@ -29,7 +31,7 @@ Obsoletes: gmp4
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
-
|
|
|
+Packager: inagaki, kenta
|
|
|
|
|
|
%description
|
|
|
The gmp package contains GNU MP, a library for arbitrary precision
|
|
@@ -129,11 +131,13 @@ make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
|
|
cd ..
|
|
|
|
|
|
%if %{SSE2}
|
|
|
+%define _host pentium4-vine-linux
|
|
|
mkdir build-sse2
|
|
|
cd build-sse2
|
|
|
ln -s ../configure .
|
|
|
CFLAGS="%{optflags} -march=pentium4"
|
|
|
-%configure --enable-mpbsd --enable-cxx pentium4-vine-linux
|
|
|
+%configure --enable-mpbsd --enable-cxx
|
|
|
+
|
|
|
perl -pi -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=\"-L\\\$libdir\"|g;' libtool
|
|
|
export LD_LIBRARY_PATH=`pwd`/.libs
|
|
|
make %{?_smp_mflags}
|
|
@@ -227,7 +231,7 @@ fi
|
|
|
|
|
|
|
|
|
%files
|
|
|
-%defattr(-,root,root)
|
|
|
+%defattr(-,root,root,-)
|
|
|
%doc COPYING COPYING.LIB NEWS README
|
|
|
%{_libdir}/libgmp.so.*
|
|
|
%{_libdir}/libmp.so.*
|
|
@@ -237,7 +241,7 @@ fi
|
|
|
%endif
|
|
|
|
|
|
%files devel
|
|
|
-%defattr(-,root,root)
|
|
|
+%defattr(-,root,root,-)
|
|
|
%{_libdir}/libmp.so
|
|
|
%{_libdir}/libgmp.so
|
|
|
%{_libdir}/libgmpxx.so
|
|
@@ -256,7 +260,7 @@ fi
|
|
|
# compat32
|
|
|
%if %{build_compat32}
|
|
|
%files -n compat32-%{name}
|
|
|
-%defattr(-,root,root)
|
|
|
+%defattr(-,root,root,-)
|
|
|
%{_libdir}/libgmp.so.*
|
|
|
%{_libdir}/libmp.so.*
|
|
|
%{_libdir}/libgmpxx.so.*
|
|
@@ -265,7 +269,7 @@ fi
|
|
|
%endif
|
|
|
|
|
|
%files -n compat32-%{name}-devel
|
|
|
-%defattr(-,root,root)
|
|
|
+%defattr(-,root,root,-)
|
|
|
%{_libdir}/libmp.so
|
|
|
%{_libdir}/libgmp.so
|
|
|
%{_libdir}/libgmpxx.so
|
|
@@ -280,6 +284,9 @@ fi
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Apr 19 2011 NAKAMURA Kenta <kenta@vinelinux.org> 4.3.2-1
|
|
|
+- new upstream release
|
|
|
+
|
|
|
* Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 4.3.1-2
|
|
|
- rebuilt with rpm-4.8.1-3
|
|
|
|