]> git.pld-linux.org Git - packages/gmp.git/blobdiff - gmp.spec
- updated to 6.3.0
[packages/gmp.git] / gmp.spec
index 3211115b0c85c2616103c827280d81b7b7b46bcf..0b0675505199768791a58e1266795618a94effe6 100644 (file)
--- a/gmp.spec
+++ b/gmp.spec
@@ -1,45 +1,37 @@
 #
-# Conditional build (only one option at time makes sense; if more specified
-#   - only "highest" is used):
-# _with_mmx    - with MMX instructions                 (i586, i686 targets)
-# _with_p3mmx  - with Pentium /// MMX instructions     (i686 target)
-# _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)
-
+# Conditional build:
+%bcond_without cxx     # don't build C++ interface
+%bcond_without tests   # don't perform tests
+#
 Summary:       GNU arbitrary precision library
-Summary(de):   Beliebige Genauigkeits-Library
-Summary(es):   Biblioteca de precisión arbitraria de la GNU
-Summary(fr):   Bibliothèque de calcul de précision
-Summary(pl):   Biblioteka arytmetyczna GNU
-Summary(pt_BR):        Biblioteca de precisão arbitrária da GNU
-Summary(uk):   â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
-Summary(ru):   âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
+Summary(de.UTF-8):     Beliebige Genauigkeits-Library
+Summary(es.UTF-8):     Biblioteca de precisión arbitraria de la GNU
+Summary(fr.UTF-8):     Bibliothèque de calcul de précision
+Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU
+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.1
+Version:       6.3.0
 Release:       1
-License:       LGPL
+License:       LGPL v3+
 Group:         Libraries
-Source0:       ftp://ftp.gnu.org/pub/gnu/gmp/%{name}-%{version}.tar.gz
+Source0:       https://ftp.gnu.org/gnu/gmp/%{name}-%{version}.tar.lz
+# Source0-md5: db3f4050677df3ff2bd23422c0d3caa1
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-am_fix.patch
-Patch2:                %{name}-asmcpu.patch
-URL:           http://www.swox.com/gmp/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+Patch1:                %{name}-multilib.patch
+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:2
+BuildRequires: lzip
+BuildRequires: tar >= 1:1.22
+BuildRequires: texinfo
+Obsoletes:     libgmp3 < 4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Obsoletes:     libgmp3
-
-%ifarch i586
-%define _cpu %{?_with_k62:k62}%{!?_with_k62:%{?_with_k6:k6}%{!?_with_k6:%{?_with_mmx:pentiummmx}%{!?_with_mmx:i586}}}
-%else
-%ifarch i686
-%define _cpu %{?_with_p3mmx:pentium3}%{!?_with_p3mmx:%{?_with_k7:athlon}%{!?_with_k7:%{?_with_mmx:pentium2}%{!?_with_mmx:i686}}}
-%else
-%define _cpu %{_arch}
-%endif
-%endif
 
 %description
 The gmp package contains GNU MP, a library for arbitrary precision
@@ -53,151 +45,198 @@ generally emphasizes speed over simplicity/elegance in its operations.
 Install the gmp package if you need a fast arbitrary precision
 library.
 
-%description -l de
-Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
+%description -l de.UTF-8
+Das gmp-paket enthält GNU MP, eine Library für Arithmetik bei
 beliebiger Genauigkeit, Operationen mit Intergern mit Vorzeichen,
-Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
-Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
-optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
+Rationale Zahlen, und Floating Point-Zahlen. GNU MP wurde für
+Geschwindigkeit sowohl für kleine als auch für sehr große Operanden
+optimiert. GNU MP ist aus mehreren Gründen schnell: Es benutzt
 fullwords als grundlegenden Arithmetik-Typ, benutzt schnelle
-Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
+Algorithmen, und benutzt Assembler-Code für verschiedene CPUs, und
 legt mehr Wert auf Geschwindigkeit als auf Einfachheit der Funktionen.
 
-Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
+Installieren Sie das gmp-Paket, wenn Sie eine schnelle Library für
 beliebige Genauigket brauchen.
 
-%description -l es
-Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
-funciones para manipular arbitrariamente grandes números con
+%description -l es.UTF-8
+Esta es la biblioteca GNU de precisión arbitraria. Da acceso a
+funciones para manipular arbitrariamente grandes números con
 interfaces de alto o bajo nivel.
 
