make static sandbox/dongkyun.s/tizen_base
authorYury Usishchev <y.usishchev@samsung.com>
Wed, 21 Oct 2015 10:22:19 +0000 (13:22 +0300)
committerDongkyun, Son <dongkyun.s@samsung.com>
Thu, 14 Jan 2016 06:15:48 +0000 (15:15 +0900)
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