%define keepstatic 1
-Name: gmp
+Name: gmp-static
Version: 6.0.0
Release: 0
License: GPL-2.0 and LGPL-3.0+
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
%build
export CFLAGS="%{optflags} -fexceptions";
%reconfigure \
+ --enable-static \
+ --disable-shared \
--enable-cxx
make %{?_smp_mflags}
%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