-%description -l fr
-Ce package contient la bibliothèque GNU MP. Cette dernière permet de
-calculer avec une grande précision sur des nombres entiers, rationnels
-ou même des fractions, signés ou non. GNU MP a été conçue pour être
-rapide pour les petits nombres ainsi que les très grands grâce à
-plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
-algorithmes optimisés, utilisation de l'assembleur pour les routines
-critiques) parfois au détriment de la simplicité ou l'élégance.
-
-Installez ce package si vous avez besoin d'une bibliothèque de calcul
-de précision rapide
-
-%description -l pl
-Pakiet zawiera bibliotekê arytmetyczn± wysokiej precyzji. Daje ona
-dostêp do szerokiego grona szybkich funkcji arytmetycznych
-dzia³aj±cych na liczbach ca³kowitych, rzeczywistych i
+%description -l fr.UTF-8
+Ce package contient la bibliothèque GNU MP. Cette dernière permet de
+calculer avec une grande précision sur des nombres entiers, rationnels
+ou même des fractions, signés ou non. GNU MP a été conçue pour être
+rapide pour les petits nombres ainsi que les très grands grâce à
+plusieurs techniques (calcul sur plusieurs chiffres hexa simultanés,
+algorithmes optimisés, utilisation de l'assembleur pour les routines
+critiques) parfois au détriment de la simplicité ou l'élégance.
+
+Installez ce package si vous avez besoin d'une bibliothèque de calcul
+de précision rapide
+
+%description -l pl.UTF-8
+Pakiet zawiera bibliotekę arytmetyczną wysokiej precyzji. Daje ona
+dostęp do szerokiego grona szybkich funkcji arytmetycznych
+działających na liczbach całkowitych, rzeczywistych i
 zmiennoprzecinkowych.
 
-%description -l pt_BR
-Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
-funções para manipular arbitrariamente grandes números com interfaces
-de alto ou baixo nível.
+%description -l pt_BR.UTF-8
+Esta é a biblioteca GNU de precisão arbitrária. Ela dá acesso a
+funções para manipular arbitrariamente grandes números com interfaces
+de alto ou baixo nível.
 
-%description -l uk
-㊦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦. ú¦ÒËÁ ÐÒÏÇÒÁÍ Ú ÎÅÀ ÎÁÄÁ¤ ÃÉÍ
ÒÏÇÒÁÍÁÍ ÄÏÓÔÕРÄÏ ÆÕÎËæʠÄÌÑ ÒÏÂÏÔÉ Ú ÑË ÚÁ×ÇÏÄÎÏ ×ÅÌÉËÉÍÉ ÞÉÓÌÁÍÉ
-ÞÅÒÅÚ ¦ÎÔÅÒÆÅÊÓÉ ÑË ÎÉÚØËÏÇÏ ÔÁË ¦ ×ÉÓÏËÏÇÏ Ò¦×ÎÑ.
+%description -l uk.UTF-8
+Це бібліотека GNU довільної точності. Збірка програм з нею надає цим
¿Ñ\80огÑ\80амам Ð´Ð¾Ñ\81Ñ\82Ñ\83п Ð´Ð¾ Ñ\84Ñ\83нкÑ\86Ñ\96й Ð´Ð»Ñ\8f Ñ\80обоÑ\82и Ð· Ñ\8fк Ð·Ð°Ð²Ð³Ð¾Ð´Ð½Ð¾ Ð²ÐµÐ»Ð¸ÐºÐ¸Ð¼Ð¸ Ñ\87иÑ\81лами
+через інтерфейси як низького так і високого рівня.
 
-%description -l ru
-üÔÏ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ. óÂÏÒËÁ Ó ÎÅÊ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
-ÄÏÓÔÕРˠÆÕÎËÃÉÑÍ ÄÌÑ ÒÁÂÏÔÙ ÓÏ ÓËÏÌØ ÕÇÏÄÎÏ ÂÏÌØÛÉÍÉ ÞÉÓÌÁÍÉ ËÁË
-ÞÅÒÅÚ ÎÉÚËÏ-, ÔÁË É ÞÅÒÅÚ ×ÙÓÏËÏÕÒÏ×ÎÅ×ÙÊ ÉÎÔÅÒÆÅÊÓ.
+%description -l ru.UTF-8
+Это библиотека GNU произвольной точности. Сборка с ней предоставляет
+доступ к функциям для работы со сколь угодно большими числами как
+через низко-, так и через высокоуровневый интерфейс.
 
 %package devel
