Accepting request 48543 from devel:libraries:c_c++
checked in (request 48543) OBS-URL: https://build.opensuse.org/request/show/48543 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
b6c617ebfc
commit
e839fa372a
32
mpfr.spec
32
mpfr.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package mpfr (Version 3.0.0)
|
||||
# spec file for package mpfr (Version 2.4.2)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -17,20 +17,19 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define debug_package_requires libmpfr4 = %{version}-%{release}
|
||||
%define debug_package_requires libmpfr1 = %{version}-%{release}
|
||||
|
||||
Name: mpfr
|
||||
BuildRequires: gmp-devel
|
||||
License: LGPLv2.1+
|
||||
Group: Development/Libraries/C and C++
|
||||
AutoReqProv: on
|
||||
Version: 3.0.0
|
||||
Release: 1
|
||||
Version: 2.4.2
|
||||
Release: 2
|
||||
Summary: The MPFR multiple-precision floating-point library
|
||||
Url: http://www.mpfr.org/
|
||||
Source: mpfr-%{version}.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
Patch: mpfr-3.0.0-cummulative.patch
|
||||
Source2: baselibs.conf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -53,7 +52,7 @@ Authors:
|
||||
Vincent Lef<EFBFBD>vre
|
||||
Patrick P<EFBFBD>lissier
|
||||
|
||||
%package -n libmpfr4
|
||||
%package -n libmpfr1
|
||||
License: LGPLv2.1+
|
||||
Summary: MPFR multiple-precision floating-point computation shared library
|
||||
Group: Development/Libraries/C and C++
|
||||
@@ -62,7 +61,7 @@ AutoReqProv: on
|
||||
Provides: mpfr = 2.3.0
|
||||
Obsoletes: mpfr < 2.3.0
|
||||
|
||||
%description -n libmpfr4
|
||||
%description -n libmpfr1
|
||||
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.
|
||||
@@ -80,7 +79,7 @@ Authors:
|
||||
License: LGPLv2.1+
|
||||
Summary: MPFR multiple-precision floating-point library development files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libmpfr4 = %{version} gmp-devel
|
||||
Requires: libmpfr1 = %{version} gmp-devel
|
||||
Provides: gmp-devel:/usr/lib/libmpfr.a
|
||||
AutoReqProv: on
|
||||
PreReq: %install_info_prereq
|
||||
@@ -99,33 +98,32 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
%if 0%{suse_version} > 1000
|
||||
%ifnarch %sparc hppa
|
||||
%ifnarch %sparc
|
||||
--enable-thread-safe \
|
||||
%endif
|
||||
%endif
|
||||
--enable-shared \
|
||||
--docdir=%{_docdir}/mpfr
|
||||
make %{?_smp_mflags}
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
%check
|
||||
make check %{?_smp_mflags}
|
||||
make check %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
|
||||
|
||||
%post -n libmpfr4
|
||||
%post -n libmpfr1
|
||||
%run_ldconfig
|
||||
|
||||
%post devel
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%postun -n libmpfr4
|
||||
%postun -n libmpfr1
|
||||
%run_ldconfig
|
||||
|
||||
%postun devel
|
||||
@@ -134,9 +132,9 @@ rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -n libmpfr4
|
||||
%files -n libmpfr1
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libmpfr.so.4*
|
||||
%{_libdir}/libmpfr.so.1*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user