OBS User unknown 2006-12-18 23:16:39 +00:00 committed by Git OBS Bridge
commit d65cb866d8
13 changed files with 1059 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,39 @@
Index: configure
================================================================================
--- configure
+++ configure
@@ -2962,9 +2962,11 @@
cclist="gcc cc"
cc_cflags="-O2"
gcc_cflags="-O2 -mpowerpc"
- gcc_cflags_optlist="precomp subtype cpu"
+ gcc_cflags_optlist="precomp subtype asm cpu"
gcc_cflags_precomp="-no-cpp-precomp"
gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
+ gcc_cflags_asm=""
+ gcc_cflags_cpu=""
# grab this object, though it's not a true cycle counter routine
SPEED_CYCLECOUNTER_OBJ=powerpc.lo
@@ -2975,7 +2977,7 @@
path="powerpc32/750 powerpc32" ;;
powerpc7400)
path="powerpc32/vmx powerpc32/750 powerpc32" ;;
- powerpc745?)
+ powerpc74[45]?)
path="powerpc32/vmx powerpc32 powerpc32" ;;
*)
path="powerpc32" ;;
@@ -3009,8 +3011,11 @@
powerpc630) gcc_cflags_cpu="-mcpu=630" ;;
powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
powerpc7400 | powerpc7410)
+ gcc_cflags_asm="-Wa,-maltivec"
gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
- powerpc745?) gcc_cflags_cpu="-mcpu=7450" ;;
+ powerpc74[45]?)
+ gcc_cflags_asm="-Wa,-maltivec"
+ gcc_cflags_cpu="-mcpu=7450" ;;
powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
powerpc821) gcc_cflags_cpu="-mcpu=821" ;;

View File