-Summary:       GNU Arbitrary Precision header files, static libraries, and documentation
-Summary(de):   Entwicklungstools für GNU MP
-Summary(es):   Archivos de inclusión, bibliotecas y documentación de la biblioteca gmp
-Summary(fr):   Outils de développement pour la bibliothèque de calcul GMP
-Summary(pl):   Pliki nag³ówkowe i dokumentacja do biblioteki gmp
-Summary(pt_BR):        Arquivos de inclusão, bibliotecas e documentação da biblioteca gmp
-Summary(uk):   ¶ÎÓÔÒÕÍÅÎÔÉ ÒÏÚÒÏÂËÉ ÄÌѠ¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦
-Summary(ru):   éÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ
+Summary:       GNU Arbitrary Precision library header files and documentation
+Summary(de.UTF-8):     Entwicklungstools für GNU MP
+Summary(es.UTF-8):     Archivos de inclusión y documentación de la biblioteca gmp
+Summary(fr.UTF-8):     Outils de développement pour la bibliothèque de calcul GMP
+Summary(pl.UTF-8):     Pliki nagłówkowe i dokumentacja do biblioteki gmp
+Summary(pt_BR.UTF-8):  Arquivos de inclusão e documentação da biblioteca gmp
+Summary(uk.UTF-8):     Інструменти розробки для бібліотеки GNU довільної точності
+Summary(ru.UTF-8):     Инструменты разработки для библиотеки GNU произвольной точности
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
-Obsoletes:     libgmp3-devel
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     libgmp3-devel < 4
 
 %description devel
-The static libraries, header files and documentation for using the GNU
-MP arbitrary precision library in applications.
+The header files and documentation for using the GNU MP arbitrary
+precision library in applications.
 
 If you want to develop applications which will use the GNU MP library,
 you'll need to install the gmp-devel package.
 
-%description devel -l de
-Statische Libraries, Header Files und Dokumentation zum Benutzen der
-GNU MP Library.
+%description devel -l de.UTF-8
+Header Files und Dokumentation zum Benutzen der GNU MP Library.
 
-%description devel -l es
-Estas son las bibliotecas, archivos de inclusión y documentación para
-usar la biblioteca GNU de precisión arbitraria en tus programas.
+%description devel -l es.UTF-8
+Estas son las bibliotecas, archivos de inclusión y documentación para
+usar la biblioteca GNU de precisión arbitraria en tus programas.
 
-%description devel -l fr
-Ce package comprend les bibliothèques statiques, les fichiers
-d'en-tête et la documentation nécessaires pour utiliser la
-bibliothèque de calcul de précision dans les applications.
+%description devel -l fr.UTF-8
+Ce package comprend les fichiers d'en-tête et la documentation
+nécessaires pour utiliser la bibliothèque de calcul de précision dans
+les applications.
 
 Vous n'avez besoin de ce package que si vous comptez programmer des
-applications utilisant la bibliothèque GNU MP.
+applications utilisant la bibliothèque GNU MP.
 
-%description devel -l pl
-Pliki nag³ówkowe i dokumentacja do gmp. Dziêki temu pakietowi bêdziesz
-móg³ tworzyæ w³asne programy z wykorzystaniem tej biblioteki.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja do gmp. Dzięki temu pakietowi można
+tworzyć własne programy z wykorzystaniem tej biblioteki.
 
-%description devel -l pt_BR
-Estas são as bibliotecas, arquivos de inclusão e documentação para
-usar a biblioteca GNU de precisão arbitrária em seus programas.
+%description devel -l pt_BR.UTF-8
+Estas são as bibliotecas, arquivos de inclusão e documentação para
+usar a biblioteca GNU de precisão arbitrária em seus programas.
 
-%description devel -l uk
-㊦Â̦ÏÔÅËÁ ÐÒÏÇÒÁͦÓÔÁ, ÈÅÄÅÒÉ ÔÁ ÄÏËÕÍÅÎÔÁæѠÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ
-¦Â̦ÏÔÅËÉ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ Õ ×ÁÛÉÈ ×ÌÁÓÎÉÈ ÐÒÏÇÒÁÍÁÈ.
+%description devel -l uk.UTF-8
+Це бібліотека програміста, хедери та документація для використання
+бібліотеки GNU довільної точності у ваших власних програмах.
 
-%description devel -l ru
-üÔÏ ÂÉÂÌÉÏÔÅËÁ ÒÁÚÒÁÂÏÔÞÉËÁ, ÈÅÄÅÒÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
-ÂÉÂÌÉÏÔÅËÉ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ × ×ÁÛÉÈ ÓÏÂÓÔ×ÅÎÎÙÈ ÐÒÏÇÒÁÍÍÁÈ.
+%description devel -l ru.UTF-8
+Это библиотека разработчика, хедеры и документация для использования
+библиотеки GNU произвольной точности в ваших собственных программах.
 
 %package static
 Summary:       GNU Arbitrary Precision static library
-Summary(pl):   Biblioteka statyczna gmp
-Summary(pt_BR):        Bibliotecas estáticas para desenvolvimento com gmp
-Summary(uk):   â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦ - ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ
-Summary(ru):   âÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ - ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ
+Summary(pl.UTF-8):     Biblioteka statyczna gmp
+Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento com gmp
+Summary(uk.UTF-8):     Бібліотека GNU довільної точності - статична бібліотека
+Summary(ru.UTF-8):     Библиотека GNU произвольной точности - статическая библиотека
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static gmp library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Biblioteka statyczna gmp.
 
-%description static -l pt_BR
-Bibliotecas estáticas para desenvolvimento com gmp.
+%description static -l pt_BR.UTF-8
+Bibliotecas estáticas para desenvolvimento com gmp.
+
+%description static -l uk.UTF-8
+Це статична бібліотека GNU довільної точності.
+
+%description static -l ru.UTF-8
+Это статическая библиотека GNU произвольной точности.
+
+%package c++
+Summary:       GNU arbitrary precision library - C++ interface
+Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU - interfejs C++
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
 
-%description static -l uk
-ãÅ ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ GNU ÄÏצÌØÎϧ ÔÏÞÎÏÓÔ¦.
+%description c++
+C++ class interface to GNU arbitrary precision library.
 
-%description static -l ru
-üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ GNU ÐÒÏÉÚ×ÏÌØÎÏÊ ÔÏÞÎÏÓÔÉ.
+%description c++ -l pl.UTF-8
+Interfejs w postaci klas C++ do biblioteki arytmetycznej GNU.
+
+%package c++-devel
+Summary:       GNU arbitrary precition library - C++ interface headers
+Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU - pliki nagłówkowe interfejsu C++
+Group:         Development/Libraries
+Requires:      %{name}-c++ = %{version}-%{release}
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description c++-devel
+Header files for C++ class interface to GNU arbitrary precision
+library.
+
+%description c++-devel -l pl.UTF-8
+Pliki nagłówkowe interfejsu w postaci klas C++ do biblioteki
+arytmetycznej GNU.
+
+%package c++-static
+Summary:       GNU arbitrary precition library - C++ static library
+Summary(pl.UTF-8):     Biblioteka arytmetyczna GNU - statyczna biblioteka C++
+Group:         Development/Libraries
+Requires:      %{name}-c++-devel = %{version}-%{release}
+
+%description c++-static
+Static version of C++ class interface to GNU arbitrary precision
+library.
+
+%description c++-static -l pl.UTF-8
+Statycza wersja interfejsu w postaci klas C++ do biblioteki
+arytmetycznej GNU.
 
 %prep
 %setup -q
 %patch0 -p1
+%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
-rm -f missing
 %{__libtoolize}
-aclocal -I mpfr
+%{__aclocal}
 %{__autoconf}
 %{__automake}
 %configure \
-       --with-cpu=%{_cpu} \
-       --enable-cxx \
+%ifarch x32
+       ABI=x32 \
+%endif
+       --with-cpu=%{_target_cpu} \
+       %{?with_cxx:--enable-cxx} \
        --enable-fft
 
 %{__make}
+%{?with_tests:%{__make} check}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -205,31 +244,53 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf AUTHORS ChangeLog NEWS README
-
 %clean
 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 -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  c++ -p /sbin/ldconfig
+%postun        c++ -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libgmp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgmp.so.10
 
 %files devel
 %defattr(644,root,root,755)
-%doc *.gz
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_includedir}/*
+%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}/lib*.a
+%{_libdir}/libgmp.a
+
+%if %{with cxx}
+%files c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmpxx.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgmpxx.so.4
+
+%files c++-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgmpxx.so
+%{_libdir}/libgmpxx.la
+%{_includedir}/gmpxx.h
+%{_pkgconfigdir}/gmpxx.pc
+
+%files c++-static
+%defattr(644,root,root,755)
+%{_libdir}/libgmpxx.a
+%endif
This page took 0.127874 seconds and 4 git commands to generate.