# Makefiles in subdirectories, but here we must omit it so automake gives
# the actual ansi2knr build rule, not "cd $(top_builddir) && make ansi2knr".
#
-AUTOMAKE_OPTIONS = 1.8 gnu no-dependencies ansi2knr
+AUTOMAKE_OPTIONS = 1.8 gnu no-dependencies
# Libtool -version-info for libgmp.la and libmp.la. See "Versioning" in the
dnl Note that there's a copy of these options in the top-level Makefile.am,
dnl so update there too if changing anything.
dnl
-AM_INIT_AUTOMAKE([1.8 gnu no-dependencies $(top_builddir)/ansi2knr])
+AM_INIT_AUTOMAKE([1.8 gnu no-dependencies])
AM_CONFIG_HEADER(config.h:config.in)
AM_MAINTAINER_MODE
# Automake ansi2knr support.
-AM_C_PROTOTYPES
+#AM_C_PROTOTYPES
GMP_PROG_AR
GMP_PROG_NM
--- /dev/null
+* Thu Sep 11 2014 Chanho Park <chanho61.park@samsung.com> upstream/6.0.0-12-g945eb4b
+- Imported Upstream version 6.0.0
+
+* Tue Dec 17 2013 Junfeng Dong <junfeng.dong@intel.com> upstream/5.1.3@753c832
+- update to 5.1.3.
+- resetting manifest requested domain to floor
+
+* Sat May 11 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130509.180043@e319f67
+- Set license using %license
+
--- /dev/null
+%define keepstatic 1
+Name: gmp
+Version: 4.2.1
+Release: 0
+License: LGPL-2.1
+Summary: The GNU MP Library
+Url: http://gmplib.org/
+Group: Base/Libraries
+Source: %{name}-%{version}.tar.bz2
+Source2: baselibs.conf
+Source1001: gmp.manifest
+BuildRequires: gcc-c++
+BuildRequires: pkg-config
+
+%description
+A library for calculating huge numbers (integer and floating point).
+
+%package -n libgmp
+Summary: Shared library for the GNU MP Library
+Group: Base/Libraries
+
+%description -n libgmp
+Shared library for the GNU MP Library.
+
+%package -n libgmpxx
+Summary: C++ bindings for the GNU MP Library
+Group: Base/Libraries
+Requires: libgmp = %{version}
+
+%description -n libgmpxx
+C++ bindings for the GNU MP Library.
+
+%package devel
+Summary: Include Files and Libraries for Development with the GNU MP Library
+Group: Base/Development
+Requires: libgmp = %{version}
+Requires: libgmpxx = %{version}
+
+%description devel
+These libraries are needed to develop programs which calculate with
+huge numbers (integer and floating point).
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS="%{optflags} -fexceptions -std=gnu89";
+%reconfigure \
+ --enable-cxx
+make %{?_smp_mflags}
+
+%check
+# do not disable "make check", FIX THE BUGS!
+make check
+
+%install
+%make_install
+
+%post -n libgmp -p /sbin/ldconfig
+
+%post -n libgmpxx -p /sbin/ldconfig
+
+%postun -n libgmp -p /sbin/ldconfig
+
+%postun -n libgmpxx -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%doc AUTHORS README NEWS
+
+%files -n libgmp
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_libdir}/libgmp.so.*
+
+%files -n libgmpxx
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_libdir}/libgmpxx.so.*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%doc AUTHORS README NEWS
+%doc %{_infodir}/gmp.info*.gz
+%{_libdir}/libgmp.a
+%{_libdir}/libgmpxx.a
+%{_libdir}/libgmp.so
+%{_libdir}/libgmpxx.so
+#%{_libdir}/pkgconfig/gmp.pc
+/usr/include/gmp.h
+/usr/include/gmpxx.h