diff --git a/gmp.spec b/gmp.spec index ae01abe..efbf9e5 100644 --- a/gmp.spec +++ b/gmp.spec @@ -6,7 +6,7 @@ Summary: A GNU arbitrary precision library Name: gmp Version: 6.1.0 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 URL: http://gmplib.org/ Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}.tar.bz2 @@ -33,10 +33,19 @@ emphasizes speed over simplicity/elegance in its operations. Install the gmp package if you need a fast arbitrary precision library. +%package c++ +Summary: C++ bindings for the GNU MP arbitrary precision library +Group: System Environment/Libraries +Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} + +%description c++ +Bindings for using the GNU MP arbitrary precision library in C++ applications. + %package devel Summary: Development tools for the GNU MP arbitrary precision library Group: Development/Libraries -Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} +Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release} Requires(post): /sbin/install-info Requires(preun): /sbin/install-info @@ -197,6 +206,10 @@ cd .. %postun -p /sbin/ldconfig +%post c++ -p /sbin/ldconfig + +%postun c++ -p /sbin/ldconfig + %post devel if [ -f %{_infodir}/gmp.info.gz ]; then /sbin/install-info %{_infodir}/gmp.info.gz %{_infodir}/dir || : @@ -217,11 +230,13 @@ exit 0 %license COPYING COPYING.LESSERv3 COPYINGv2 COPYINGv3 %doc NEWS README %{_libdir}/libgmp.so.* -%{_libdir}/libgmpxx.so.* #%ifarch %{ix86} #%{_libdir}/sse2/* #%endif +%files c++ +%{_libdir}/libgmpxx.so.* + %files devel %defattr(-,root,root,-) %{_libdir}/libgmp.so @@ -235,6 +250,9 @@ exit 0 %{_libdir}/libgmpxx.a %changelog +* Fri Apr 08 2016 Yaakov Selkowitz - 1:6.1.0-3 +- Split c++ subpackage (#1325439) + * Wed Feb 03 2016 Fedora Release Engineering - 1:6.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild