diff options
author | Yury Usishchev <y.usishchev@samsung.com> | 2015-10-21 13:22:19 +0300 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2016-01-17 22:08:57 -0800 |
commit | 5c0e5c5eea1dda4becfe4dd4af11d88c6e473a76 (patch) | |
tree | b7025f683acaf64c1722f97a9ba420de427b8b42 | |
parent | 26c21d1b57e475c96da1af61cc6841168df56e43 (diff) | |
download | gmp-tizen_base.tar.gz gmp-tizen_base.tar.bz2 gmp-tizen_base.zip |
packaging: make staticsubmit/tizen_base/20160118.064843accepted/tizen/base/20160119.051817tizen_baseaccepted/tizen_base
Change-Id: Ibf1ad8e010a34ed703947faa97a45c51cc91601c
-rw-r--r-- | packaging/gmp.spec | 57 |
1 files changed, 5 insertions, 52 deletions
diff --git a/packaging/gmp.spec b/packaging/gmp.spec index 7d2ea93..709e07c 100644 --- a/packaging/gmp.spec +++ b/packaging/gmp.spec @@ -1,5 +1,5 @@ %define keepstatic 1 -Name: gmp +Name: gmp-static Version: 6.0.0 Release: 0 License: GPL-2.0 and LGPL-3.0+ @@ -13,32 +13,7 @@ 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). +A static binaries for a library for calculating huge numbers (integer and floating point). %prep %setup -q @@ -47,6 +22,8 @@ cp %{SOURCE1001} . %build export CFLAGS="%{optflags} -fexceptions"; %reconfigure \ + --enable-static \ + --disable-shared \ --enable-cxx make %{?_smp_mflags} @@ -57,38 +34,14 @@ 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 +%manifest gmp.manifest %license COPYINGv2 %doc AUTHORS README NEWS - -%files -n libgmp -%manifest %{name}.manifest -%defattr(-,root,root) -%{_libdir}/libgmp.so.10* - -%files -n libgmpxx -%manifest %{name}.manifest -%defattr(-,root,root) -%{_libdir}/libgmpxx.so.4* - -%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 |