enable static 12/57212/1 submit/tizen_base/20160118.062013
authorYury Usishchev <y.usishchev@samsung.com>
Wed, 21 Oct 2015 10:52:20 +0000 (13:52 +0300)
committerDongkyun, Son <dongkyun.s@samsung.com>
Thu, 14 Jan 2016 06:18:38 +0000 (15:18 +0900)
Change-Id: I4033ca3dd534b29f1f10e016fa5eaea31151edac

packaging/mpc.spec

index 17a56b9..85d1b95 100644 (file)
@@ -1,46 +1,30 @@
 %define keepstatic 1
-Name:           mpc
+Name:           mpc-static
 Version:        1.0
 Release:        0
 License:        LGPL-3.0+
 Summary:        MPC multiple-precision complex shared library
 Url:            http://www.multiprecision.org/mpc/
 Group:          Development/Libraries/C and C++
-Source:         mpc-%{version}.tar.bz2
+Source:         %{name}-%{version}.tar.bz2
 Source2:        baselibs.conf
 Source1001:    mpc.manifest
-BuildRequires:  gmp-devel
-BuildRequires:  mpfr-devel
+BuildRequires:  gmp-static
+BuildRequires:  mpfr-static
 
 %description
 MPC is a C library for the arithmetic of complex numbers with
 arbitrarily high precision and correct rounding of the result. It is
 built upon and follows the same principles as MPFR.
 
-%package -n libmpc
-Summary:        MPC multiple-precision complex shared library
-Group:          Development/Libraries/C and C++
-
-%description -n libmpc
-MPC is a C library for the arithmetic of complex numbers with
-arbitrarily high precision and correct rounding of the result. It is
-built upon and follows the same principles as MPFR.
-
-%package devel
-Summary:        MPC multiple-precision complex library development files
-Group:          Development/Libraries/C and C++
-Requires:       libmpc = %{version}
-Requires:       mpfr-devel
-
-%description devel
-MPC multiple-precision complex library development files.
-
 %prep
 %setup -q
 cp %{SOURCE1001} .
 
 %build
-%configure
+%configure \
+    --disable-shared \
+    --enable-static
 make %{?_smp_mflags}
 
 %check
@@ -49,23 +33,12 @@ make check %{?_smp_mflags}
 %install
 %make_install
 
-%post -n libmpc -p /sbin/ldconfig
-
-%postun -n libmpc -p /sbin/ldconfig
-
-
-%files -n libmpc
-%manifest %{name}.manifest
-%defattr(-,root,root)
-%{_libdir}/libmpc.so.3*
-
-%files devel
-%manifest %{name}.manifest
+%files
+%manifest mpc.manifest
 %defattr(-,root,root)
 %doc AUTHORS NEWS COPYING.LESSER
 %doc %{_infodir}/mpc.info.gz
 %{_libdir}/libmpc.a
-%{_libdir}/libmpc.so
 /usr/include/mpc.h
 
 %changelog