]> git.pld-linux.org Git - packages/gmp.git/blobdiff - gmp.spec
- updated to 6.3.0
[packages/gmp.git] / gmp.spec
index cc24881b4eb88eebcf938716f2f4a835a11dfed1..0b0675505199768791a58e1266795618a94effe6 100644 (file)
--- a/gmp.spec
+++ b/gmp.spec
@@ -12,21 +12,25 @@ Summary(pt_BR.UTF-8):       Biblioteca de precisão arbitrária da GNU
 Summary(uk.UTF-8):     Бібліотека GNU довільної точності
 Summary(ru.UTF-8):     Библиотека GNU произвольной точности
 Name:          gmp
-Version:       4.2.2
-Release:       2
+Version:       6.3.0
+Release:       1
 License:       LGPL v3+
 Group:         Libraries
-Source0:       ftp://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.bz2
-# Source0-md5: 7ce52531644e6d12f16911b7e3151f3f
+Source0:       https://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.lz
+# Source0-md5: db3f4050677df3ff2bd23422c0d3caa1
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-multilib.patch
-URL:           http://gmplib.org/
-BuildRequires: autoconf >= 2.52
-BuildRequires: automake
+Patch2:                %{name}-cpu.patch
+Patch3:                %{name}-tinfo.patch
+URL:           https://gmplib.org/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.8
 %{?with_cxx:BuildRequires:     libstdc++-devel}
-BuildRequires: libtool >= 2:1.4d-3
+BuildRequires: libtool >= 2:2
+BuildRequires: lzip
+BuildRequires: tar >= 1:1.22
 BuildRequires: texinfo
-Obsoletes:     libgmp3
+Obsoletes:     libgmp3 < 4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -103,7 +107,7 @@ Summary(uk.UTF-8):  Інструменти розробки для бібліот
 Summary(ru.UTF-8):     Инструменты разработки для библиотеки GNU произвольной точности
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Obsoletes:     libgmp3-devel
+Obsoletes:     libgmp3-devel < 4
 
 %description devel
 The header files and documentation for using the GNU MP arbitrary
@@ -167,44 +171,6 @@ Bibliotecas estáticas para desenvolvimento com gmp.
 %description static -l ru.UTF-8
 Это статическая библиотека GNU произвольной точности.
 
-%package bsd
-Summary:       GNU arbitrary precision library - BSD-compatible MP library
-Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD
-Group:         Libraries
-# doesn't require base
-
-%description bsd
-This package contains BSD-compatible MP library based on GNU MP.
-
-%description bsd -l pl.UTF-8
-Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP.
-
-%package bsd-devel
-Summary:       GNU arbitrary precision library - BSD-compatible MP API
-Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU - API MP kompatybilne z BSD
-Group:         Development/Libraries
-Requires:      %{name}-bsd = %{version}-%{release}
-
-%description bsd-devel
-This package contains BSD-compatible MP library header file.
-
-%description bsd-devel -l pl.UTF-8
-Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD.
-
-%package bsd-static
-Summary:       GNU arbitrary precision library - BSD-compatible static MP library
-Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU - biblioteka statyczna MP kompatybilna z BSD
-Group:         Development/Libraries
-Requires:      %{name}-bsd-devel = %{version}-%{release}
-
-%description bsd-static
-This package contains BSD-compatible MP static library based on GNU
-MP.
-
-%description bsd-static -l pl.UTF-8
-Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą
-na GNU MP.
-
 %package c++
 Summary:       GNU arbitrary precision library - C++ interface
 Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU - interfejs C++
@@ -249,10 +215,12 @@ arytmetycznej GNU.
 %prep
 %setup -q
 %patch0 -p1
-%ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
+%ifarch %{ix86} %{x8664} x32 %{arm} aarch64 ppc ppc64 s390 s390x sparc sparcv9 sparc64
 # ugly hack, don't apply on other archs (also recheck sizes on each upgrade)
 %patch1 -p1
 %endif
+%patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
@@ -260,10 +228,12 @@ arytmetycznej GNU.
 %{__autoconf}
 %{__automake}
 %configure \
+%ifarch x32
+       ABI=x32 \
+%endif
        --with-cpu=%{_target_cpu} \
        %{?with_cxx:--enable-cxx} \
-       --enable-fft \
-       --enable-mpbsd
+       --enable-fft
 
 %{__make}
 %{?with_tests:%{__make} check}
@@ -280,14 +250,11 @@ rm -rf $RPM_BUILD_ROOT
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%post devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%post  bsd -p /sbin/ldconfig
-%postun        bsd -p /sbin/ldconfig
+%postun        devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %post  c++ -p /sbin/ldconfig
 %postun        c++ -p /sbin/ldconfig
@@ -296,33 +263,20 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
 %attr(755,root,root) %{_libdir}/libgmp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgmp.so.3
+%attr(755,root,root) %ghost %{_libdir}/libgmp.so.10
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libgmp.so
 %{_libdir}/libgmp.la
 %{_includedir}/gmp.h
+%{_pkgconfigdir}/gmp.pc
 %{_infodir}/gmp.info*
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libgmp.a
 
-%files bsd
-%attr(755,root,root) %{_libdir}/libmp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libmp.so.3
-
-%files bsd-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libmp.so
-%{_libdir}/libmp.la
-%{_includedir}/mp.h
-
-%files bsd-static
-%defattr(644,root,root,755)
-%{_libdir}/libmp.a
-
 %if %{with cxx}
 %files c++
 %defattr(644,root,root,755)
@@ -334,6 +288,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libgmpxx.so
 %{_libdir}/libgmpxx.la
 %{_includedir}/gmpxx.h
+%{_pkgconfigdir}/gmpxx.pc
 
 %files c++-static
 %defattr(644,root,root,755)
This page took 0.327968 seconds and 4 git commands to generate.