[packages/parigp] - disable gmp type size check - rel 7

baggins baggins at pld-linux.org
Sun May 10 16:33:40 CEST 2015


commit e6713c66264d72b2cf9a08a72493f31e6e08199d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun May 10 16:33:10 2015 +0200

    - disable gmp type size check
    - rel 7

 gmp-version.patch | 11 +++++++++++
 parigp.spec       | 14 ++++++++++++--
 2 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/parigp.spec b/parigp.spec
index 161d789..9108157 100644
--- a/parigp.spec
+++ b/parigp.spec
@@ -10,7 +10,7 @@ Summary:	Number Theory-oriented Computer Algebra System
 Summary(pl.UTF-8):	Komputerowy system obliczeń algebraicznych zorientowany na metody teorii liczb
 Name:		parigp
 Version:	%{pari_version}
-Release:	6
+Release:	7
 License:	GPL
 Group:		Applications/Math
 Source0:	ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/pari-%{pari_version}.tar.gz
@@ -29,9 +29,11 @@ Patch2:		%{name}-arch.patch
 Patch3:		perl-Math-Pari-crash-workaround.patch
 Patch4:		perl-Math-Pari-update.patch
 Patch5:		%{name}-noproccpuinfo.patch
+Patch6:		gmp-version.patch
 URL:		http://pari.math.u-bordeaux.fr/
 BuildRequires:	autoconf
 BuildRequires:	ctags
+BuildRequires:	gmp-devel
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	readline-devel >= 4.2
 BuildRequires:	rpm-perlprov >= 3.0.3-16
@@ -178,6 +180,7 @@ Interfejs Perla do biblioteki PARI.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 # pari & parigp
@@ -187,7 +190,11 @@ Interfejs Perla do biblioteki PARI.
 	--libdir=%{_libdir} \
 	--sysdatadir=%{_libdir}/parigp \
 	--datadir=%{_datadir}/parigp \
-	--share-prefix=%{_datadir}
+	--share-prefix=%{_datadir} \
+	--with-readline-lib=%{_libdir} \
+	--with-ncurses-lib=%{_libdir} \
+	--with-gmp-lib=%{_libdir}
+
 
 %{__make} -C Olinux-%{_target_cpu} all \
 	CC="%{__cc}" \
@@ -196,6 +203,9 @@ Interfejs Perla do biblioteki PARI.
 %{__make} ctags
 
 %{?with_tex:%{__make} -j1 -C doc docpdf}
+%ifarch x32
+ln -s Olinux-%{_target_cpu} Olinux-x86_64
+%endif
 %ifarch %{ix86}
 ln -s Olinux-%{_target_cpu} Olinux-ix86
 %endif
diff --git a/gmp-version.patch b/gmp-version.patch
new file mode 100644
index 0000000..2de6d0c
--- /dev/null
+++ b/gmp-version.patch
@@ -0,0 +1,11 @@
+--- pari-2.5.5/config/gmp_version.c~	2015-05-10 16:26:39.000000000 +0200
++++ pari-2.5.5/config/gmp_version.c	2015-05-10 16:27:07.950401133 +0200
+@@ -3,8 +3,5 @@
+ void f(void) { mpn_gcdext(NULL,NULL, NULL, NULL, 0, NULL, 0); }
+ main()
+ {
+-  if (sizeof(mp_limb_t) == sizeof(long))
+     printf("%s", gmp_version);
+-  else
+-    printf("unsupported");
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/parigp.git/commitdiff/e6713c66264d72b2cf9a08a72493f31e6e08199d



More information about the pld-cvs-commit mailing list