packaging: enable static 16/57216/2
authorYury Usishchev <y.usishchev@samsung.com>
Wed, 21 Oct 2015 10:58:20 +0000 (13:58 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 18 Jan 2016 06:09:22 +0000 (22:09 -0800)
Change-Id: Ib08fe20b16410cc0355796d543eac3fc48188ba5

packaging/mpfr.spec

index d08863f..7df84a4 100644 (file)
@@ -1,5 +1,5 @@
 %define keepstatic 1
-Name:           mpfr
+Name:           mpfr-static
 Version:        3.1.2
 Release:        0
 License:        LGPL-3.0+
@@ -22,28 +22,6 @@ well-defined semantics. It copies the good ideas from the ANSI/IEEE-754
 standard for double-precision floating-point arithmetic (53-bit
 mantissa).
 
-%package -n libmpfr
-Summary:        The GNU multiple-precision floating-point shared library
-Group:          Base/Libraries
-
-%description -n libmpfr
-The MPFR library is a C library for multiple-precision floating-point
-computations with exact rounding (also called correct rounding). It is
-based on the GMP multiple-precision library.
-
-%package devel
-Summary:        Development files for the GNU multiple-precision floating-point library
-Group:          Base/Libraries
-Requires:       gmp-devel
-Requires:       libmpfr = %{version}
-
-%description devel
-Development files for the GNU multiple-precision floating-point library.
-
-The MPFR library is a C library for multiple-precision floating-point
-computations with exact rounding (also called correct rounding). It is
-based on the GMP multiple-precision library.
-
 %prep
 %setup -q
 cp %{SOURCE1001} .
@@ -51,7 +29,8 @@ cp %{SOURCE1001} .
 %build
 %configure \
     --enable-thread-safe \
-    --enable-shared
+    --enable-static \
+    --disable-shared
 %__make %{?_smp_mflags}
 
 %check
@@ -62,21 +41,9 @@ cp %{SOURCE1001} .
 
 %remove_docs
 
-%post -n libmpfr -p /sbin/ldconfig
-
-%postun -n libmpfr -p /sbin/ldconfig
-
-
-%files -n libmpfr
-%manifest %{name}.manifest
-%license COPYING.LESSER COPYING
-%defattr(-,root,root)
-%{_libdir}/libmpfr.so.4*
-
-%files devel
-%manifest %{name}.manifest
+%files
+%manifest mpfr.manifest
 %defattr(-,root,root)
 %{_libdir}/libmpfr.a
-%{_libdir}/libmpfr.so
 %{_includedir}/mpf2mpfr.h
 %{_includedir}/mpfr.h