add packaging and fix build submit/tizen_base/20151229.025843 submit/tizen_tv/20151223.110647 submit/tizen_tv/20151229.024302
authorYury Usishchev <y.usishchev@samsung.com>
Fri, 23 Oct 2015 11:04:12 +0000 (14:04 +0300)
committerDongkyun, Son <dongkyun.s@samsung.com>
Mon, 21 Dec 2015 07:29:54 +0000 (16:29 +0900)
Makefile.am
configure.in
gmp-h.in
packaging/baselibs.conf [new file with mode: 0644]
packaging/gmp.changes [new file with mode: 0644]
packaging/gmp.manifest [new file with mode: 0644]
packaging/gmp.spec [new file with mode: 0644]

index abb1d225e0299de6760ef60ebfe5080d7635fda7..adc8881d73aff2d8ac63e820ce4259d95d4fef02 100644 (file)
@@ -27,7 +27,7 @@
 # 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
index 450cc925549ac0bcbfbb1af0f32b754efda5da07..78840e2b801c2152d3886cccd9de85131dca7c87 100644 (file)
@@ -67,7 +67,7 @@ dnl
 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
 
@@ -2025,7 +2025,7 @@ echo "      MPN_PATH=\"$path\""
 
 
 # Automake ansi2knr support.
-AM_C_PROTOTYPES
+#AM_C_PROTOTYPES
 
 GMP_PROG_AR
 GMP_PROG_NM
index eed6fe46bb5cfcfc929e2adb66b78d25c957e5a3..b5581d848d3ea60001b649e1516a200d0cef5215 100644 (file)
--- a/gmp-h.in
+++ b/gmp-h.in
@@ -512,8 +512,10 @@ typedef __mpq_struct *mpq_ptr;
 
 #if defined (__cplusplus)
 extern "C" {
+#ifdef _GMP_H_HAVE_FILE
 using std::FILE;
 #endif
+#endif
 
 #define mp_set_memory_functions __gmp_set_memory_functions
 __GMP_DECLSPEC void mp_set_memory_functions __GMP_PROTO ((void *(*) (size_t),
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..0cab2f2
--- /dev/null
@@ -0,0 +1,9 @@
+libgmp
+  obsoletes "gmp-<targettype>"
+  targetarch ia64 block!
+libgmpxx
+  targetarch ia64 block!
+gmp-devel
+  requires -gmp-<targettype>
+  requires "libgmp-<targettype> = <version>"
+  requires "libgmpxx-<targettype> = <version>"
diff --git a/packaging/gmp.changes b/packaging/gmp.changes
new file mode 100644 (file)
index 0000000..29e175a
--- /dev/null
@@ -0,0 +1,10 @@
+* 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
+
diff --git a/packaging/gmp.manifest b/packaging/gmp.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/gmp.spec b/packaging/gmp.spec
new file mode 100644 (file)
index 0000000..fbc5dce
--- /dev/null
@@ -0,0 +1,94 @@
+%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