From a2e78768570b938cf0861642c5f55b61d0fbb1c2b7b5e085d17457a4d0ed211f Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 13 Sep 2010 10:20:41 +0000 Subject: [PATCH] - Package BSB libmp bindings. [bnc#623910] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gmp?expand=0&rev=12 --- baselibs.conf | 2 ++ gmp.changes | 5 +++++ gmp.spec | 37 +++++++++++++++++++++++-------------- 3 files changed, 30 insertions(+), 14 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 4328005..01a8b1e 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -3,7 +3,9 @@ targettype x86 package libgmp3 libgmp10 obsoletes "gmp-" libgmpxx4 +libmp3 gmp-devel requires -gmp- requires "libgmp10- = " requires "libgmpxx4- = " + requires "libmp3- = " diff --git a/gmp.changes b/gmp.changes index e869cb4..3960a21 100644 --- a/gmp.changes +++ b/gmp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 13 10:20:05 UTC 2010 - rguenther@novell.com + +- Package BSB libmp bindings. [bnc#623910] + ------------------------------------------------------------------- Mon Sep 6 13:27:34 UTC 2010 - rguenther@novell.com diff --git a/gmp.spec b/gmp.spec index d67ac66..17e5953 100644 --- a/gmp.spec +++ b/gmp.spec @@ -42,11 +42,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build A library for calculating huge numbers (integer and floating point). - -Authors: --------- - Torbjorn Granlund - %package -n libgmp10 License: GPLv3+ ; LGPLv3+ Summary: Shared library for the GNU MP Library @@ -59,11 +54,6 @@ Obsoletes: gmp <= 4.2.3 Shared library for the GNU MP Library. - -Authors: --------- - Torbjorn Granlund - %package -n libgmpxx4 License: GPLv3+ ; LGPLv3+ Summary: C++ bindings for the GNU MP Library @@ -74,10 +64,15 @@ Requires: libgmp10 = %{version} C++ bindings for the GNU MP Library. +%package -n libmp3 +License: GPLv3+ ; LGPLv3+ +Summary: BSD libmp bindings for the GNU MP Library +Group: System/Libraries +Requires: libgmp10 = %{version} + +%description -n libmp3 +BSD libmp bindings for the GNU MP Library. -Authors: --------- - Torbjorn Granlund %package devel License: GPLv3+ ; LGPLv3+ @@ -85,6 +80,7 @@ Summary: Include Files and Libraries for Development with the GNU MP Libr Group: Development/Languages/C and C++ Requires: libgmp10 = %{version} Requires: libgmpxx4 = %{version} +Requires: libmp3 = %{version} AutoReqProv: on # bug437293 %ifarch ppc64 @@ -133,7 +129,8 @@ CFLAGS="$RPM_OPT_FLAGS -fexceptions" \ --build=%{sanitized_platform} \ --disable-mpfr \ --enable-cxx \ - --enable-fat + --enable-fat \ + --enable-mpbsd make CFLAGS="$RPM_OPT_FLAGS -fexceptions" %{?_smp_mflags} %check @@ -145,11 +142,15 @@ make install DESTDIR=${RPM_BUILD_ROOT} rm $RPM_BUILD_ROOT%{_libdir}/libgmp.la rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.la rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.a +rm $RPM_BUILD_ROOT%{_libdir}/libmp.a +rm $RPM_BUILD_ROOT%{_libdir}/libmp.la %post -n libgmp10 -p /sbin/ldconfig %post -n libgmpxx4 -p /sbin/ldconfig +%post -n libmp3 -p /sbin/ldconfig + %post devel %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz @@ -157,6 +158,8 @@ rm $RPM_BUILD_ROOT%{_libdir}/libgmpxx.a %postun -n libgmpxx4 -p /sbin/ldconfig +%postun -n libmp3 -p /sbin/ldconfig + %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz @@ -171,6 +174,10 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %{_libdir}/libgmpxx.so.4* +%files -n libmp3 +%defattr(-,root,root) +%{_libdir}/libmp.so.3* + %files devel %defattr(-,root,root) %doc AUTHORS README NEWS @@ -179,7 +186,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libgmp.a %{_libdir}/libgmp.so %{_libdir}/libgmpxx.so +%{_libdir}/libmp.so /usr/include/gmp.h /usr/include/gmpxx.h +/usr/include/mp.h %changelog