2006-12-19 00:16:39 +01:00
|
|
|
#
|
2008-08-21 17:46:27 +02:00
|
|
|
# spec file for package gmp (Version 4.2.3)
|
2006-12-19 00:16:39 +01:00
|
|
|
#
|
2008-01-03 17:36:34 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:39 +01:00
|
|
|
#
|
2008-08-21 17:46:27 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:16:39 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 13:18:14 +02:00
|
|
|
|
2006-12-19 00:16:39 +01:00
|
|
|
Name: gmp
|
|
|
|
BuildRequires: gcc-c++
|
2008-01-03 17:36:34 +01:00
|
|
|
License: GPL v3 or later; LGPL v3 or later
|
2006-12-19 00:16:39 +01:00
|
|
|
Group: System/Libraries
|
2007-12-12 20:13:54 +01:00
|
|
|
AutoReqProv: on
|
2008-11-28 15:01:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gmp-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-08-21 17:46:27 +02:00
|
|
|
Version: 4.2.3
|
2008-12-15 12:32:23 +01:00
|
|
|
Release: 10
|
2006-12-19 00:16:39 +01:00
|
|
|
Summary: The GNU MP Library
|
2007-12-12 20:13:54 +01:00
|
|
|
Url: http://gmplib.org/
|
|
|
|
Source: gmp-%{version}.tar.bz2
|
|
|
|
Patch0: gmp-noexec.diff
|
|
|
|
Patch1: gmp-ia64.diff
|
|
|
|
Patch2: gmp-s390x.diff
|
2006-12-19 00:16:39 +01:00
|
|
|
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
|
2008-04-10 13:18:14 +02:00
|
|
|
License: GPL v3 or later; LGPL v3 or later
|
2006-12-19 00:16:39 +01:00
|
|
|
Summary: Include Files and Libraries for Development with the GNU MP Library
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: gmp = %{version}
|
2007-12-12 20:13:54 +01:00
|
|
|
AutoReqProv: on
|
2008-11-28 15:01:57 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: gmp-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:16:39 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
%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} \
|
|
|
|
--disable-mpfr \
|
|
|
|
--enable-cxx
|
2008-01-03 17:36:34 +01:00
|
|
|
#%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
|
2006-12-19 00:16:39 +01:00
|
|
|
make CFLAGS="$RPM_OPT_FLAGS -Wall" CC=gcc %{?jobs:-j%jobs}
|
2008-01-03 17:36:34 +01:00
|
|
|
#%ifnarch alpha
|
|
|
|
#make CFLAGS="$RPM_OPT_FLAGS -Wall" CC=gcc check %{?jobs:-j%jobs}
|
|
|
|
#%endif
|
2007-12-12 20:13:54 +01:00
|
|
|
|
|
|
|
%check
|
2007-01-15 00:48:10 +01:00
|
|
|
# do not disable "make check", FIX THE BUGS!
|
|
|
|
make check
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
2007-12-12 20:13:54 +01:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libgmp.la
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.la
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.a
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%run_ldconfig
|
2008-01-03 17:36:34 +01:00
|
|
|
|
|
|
|
%post devel
|
2006-12-19 00:16:39 +01:00
|
|
|
%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)
|
2007-12-12 20:13:54 +01:00
|
|
|
%doc AUTHORS README NEWS
|
|
|
|
%{_libdir}/libgmp.so.*
|
|
|
|
%{_libdir}/libgmpxx.so.*
|
2006-12-19 00:16:39 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc demos
|
|
|
|
%doc %{_infodir}/gmp.info*.gz
|
2007-12-12 20:13:54 +01:00
|
|
|
%{_libdir}/libgmp.a
|
|
|
|
%{_libdir}/libgmp.so
|
|
|
|
%{_libdir}/libgmpxx.so
|
|
|
|
/usr/include/gmp.h
|
|
|
|
/usr/include/gmpxx.h
|
2006-12-19 00:16:39 +01:00
|
|
|
|
2007-05-23 16:19:37 +02:00
|
|
|
%changelog
|
2008-12-15 12:32:23 +01:00
|
|
|
* Wed Dec 10 2008 olh@suse.de
|
|
|
|
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
|
|
|
|
(bnc#437293)
|
2008-11-28 15:01:57 +01:00
|
|
|
* Mon Nov 24 2008 olh@suse.de
|
|
|
|
- obsolete old -XXbit packages (bnc#437293)
|
2008-08-21 17:46:27 +02:00
|
|
|
* Mon Aug 04 2008 rguenther@suse.de
|
|
|
|
- Update to version 4.2.3.
|
|
|
|
* minor bugfixes
|
|
|
|
- Remove no longer applicable patches.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
|
|
|
* Thu Jan 03 2008 rguenther@suse.de
|
2008-01-03 17:36:34 +01:00
|
|
|
- Fix std::FILE usage for C++ again.
|
|
|
|
- Move info postin to the correct sub-package.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Dec 12 2007 rguenther@suse.de
|
2007-12-12 20:13:54 +01:00
|
|
|
- Update to 4.2.2, which is now LGPLv3.
|
|
|
|
- Remove no longer applicable patches.
|
|
|
|
- Disable building of berkley MP compatibility library.
|
|
|
|
- Run testsuite only once.
|
|
|
|
- Do not package libtool .la files.
|
|
|
|
- Do not package static C++ binding library.
|
|
|
|
- Do not package CVS changelog.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue May 22 2007 rguenther@suse.de
|
2007-05-23 16:19:37 +02:00
|
|
|
- Fix inline behavior for C99.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Sat Jan 13 2007 meissner@suse.de
|
2007-01-15 00:48:10 +01:00
|
|
|
- Mark assembler code as not needing exec stack/heap by hacking
|
|
|
|
the m4 -> assembler wrapper script.
|
|
|
|
- Run "make check", as mandated by our packaging guidelines.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Oct 13 2006 aj@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Fix build on x86-64.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Oct 13 2006 mjancar@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- update to 4.2.1
|
|
|
|
* many bugfixes
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon May 15 2006 rguenther@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Disable mpfr, which is now in new packages mpfr and mpfr-devel.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Jan 13 2006 kukuk@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Create -devel subpackage
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue Oct 11 2005 meissner@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- fixed broken random2 code using patch from Richard Guenther.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Sun Sep 18 2005 meissner@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Fixed implicits.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Apr 13 2005 matz@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Make it build on i386
|
2008-04-10 13:18:14 +02:00
|
|
|
* Sat Apr 09 2005 ro@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- skip testsuite on alpha
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Feb 16 2005 mcihar@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- update to 4.1.4
|
2008-04-10 13:18:14 +02:00
|
|
|
* Thu Nov 18 2004 ro@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- fixed file list
|
2008-11-28 15:01:57 +01:00
|
|
|
* Sun Sep 05 2004 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Use autoreconf.
|
|
|
|
- Fix read-only section check.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue Aug 10 2004 tcrhak@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- update to 4.1.3
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue Mar 02 2004 tcrhak@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- libtoolize, but preserve gmp wrappers for config.sub and config.guess
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon Mar 01 2004 meissner@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- make work on ppc64 again.
|
|
|
|
- libtoolize to add .so. suffixes on amd64 and ia64 again.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon Mar 01 2004 tcrhak@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- 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
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Feb 27 2004 ro@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- try to fix build with regparm changes
|
2008-04-10 13:18:14 +02:00
|
|
|
* Sat Jan 10 2004 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Fix quoting in autoconf macros.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Dec 05 2003 kukuk@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Fix compiling on s390(x)
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Nov 28 2003 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Workaround gas bug causing invalid unwind information.
|
|
|
|
- Fix aliasing bug in testsuite.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Oct 15 2003 ro@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- use jobs macro instead of -jsomething
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Oct 15 2003 adrian@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- fix build for mips
|
|
|
|
- build as non-root
|
2008-04-10 13:18:14 +02:00
|
|
|
* Sun Sep 14 2003 aj@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Enable mpfr library.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Thu Apr 24 2003 ro@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- fix install_info --delete call and move from preun to postun
|
2008-04-10 13:18:14 +02:00
|
|
|
* Thu Feb 13 2003 mmj@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Add %%install_info macros [#23415]
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Jan 15 2003 tcrhak@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- update to version 4.1.2
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Nov 20 2002 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Work around automake bugs.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Sep 25 2002 uli@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- x86-64: compile mpf/cmp_si.c with -fno-cse-follow-jumps to work
|
|
|
|
around compiler bug
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue Sep 17 2002 ro@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- removed bogus self-provides
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue Jun 11 2002 meissner@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Disabled all ppc64 assembler functions for now, reenabled make check.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon Jun 10 2002 olh@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- add some basic support for ppc64, disable make check
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed May 22 2002 coolo@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- adding support for s390x
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon May 06 2002 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Fix last change.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon May 06 2002 meissner@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- varargs fixes. You cannot just cast functions pointers between
|
|
|
|
non-varargs and varargs functions, this _will_ fail on x86_64.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Jan 18 2002 tcrhak@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- used macros %%{_lib} and %%{_libdir}
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Dec 14 2001 tcrhak@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- update to version 4.0
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Aug 01 2001 dan@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- use bzip instead of gzip
|
2008-04-10 13:18:14 +02:00
|
|
|
* Thu Jun 14 2001 bk@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Add support for s390x and update s390 support
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon May 28 2001 pblaha@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- fix include on ia64
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Nov 15 2000 pblaha@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- update to 3.1.1
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue Oct 10 2000 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Fix umul_ppm for ia64.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Jun 07 2000 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Recover ia64 support.
|
|
|
|
- Match "linux*" instead of "linux-gnu*".
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed May 31 2000 smid@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- upgrade to 3.0.1
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon May 15 2000 schwab@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Add basic support for ia64.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Apr 14 2000 smid@suse.cz
|
2006-12-19 00:16:39 +01:00
|
|
|
- buildroot added
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Apr 07 2000 bk@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- added suse config update macro
|
2008-04-10 13:18:14 +02:00
|
|
|
* Thu Feb 10 2000 kukuk@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Move /usr/info -> /usr/share/info
|
2008-04-10 13:18:14 +02:00
|
|
|
* Tue Dec 14 1999 kukuk@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Create shared libraries (BUG#1508)
|
|
|
|
- Build libmp, too
|
|
|
|
- Add a lot of patches
|
2008-04-10 13:18:14 +02:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-04-10 13:18:14 +02:00
|
|
|
* Fri Sep 03 1999 uli@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- added patch for PPC
|
2008-04-10 13:18:14 +02:00
|
|
|
* Wed Sep 01 1999 kukuk@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- Specfile cleanup
|
|
|
|
- Run make check
|
2008-04-10 13:18:14 +02:00
|
|
|
* Thu Jan 02 1997 florian@suse.de
|
2006-12-19 00:16:39 +01:00
|
|
|
- update to version 2.0.2
|