@ -0,0 +1,11 @@
--- configure
+++ configure
@@ -27484,7 +27484,7 @@
got[12] == "000" && \
got[13] == "000" && \
got[14] == "000" && \
- got[15] == "124")
+ (got[15] == "124" || got[15] == "000"))
{
print "IEEE little endian, swapped halves"
found = 1

26
gmp-4.2.1-ia64.diff Normal file
View File

@ -0,0 +1,26 @@
--- mpn/ia64/addmul_1.asm
+++ mpn/ia64/addmul_1.asm
@@ -75,7 +75,9 @@
mov r36 = 0 C clear for cmp
nop.b 0 ;;
}
- .align 32
+ifdef(`HAVE_ABI_32', `',
+` { nop 0 }
+')
.Loop:
.pred.rel "mutex",p6,p7
{ .mfi; (p16) ldf8 f32 = [r17], 8 C *0,3,6,9,12,15,18
--- mpn/ia64/mul_1.asm
+++ mpn/ia64/mul_1.asm
@@ -75,7 +75,9 @@
mov r36 = 0 C clear for cmp
nop.b 0 ;;
}
- .align 32
+ifdef(`HAVE_ABI_32', `',
+` { nop 0 }
+')
.Loop:
.pred.rel "mutex",p6,p7
{ .mfi; (p16) ldf8 f32 = [r17], 8 C *0,3,6,9,12,15,18

12
gmp-4.2.1-mpz_set_d.diff Normal file
View File

@ -0,0 +1,12 @@
--- mpz/set_d.c
+++ mpz/set_d.c
@@ -56,6 +56,9 @@
if (ALLOC(r) < rn)
_mpz_realloc (r, rn);
+ if (rn <= 0)
+ rn = 0;
+
rp = PTR (r);
switch (rn)

54
gmp-4.2.1-s390.diff Normal file
View File

@ -0,0 +1,54 @@
--- configure.in
+++ configure.in
@@ -1050,6 +1050,9 @@
;;
+ s390x-*-*)
+ path="s390x" ;;
+
# IBM s/370 and similar
[s3[6-9]0*-*-*])
gcc_cflags="-O2 $fomit_frame_pointer"
--- mpn/s390/gmp-mparam.h
+++ mpn/s390/gmp-mparam.h
@@ -20,7 +20,8 @@
MA 02110-1301, USA. */
-/* BITS_PER_MP_LIMB etc generated by configure */
+#define BITS_PER_MP_LIMB 32
+#define BYTES_PER_MP_LIMB 4
/* Generated by tuneup.c, 2001-12-03, gcc 2.95 */
--- mpn/s390x/gmp-mparam.h
+++ mpn/s390x/gmp-mparam.h
@@ -0,0 +1,27 @@
+/* gmp-mparam.h -- Compiler/machine parameter header file.
+
+Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Library General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+
+The GNU MP Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
+License for more details.
+
+You should have received a copy of the GNU Library General Public License
+along with the GNU MP Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA. */
+
+#define BITS_PER_MP_LIMB 64
+#define BYTES_PER_MP_LIMB 8
+#define BITS_PER_LONGINT 64
+#define BITS_PER_INT 32
+#define BITS_PER_SHORTINT 16
+#define BITS_PER_CHAR 8

83
gmp-4.2.1-x86-fat.diff Normal file
View File

@ -0,0 +1,83 @@
Index: mpn/generic/addsub_n.c
================================================================================
--- configure
+++ configure
@@ -3554,8 +3554,10 @@
*) path="x86" ;;
esac
- # If the user asked for a fat build, override the path set above
+ # If the user asked for a fat build, override the path and flags set above
if test $enable_fat = yes; then
+ gcc_cflags_cpu=""
+ gcc_cflags_arch=""
extra_functions="$extra_functions fat fat_entry"
path="x86/fat x86"
fat_path="x86 x86/fat x86/i486
--- mpn/generic/addsub_n.c
+++ mpn/generic/addsub_n.c
@@ -1,6 +1,6 @@
/* mpn_addsub_n -- Add and Subtract two limb vectors of equal, non-zero length.
-Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
+Copyright 1999, 2000, 2001, 2006 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -58,13 +58,13 @@
for (off = 0; off < n; off += PART_SIZE)
{
this_n = MIN (n - off, PART_SIZE);
-#if HAVE_NATIVE_mpn_add_nc || !HAVE_NATIVE_mpn_add_n
+#if HAVE_NATIVE_mpn_add_nc
acyo = mpn_add_nc (r1p + off, s1p + off, s2p + off, this_n, acyo);
#else
acyn = mpn_add_n (r1p + off, s1p + off, s2p + off, this_n);
acyo = acyn + mpn_add_1 (r1p + off, r1p + off, this_n, acyo);
#endif
-#if HAVE_NATIVE_mpn_sub_nc || !HAVE_NATIVE_mpn_sub_n
+#if HAVE_NATIVE_mpn_sub_nc
scyo = mpn_sub_nc (r2p + off, s1p + off, s2p + off, this_n, scyo);
#else
scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n);
@@ -81,13 +81,13 @@
for (off = 0; off < n; off += PART_SIZE)
{
this_n = MIN (n - off, PART_SIZE);
-#if HAVE_NATIVE_mpn_sub_nc || !HAVE_NATIVE_mpn_sub_n
+#if HAVE_NATIVE_mpn_sub_nc
scyo = mpn_sub_nc (r2p + off, s1p + off, s2p + off, this_n, scyo);
#else
scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n);
scyo = scyn + mpn_sub_1 (r2p + off, r2p + off, this_n, scyo);
#endif
-#if HAVE_NATIVE_mpn_add_nc || !HAVE_NATIVE_mpn_add_n
+#if HAVE_NATIVE_mpn_add_nc
acyo = mpn_add_nc (r1p + off, s1p + off, s2p + off, this_n, acyo);
#else
acyn = mpn_add_n (r1p + off, s1p + off, s2p + off, this_n);
@@ -97,7 +97,7 @@
}
else
{
- /* r1 and r2 are identical to s1 and s2 (r1==s1 and r2=s2 or vice versa)
+ /* r1 and r2 are identical to s1 and s2 (r1==s1 and r2==s2 or vice versa)
Need temporary storage. */
mp_limb_t tp[PART_SIZE];
acyo = 0;
@@ -105,13 +105,13 @@
for (off = 0; off < n; off += PART_SIZE)
{
this_n = MIN (n - off, PART_SIZE);
-#if HAVE_NATIVE_mpn_add_nc || !HAVE_NATIVE_mpn_add_n
+#if HAVE_NATIVE_mpn_add_nc
acyo = mpn_add_nc (tp, s1p + off, s2p + off, this_n, acyo);
#else
acyn = mpn_add_n (tp, s1p + off, s2p + off, this_n);
acyo = acyn + mpn_add_1 (tp, tp, this_n, acyo);
#endif
-#if HAVE_NATIVE_mpn_sub_nc || !HAVE_NATIVE_mpn_sub_n
+#if HAVE_NATIVE_mpn_sub_nc
scyo = mpn_sub_nc (r2p + off, s1p + off, s2p + off, this_n, scyo);
#else
scyn = mpn_sub_n (r2p + off, s1p + off, s2p + off, this_n);

283
gmp-4.2.1-x86_64.diff Normal file
View File

@ -0,0 +1,283 @@
--- mpn/generic/dive_1.c
+++ mpn/generic/dive_1.c
@@ -70,7 +70,7 @@
{
mp_size_t i;
mp_limb_t c, h, l, ls, s, s_next, inverse, dummy;
- unsigned shift;
+ unsigned long shift;
ASSERT (size >= 1);
ASSERT (divisor != 0);
--- mpn/generic/divis.c
+++ mpn/generic/divis.c
@@ -118,7 +118,7 @@
if ((dlow & 1) == 0)
{
- unsigned twos;
+ unsigned long twos;
count_trailing_zeros (twos, dlow);
dlow >>= twos;
}
@@ -130,7 +130,7 @@
mp_limb_t dsecond = dp[1];
if (dsecond <= dmask)
{
- unsigned twos;
+ unsigned long twos;
count_trailing_zeros (twos, dlow);
dlow = (dlow >> twos) | (dsecond << (GMP_NUMB_BITS-twos));
ASSERT_LIMB (dlow);
--- mpn/generic/gcd.c
+++ mpn/generic/gcd.c
@@ -264,7 +264,7 @@
if ((up[0] & 1) == 0) /* Result even; remove twos. */
{
- unsigned int r;
+ unsigned long r;
count_trailing_zeros (r, up[0]);
mpn_rshift (anchor_up, up, usize, r);
usize -= (anchor_up[usize - 1] == 0);
@@ -382,7 +382,7 @@
up += 1, usize -= 1;
if ((up[0] & 1) == 0)
{
- unsigned int r;
+ unsigned long r;
count_trailing_zeros (r, up[0]);
mpn_rshift (up, up, usize, r);
usize -= (up[usize - 1] == 0);
--- mpn/generic/scan0.c
+++ mpn/generic/scan0.c
@@ -33,7 +33,7 @@
{
mp_size_t starting_word;
mp_limb_t alimb;
- int cnt;
+ long cnt;
mp_srcptr p;
/* Start at the word implied by STARTING_BIT. */
--- mpn/generic/scan1.c
+++ mpn/generic/scan1.c
@@ -33,7 +33,7 @@
{
mp_size_t starting_word;
mp_limb_t alimb;
- int cnt;
+ long cnt;
mp_srcptr p;
/* Start at the word implied by STARTING_BIT. */
--- mpq/set_d.c
+++ mpq/set_d.c
@@ -41,7 +41,7 @@
mp_limb_t tp[LIMBS_PER_DOUBLE];
mp_ptr np, dp;
mp_size_t nn, dn;
- int c;
+ long c;
DOUBLE_NAN_INF_ACTION (d,
__gmp_invalid_operation (),
--- mpq/set_f.c
+++ mpq/set_f.c
@@ -83,7 +83,7 @@
else
{
/* right shift numerator, adjust denominator accordingly */
- int shift;
+ long shift;
den_size--;
count_trailing_zeros (shift, flow);
--- mpz/cong.c
+++ mpz/cong.c
@@ -115,7 +115,7 @@
/* Strip low zero bits to get odd d required by modexact. If
d==e*2^n then a==c mod d if and only if both a==c mod e and
a==c mod 2^n, the latter having been done above. */
- unsigned twos;
+ unsigned long twos;
count_trailing_zeros (twos, dlow);
dlow >>= twos;
}
@@ -133,7 +133,7 @@
if (dsecond <= dmask)
{
- unsigned twos;
+ unsigned long twos;
count_trailing_zeros (twos, dlow);
dlow = (dlow >> twos) | (dsecond << (GMP_NUMB_BITS-twos));
ASSERT_LIMB (dlow);
--- mpz/cong_ui.c
+++ mpz/cong_ui.c
@@ -93,7 +93,7 @@
d==e*2^n then a==c mod d if and only if both a==c mod 2^n
and a==c mod e. */
- unsigned twos;
+ unsigned long twos;
if ((ap[0]-c) & LOW_ZEROS_MASK (d))
return 0;
--- mpz/divegcd.c
+++ mpz/divegcd.c
@@ -78,7 +78,7 @@
if (SIZ(d) == 1)
{
mp_limb_t dl = PTR(d)[0];
- int twos;
+ long twos;
if (dl == 1)
{
--- mpz/divexact.c
+++ mpz/divexact.c
@@ -114,7 +114,7 @@
}
else
{
- unsigned int r;
+ unsigned long r;
tp = (mp_ptr) TMP_ALLOC (tsize * BYTES_PER_MP_LIMB);
count_trailing_zeros (r, dp[0]);
mpn_rshift (tp, dp, tsize, r);
--- mpz/divis_ui.c
+++ mpz/divis_ui.c
@@ -29,7 +29,7 @@
{
mp_size_t asize;
mp_ptr ap;
- unsigned twos;
+ unsigned long twos;
asize = SIZ(a);
if (UNLIKELY (d == 0))
--- mpz/jacobi.c
+++ mpz/jacobi.c
@@ -87,7 +87,7 @@
mp_size_t asize, bsize;
mp_ptr ap, bp;
mp_limb_t alow, blow, ahigh, bhigh, asecond, bsecond;
- unsigned atwos, btwos;
+ unsigned long atwos, btwos;
int result_bit1;
TMP_DECL;
@@ -285,7 +285,7 @@
if ((alow & 1) == 0)
{
/* factors of 2 from a */
- unsigned twos;
+ unsigned long twos;
count_trailing_zeros (twos, alow);
TRACE (printf ("twos %u\n", twos));
result_bit1 ^= JACOBI_TWOS_U_BIT1 (twos, blow);
--- mpz/kronsz.c
+++ mpz/kronsz.c
@@ -32,7 +32,7 @@
mp_size_t b_size;
mp_size_t b_abs_size;
mp_limb_t a_limb, b_rem;
- unsigned twos;
+ unsigned long twos;
int result_bit1;
#if GMP_NUMB_BITS < BITS_PER_ULONG
--- mpz/kronuz.c
+++ mpz/kronuz.c
@@ -31,7 +31,7 @@
mp_limb_t b_low;
int b_abs_size;
mp_limb_t b_rem;
- int twos;
+ long twos;
int result_bit1;
/* (a/-1)=1 when a>=0, so the sign of b is ignored */
--- mpz/kronzs.c
+++ mpz/kronzs.c
@@ -58,7 +58,7 @@
if ((b_limb & 1) == 0)
{
mp_limb_t a_low = a_ptr[0];
- int twos;
+ long twos;
if (b_limb == 0)
return JACOBI_LS0 (a_low, a_size); /* (a/0) */
--- mpz/kronzu.c
+++ mpz/kronzu.c
@@ -54,7 +54,7 @@
else
{
mp_limb_t a_low = a_ptr[0];
- int twos;
+ long twos;
if (b == 0)
return JACOBI_LS0 (a_low, a_size); /* (a/0) */
--- mpz/n_pow_ui.c
+++ mpz/n_pow_ui.c
@@ -154,7 +154,8 @@
{
mp_ptr rp;
mp_size_t rtwos_limbs, ralloc, rsize;
- int rneg, i, cnt, btwos, r_bp_overlap;
+ int rneg, i, cnt, r_bp_overlap;
+ long btwos;
mp_limb_t blimb, rl;
unsigned long rtwos_bits;
#if HAVE_NATIVE_mpn_mul_2
--- mpz/perfpow.c
+++ mpz/perfpow.c
@@ -209,7 +209,7 @@
static unsigned long int
gcd (unsigned long int a, unsigned long int b)
{
- int an2, bn2, n2;
+ long an2, bn2, n2;
if (a == 0)
return b;
--- tests/mpn/t-mp_bases.c
+++ tests/mpn/t-mp_bases.c
@@ -31,7 +31,8 @@
main (int argc, char *argv[])
{
mp_limb_t want_bb, want_bb_inv;
- int base, want_chars_per_limb;
+ int base;
+ unsigned long want_chars_per_limb;
want_chars_per_limb = refmpn_chars_per_limb (10);
if (MP_BASES_CHARS_PER_LIMB_10 != want_chars_per_limb)
--- tests/t-count_zeros.c
+++ tests/t-count_zeros.c
@@ -44,7 +44,7 @@
void
check_ctz (int want, mp_limb_t n)
{
- int got;
+ long got;
count_trailing_zeros (got, n);
if (got != want)
{
--- tune/common.c
+++ tune/common.c
@@ -1825,9 +1825,9 @@
speed_routine_count_zeros_setup (struct speed_params *s,
mp_ptr xp, int leading, int zero)
{
- int i, c;
+ int i;
mp_limb_t n;
-
+ long c;
if (s->r == 0)
{
/* Make uniformly distributed data. If zero isn't allowed then change

3
gmp-4.2.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d07ffcb37eecec35c5ec72516d10b35fdf6e6fef1fcf1dcd37e30b8cbf8bf941
size 1726453

275
gmp.changes Normal file
View File

@ -0,0 +1,275 @@
-------------------------------------------------------------------
Fri Oct 13 21:24:30 CEST 2006 - aj@suse.de
- Fix build on x86-64.
-------------------------------------------------------------------
Fri Oct 13 19:52:37 CEST 2006 - mjancar@suse.cz
- update to 4.2.1
* many bugfixes
-------------------------------------------------------------------
Mon May 15 11:15:27 CEST 2006 - rguenther@suse.de
- Disable mpfr, which is now in new packages mpfr and mpfr-devel.
-------------------------------------------------------------------
Wed Jan 25 21:30:20 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Jan 13 16:28:42 CET 2006 - kukuk@suse.de
- Create -devel subpackage
-------------------------------------------------------------------
Tue Oct 11 16:25:05 CEST 2005 - meissner@suse.de
- fixed broken random2 code using patch from Richard Guenther.
-------------------------------------------------------------------
Sun Sep 18 12:20:19 CEST 2005 - meissner@suse.de
- Fixed implicits.
-------------------------------------------------------------------
Wed Apr 13 18:37:45 CEST 2005 - matz@suse.de
- Make it build on i386
-------------------------------------------------------------------
Sat Apr 9 13:20:10 CEST 2005 - ro@suse.de
- skip testsuite on alpha
-------------------------------------------------------------------
Wed Feb 16 12:27:16 CET 2005 - mcihar@suse.cz
- update to 4.1.4
-------------------------------------------------------------------
Thu Nov 18 01:55:34 CET 2004 - ro@suse.de
- fixed file list
-------------------------------------------------------------------
Mon Sep 6 00:48:25 CEST 2004 - schwab@suse.de
- Use autoreconf.
- Fix read-only section check.
-------------------------------------------------------------------
Tue Aug 10 17:26:49 CEST 2004 - tcrhak@suse.cz
- update to 4.1.3
-------------------------------------------------------------------
Tue Mar 02 13:18:12 CET 2004 - tcrhak@suse.cz
- libtoolize, but preserve gmp wrappers for config.sub and config.guess
-------------------------------------------------------------------
Mon Mar 1 21:17:02 CET 2004 - meissner@suse.de
- make work on ppc64 again.
- libtoolize to add .so. suffixes on amd64 and ia64 again.
-------------------------------------------------------------------
Mon Mar 01 17:45:07 CET 2004 - tcrhak@suse.cz
- fixed bug #33857:
* applied some patches for 4.1.2
* use gmp's own config.sub (fixes the configure problem)
* added configure option --enable-cxx
-------------------------------------------------------------------
Fri Feb 27 01:04:16 CET 2004 - ro@suse.de
- try to fix build with regparm changes
-------------------------------------------------------------------
Sat Jan 10 01:05:45 CET 2004 - schwab@suse.de
- Fix quoting in autoconf macros.
-------------------------------------------------------------------
Fri Dec 5 10:32:31 CET 2003 - kukuk@suse.de
- Fix compiling on s390(x)
-------------------------------------------------------------------
Fri Nov 28 15:52:02 CET 2003 - schwab@suse.de
- Workaround gas bug causing invalid unwind information.
- Fix aliasing bug in testsuite.
-------------------------------------------------------------------
Wed Oct 15 14:49:58 CEST 2003 - ro@suse.de
- use jobs macro instead of -jsomething
-------------------------------------------------------------------
Wed Oct 15 13:19:45 CEST 2003 - adrian@suse.de
- fix build for mips
- build as non-root
-------------------------------------------------------------------
Sun Sep 14 14:22:59 CEST 2003 - aj@suse.de
- Enable mpfr library.
-------------------------------------------------------------------
Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
-------------------------------------------------------------------
Thu Feb 13 00:13:04 CET 2003 - mmj@suse.de
- Add %install_info macros [#23415]
-------------------------------------------------------------------
Wed Jan 15 20:46:45 CET 2003 - tcrhak@suse.cz
- update to version 4.1.2
-------------------------------------------------------------------
Wed Nov 20 16:07:05 CET 2002 - schwab@suse.de
- Work around automake bugs.
-------------------------------------------------------------------
Wed Sep 25 15:06:35 CEST 2002 - uli@suse.de
- x86-64: compile mpf/cmp_si.c with -fno-cse-follow-jumps to work
around compiler bug
-------------------------------------------------------------------
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
- removed bogus self-provides
-------------------------------------------------------------------
Tue Jun 11 11:11:52 CEST 2002 - meissner@suse.de
- Disabled all ppc64 assembler functions for now, reenabled make check.
-------------------------------------------------------------------
Mon Jun 10 16:21:45 CEST 2002 - olh@suse.de
- add some basic support for ppc64, disable make check
-------------------------------------------------------------------
Wed May 22 11:00:38 CEST 2002 - coolo@suse.de
- adding support for s390x
-------------------------------------------------------------------
Mon May 6 17:53:57 CEST 2002 - schwab@suse.de
- Fix last change.
-------------------------------------------------------------------
Mon May 6 16:42:20 CEST 2002 - meissner@suse.de
- varargs fixes. You cannot just cast functions pointers between
non-varargs and varargs functions, this _will_ fail on x86_64.
-------------------------------------------------------------------
Fri Jan 18 13:28:00 CET 2002 - tcrhak@suse.cz
- used macros %{_lib} and %{_libdir}
-------------------------------------------------------------------
Fri Dec 14 10:50:33 CEST 2001 - tcrhak@suse.cz
- update to version 4.0
-------------------------------------------------------------------
Wed Aug 1 15:36:52 CEST 2001 - dan@suse.cz
- use bzip instead of gzip
-------------------------------------------------------------------
Wed Jun 13 23:07:19 UTC 2001 - bk@suse.de
- Add support for s390x and update s390 support
-------------------------------------------------------------------
Mon May 28 16:11:30 CEST 2001 - pblaha@suse.cz
- fix include on ia64
-------------------------------------------------------------------
Wed Nov 15 13:29:35 CET 2000 - pblaha@suse.cz
- update to 3.1.1
-------------------------------------------------------------------
Tue Oct 10 18:13:14 CEST 2000 - schwab@suse.de
- Fix umul_ppm for ia64.
-------------------------------------------------------------------
Wed Jun 7 10:30:49 CEST 2000 - schwab@suse.de
- Recover ia64 support.
- Match "linux*" instead of "linux-gnu*".
-------------------------------------------------------------------
Wed May 31 13:20:59 CEST 2000 - smid@suse.cz
- upgrade to 3.0.1
-------------------------------------------------------------------
Mon May 15 19:05:03 CEST 2000 - schwab@suse.de
- Add basic support for ia64.
-------------------------------------------------------------------
Fri Apr 14 09:49:54 CEST 2000 - smid@suse.cz
- buildroot added
-------------------------------------------------------------------
Fri Apr 7 20:02:44 CEST 2000 - bk@suse.de
- added suse config update macro
-------------------------------------------------------------------
Thu Feb 10 17:40:14 CET 2000 - kukuk@suse.de
- Move /usr/info -> /usr/share/info
-------------------------------------------------------------------
Tue Dec 14 14:16:11 MET 1999 - kukuk@suse.de
- Create shared libraries (BUG#1508)
- Build libmp, too
- Add a lot of patches
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Fri Sep 3 16:34:54 CEST 1999 - uli@suse.de
- added patch for PPC
-------------------------------------------------------------------
Wed Sep 1 17:41:54 MEST 1999 - kukuk@suse.de
- Specfile cleanup
- Run make check
----------------------------------------------------------------------------
Tue Nov 26 20:15:03 CET 1996 - florian@suse.de
- update to version 2.0.2

249
gmp.spec Normal file
View File

@ -0,0 +1,249 @@
#
# spec file for package gmp (Version 4.2.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gmp
BuildRequires: gcc-c++
License: GPL, LGPL
Group: System/Libraries
Autoreqprov: on
Version: 4.2.1
Release: 2
Summary: The GNU MP Library
URL: http://www.swox.com/gmp/
Source: ftp://prep.ai.mit.edu/pub/gnu/gmp/gmp-%{version}.tar.bz2
Patch0: %{name}-%{version}-x86_64.diff
Patch1: %{name}-%{version}-ia64.diff
Patch2: %{name}-%{version}-s390.diff
Patch3: %{name}-%{version}-configure.arm-double.diff
Patch4: %{name}-%{version}-configure-ppc.diff
Patch5: %{name}-%{version}-mpz_set_d.diff
Patch6: %{name}-%{version}-x86-fat.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A library for calculating huge numbers (integer and floating point).
Authors:
--------
Torbjorn Granlund <tege@zevs.sics.se>
%package devel
Summary: Include Files and Libraries for Development with the GNU MP Library
Group: Development/Languages/C and C++
Requires: gmp = %{version}
Autoreqprov: on
PreReq: %install_info_prereq
%description devel
These libraries are needed to develop programs which calculate with
huge numbers (integer and floating point).
Authors:
--------
Torbjorn Granlund <tege@zevs.sics.se>
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%build
export HOME=/tmp/
# %%{?suse_update_config:%%{suse_update_config -f}}
mv config.guess config.guess.gmp
mv config.sub config.sub.gmp
autoreconf -fi
mv config.guess configfsf.guess
mv config.sub configfsf.sub
mv config.guess.gmp config.guess
mv config.sub.gmp config.sub
%ifarch ppc64
# The PowerPC64 assembler funcs are for AIX and somehow don't work on Linux.
rm -fv mpn/powerpc64/*.asm
%endif
CFLAGS="$RPM_OPT_FLAGS -Wall" \
./configure --prefix=/usr \
--libdir=%{_libdir} \
--infodir=%{_infodir} \
--build=%{_target_platform} \
--enable-mpbsd \
--disable-mpfr \
--enable-cxx
%ifarch x86_64
make CFLAGS="$RPM_OPT_FLAGS -Wall" fib_table.h mp_bases.h
cd mpf
make CFLAGS="$RPM_OPT_FLAGS -fno-cse-follow-jumps -Wall" cmp_si.o cmp_si.lo
cd ..
%endif
make CFLAGS="$RPM_OPT_FLAGS -Wall" CC=gcc %{?jobs:-j%jobs}
%ifnarch alpha
make CFLAGS="$RPM_OPT_FLAGS -Wall" CC=gcc check %{?jobs:-j%jobs}
%endif
%install
make install DESTDIR=${RPM_BUILD_ROOT}
%post
%run_ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%run_ldconfig
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS README NEWS ChangeLog
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%doc demos
%doc %{_infodir}/gmp.info*.gz
%{_libdir}/lib*.a
%{_libdir}/lib*.la
%{_libdir}/lib*.so
/usr/include/*
%changelog -n gmp
* Fri Oct 13 2006 - aj@suse.de
- Fix build on x86-64.
* Fri Oct 13 2006 - mjancar@suse.cz
- update to 4.2.1
* many bugfixes
* Mon May 15 2006 - rguenther@suse.de
- Disable mpfr, which is now in new packages mpfr and mpfr-devel.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 - kukuk@suse.de
- Create -devel subpackage
* Tue Oct 11 2005 - meissner@suse.de
- fixed broken random2 code using patch from Richard Guenther.
* Sun Sep 18 2005 - meissner@suse.de
- Fixed implicits.
* Wed Apr 13 2005 - matz@suse.de
- Make it build on i386
* Sat Apr 09 2005 - ro@suse.de
- skip testsuite on alpha
* Wed Feb 16 2005 - mcihar@suse.cz
- update to 4.1.4
* Thu Nov 18 2004 - ro@suse.de
- fixed file list
* Mon Sep 06 2004 - schwab@suse.de
- Use autoreconf.
- Fix read-only section check.
* Tue Aug 10 2004 - tcrhak@suse.cz
- update to 4.1.3
* Tue Mar 02 2004 - tcrhak@suse.cz
- libtoolize, but preserve gmp wrappers for config.sub and config.guess
* Mon Mar 01 2004 - meissner@suse.de
- make work on ppc64 again.
- libtoolize to add .so. suffixes on amd64 and ia64 again.
* Mon Mar 01 2004 - tcrhak@suse.cz
- fixed bug #33857:
* applied some patches for 4.1.2
* use gmp's own config.sub (fixes the configure problem)
* added configure option --enable-cxx
* Fri Feb 27 2004 - ro@suse.de
- try to fix build with regparm changes
* Sat Jan 10 2004 - schwab@suse.de
- Fix quoting in autoconf macros.
* Fri Dec 05 2003 - kukuk@suse.de
- Fix compiling on s390(x)
* Fri Nov 28 2003 - schwab@suse.de
- Workaround gas bug causing invalid unwind information.
- Fix aliasing bug in testsuite.
* Wed Oct 15 2003 - ro@suse.de
- use jobs macro instead of -jsomething
* Wed Oct 15 2003 - adrian@suse.de
- fix build for mips
- build as non-root
* Sun Sep 14 2003 - aj@suse.de
- Enable mpfr library.
* Thu Apr 24 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
* Thu Feb 13 2003 - mmj@suse.de
- Add %%install_info macros [#23415]
* Wed Jan 15 2003 - tcrhak@suse.cz
- update to version 4.1.2
* Wed Nov 20 2002 - schwab@suse.de
- Work around automake bugs.
* Wed Sep 25 2002 - uli@suse.de
- x86-64: compile mpf/cmp_si.c with -fno-cse-follow-jumps to work
around compiler bug
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Tue Jun 11 2002 - meissner@suse.de
- Disabled all ppc64 assembler functions for now, reenabled make check.
* Mon Jun 10 2002 - olh@suse.de
- add some basic support for ppc64, disable make check
* Wed May 22 2002 - coolo@suse.de
- adding support for s390x
* Mon May 06 2002 - schwab@suse.de
- Fix last change.
* Mon May 06 2002 - meissner@suse.de
- varargs fixes. You cannot just cast functions pointers between
non-varargs and varargs functions, this _will_ fail on x86_64.
* Fri Jan 18 2002 - tcrhak@suse.cz
- used macros %%{_lib} and %%{_libdir}
* Fri Dec 14 2001 - tcrhak@suse.cz
- update to version 4.0
* Wed Aug 01 2001 - dan@suse.cz
- use bzip instead of gzip
* Wed Jun 13 2001 - bk@suse.de
- Add support for s390x and update s390 support
* Mon May 28 2001 - pblaha@suse.cz
- fix include on ia64
* Wed Nov 15 2000 - pblaha@suse.cz
- update to 3.1.1
* Tue Oct 10 2000 - schwab@suse.de
- Fix umul_ppm for ia64.
* Wed Jun 07 2000 - schwab@suse.de
- Recover ia64 support.
- Match "linux*" instead of "linux-gnu*".
* Wed May 31 2000 - smid@suse.cz
- upgrade to 3.0.1
* Mon May 15 2000 - schwab@suse.de
- Add basic support for ia64.
* Fri Apr 14 2000 - smid@suse.cz
- buildroot added
* Fri Apr 07 2000 - bk@suse.de
- added suse config update macro
* Thu Feb 10 2000 - kukuk@suse.de
- Move /usr/info -> /usr/share/info
* Tue Dec 14 1999 - kukuk@suse.de
- Create shared libraries (BUG#1508)
- Build libmp, too
- Add a lot of patches
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Sep 03 1999 - uli@suse.de
- added patch for PPC
* Wed Sep 01 1999 - kukuk@suse.de
- Specfile cleanup
- Run make check
* Thu Jan 02 1997 - florian@suse.de
- update to version 2.0.2

0
ready Normal file
View File