SHA256
6
0
forked from pool/mpfr

Accepting request 288292 from home:pluskalm:branches:devel:libraries:c_c++

- Cleanup spec file with spec-claner
- Add gpg signature

OBS-URL: https://build.opensuse.org/request/show/288292
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=28
This commit is contained in:
2015-03-01 12:25:00 +00:00
committed by Git OBS Bridge
parent 0063cae2f0
commit ac16df0bcd
4 changed files with 189 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package mpfr
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +17,18 @@
Name: mpfr
BuildRequires: gmp-devel
Version: 3.1.2
Release: 0
Summary: The GNU multiple-precision floating-point library
License: LGPL-3.0+
Group: Development/Libraries/C and C++
Url: http://www.mpfr.org/
Source: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.bz2
Source2: baselibs.conf
Source0: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.bz2
Source1: http://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.bz2.asc
Source2: %{name}.keyring
Source3: baselibs.conf
Patch1: mpfr-3.1.2-patch11.diff
BuildRequires: gmp-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -40,7 +42,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 libmpfr4
Summary: The GNU multiple-precision floating-point shared library
Group: Development/Libraries/C and C++
@@ -50,13 +51,12 @@ 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: Development/Libraries/C and C++
Requires: gmp-devel
Requires: libmpfr4 = %{version}
PreReq: %install_info_prereq
Requires(pre): %{install_info_prereq}
%description devel
Development files for the GNU multiple-precision floating-point library.
@@ -65,7 +65,6 @@ 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
%patch1 -p1
@@ -75,18 +74,18 @@ based on the GMP multiple-precision library.
%ifarch %sparc hppa
--disable-thread-safe \
%else
--enable-thread-safe \
--enable-thread-safe \
%endif
--enable-shared \
--docdir=%{_docdir}/mpfr
--docdir=%{_docdir}/%{name}
make %{?_smp_mflags}
%check
make check %{?_smp_mflags}
%install
%makeinstall
rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libmpfr4 -p /sbin/ldconfig
@@ -108,7 +107,7 @@ rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
%doc %{_infodir}/mpfr.info.gz
%{_libdir}/libmpfr.a
%{_libdir}/libmpfr.so
%{_prefix}/include/mpf2mpfr.h
%{_prefix}/include/mpfr.h
%{_includedir}/mpf2mpfr.h
%{_includedir}/mpfr.h
%changelog