packaging: make static 11/57211/2 accepted/tizen_base tizen_base accepted/tizen/base/20160119.051817 submit/tizen_base/20160118.064843
authorYury Usishchev <y.usishchev@samsung.com>
Wed, 21 Oct 2015 10:22:19 +0000 (13:22 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 18 Jan 2016 06:08:57 +0000 (22:08 -0800)
Change-Id: Ibf1ad8e010a34ed703947faa97a45c51cc91601c

packaging/gmp.spec

index 7d2ea93..709e07c 100644 (file)
@@ -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