]> git.pld-linux.org Git - packages/gmp.git/blobdiff - gmp.spec
- posted highly destroyed version, now good (really)
[packages/gmp.git] / gmp.spec
index 6118948fdd2df2172c9e0153871ab4f0106b6812..0d8f58efba2a83c215e273f73d4c038ef083425e 100644 (file)
--- a/gmp.spec
+++ b/gmp.spec
@@ -6,7 +6,7 @@
 # _with_k6     - with AMD K6 instructions              (i586 target)
 # _with_k62    - with AMD K6-2/K6-3 instructions       (i586 target)
 # _with_k7     - with AMD Athlon/Duron instructions    (i686 target)
-#
+
 Summary:       GNU arbitrary precision library
 Summary(de):   Beliebige Genauigkeits-Library
 Summary(fr):   Bibliothèque de calcul de précision
@@ -16,8 +16,8 @@ Summary(ru):  
 Summary(pt_BR):        Biblioteca de precisão arbitrária da GNU
 Summary(es):   Biblioteca de precisión arbitraria de la GNU
 Name:          gmp
-Version:       3.1.1
-Release:       5
+Version:       4.0
+Release:       4
 License:       LGPL
 Group:         Libraries
 Group(de):     Libraries
@@ -29,18 +29,21 @@ Group(ru):  
 Group(uk):     â¦Â̦ÏÔÅËÉ
 Source0:       ftp://ftp.gnu.org/pub/gnu/gmp/%{name}-%{version}.tar.gz
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-asmcpu.patch
-Patch2:                %{name}-acfix.patch
+Patch1:                %{name}-am_fix.patch
 URL:           http://www.swox.com/gmp/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: libtool
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     libgmp3
 
 %ifarch i586
-%define asmcpu %{?_with_k62:k62}%{!?_with_k62:%{?_with_k6:k6}%{!?_with_k6:%{?_with_mmx:pentiummmx}%{!?_with_mmx:i586}}}
-%endif
+%define _cpu %{?_with_k62:k62}%{!?_with_k62:%{?_with_k6:k6}%{!?_with_k6:%{?_with_mmx:pentiummmx}%{!?_with_mmx:i586}}}
+%else
 %ifarch i686
-%define asmcpu %{?_with_p3mmx:pentium3}%{!?_with_p3mmx:%{?_with_k7:athlon}%{!?_with_k7:%{?_with_mmx:pentium2}%{!?_with_mmx:i686}}}
+%define _cpu %{?_with_p3mmx:pentium3}%{!?_with_p3mmx:%{?_with_k7:athlon}%{!?_with_k7:%{?_with_mmx:pentium2}%{!?_with_mmx:i686}}}
+%else
+%define _cpu %{_arch}
 %endif
 
 %description
@@ -124,6 +127,7 @@ Group(pt_BR):       Desenvolvimento/Bibliotecas
 Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
 Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
 Requires:      %{name} = %{version} 
+Obsoletes:     libgmp3-devel
 
 %description devel
 The static libraries, header files and documentation for using the GNU
@@ -199,14 +203,17 @@ Bibliotecas est
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
+rm -f missing
 libtoolize --copy --force
 aclocal
 autoconf
+automake -a -c
 %configure \
-       --with-cpu=%{asmcpu}
+       --host=%{_cpu}-%{_vendor}-%{_target_os} \
+       --enable-cxx \
+       --enable-fft
 
 %{__make}
 
@@ -216,7 +223,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf AUTHORS ChangeLog
+gzip -9nf AUTHORS ChangeLog NEWS README
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.035604 seconds and 4 git commands to generate.