]> git.pld-linux.org Git - packages/parigp.git/commitdiff
- disable gmp type size check auto/th/parigp-2.5.5-7
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 10 May 2015 14:33:10 +0000 (16:33 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 10 May 2015 14:33:10 +0000 (16:33 +0200)
- rel 7

gmp-version.patch [new file with mode: 0644]
parigp.spec

diff --git a/gmp-version.patch b/gmp-version.patch
new file mode 100644 (file)
index 0000000..2de6d0c
--- /dev/null
@@ -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");
+ }
index 161d789238ffc07344eb8da6c3604095688ba6cb..9108157de44825d54d0fcdde95062683b494ae0d 100644 (file)
@@ -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
This page took 0.211409 seconds and 4 git commands to generate.