Cleanup spec
(cherry picked from commit dc20450399c040d332ed5f1c6dbece3647fc0fc6)
This commit is contained in:
parent
69aed19ee2
commit
1ada723176
44
mpfr.spec
44
mpfr.spec
@ -1,14 +1,14 @@
|
||||
Name: mpfr
|
||||
Version: 4.2.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: A C library for multiple-precision floating-point computations
|
||||
URL: http://www.mpfr.org/
|
||||
License: LGPLv3+ and GPLv3+ and GFDL-1.2-only
|
||||
BuildRequires: autoconf libtool gmp-devel gcc git
|
||||
Requires: /sbin/ldconfig
|
||||
Requires: gmp >= 4.2.3
|
||||
URL: https://www.mpfr.org/
|
||||
License: LGPL-3.0-or-later and GPL-3.0-or-later and GFDL-1.2-only
|
||||
BuildRequires: gcc make
|
||||
BuildRequires: gmp-devel >= 1:5.0
|
||||
Requires: gmp >= 1:5.0
|
||||
|
||||
Source0: http://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.xz
|
||||
Source0: https://www.mpfr.org/%{name}-%{version}/%{name}-%{version}.tar.xz
|
||||
|
||||
%description
|
||||
MPFR is a C library for arbitrary-precision binary floating-point computation
|
||||
@ -22,8 +22,6 @@ in particular)
|
||||
%package devel
|
||||
Summary: Development files for the MPFR library
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: /sbin/install-info
|
||||
Requires: gmp-devel
|
||||
|
||||
%description devel
|
||||
Devel for %{name}
|
||||
@ -37,33 +35,17 @@ install the mpfr package.
|
||||
|
||||
%build
|
||||
%configure --disable-assert --disable-static
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.la
|
||||
%make_install
|
||||
%delete_la
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/COPYING $RPM_BUILD_ROOT%{_pkgdocdir}/COPYING.LESSER
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post devel
|
||||
if [ -f %{_infodir}/mpfr.info.gz ]; then
|
||||
/sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
|
||||
fi
|
||||
|
||||
%preun devel
|
||||
if [ "$1" = 0 ]; then
|
||||
if [ -f %{_infodir}/mpfr.info.gz ]; then
|
||||
/sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
|
||||
fi
|
||||
fi
|
||||
%make_build check
|
||||
|
||||
%files
|
||||
%license COPYING COPYING.LESSER
|
||||
@ -78,6 +60,10 @@ fi
|
||||
%{_libdir}/pkgconfig/mpfr.pc
|
||||
|
||||
%changelog
|
||||
* Tue Aug 06 2024 Funda Wang <fundawang@yeah.net> - 4.2.1-2
|
||||
- Cleanup spec
|
||||
- bump epoch for gmp package
|
||||
|
||||
* Mon Feb 26 2024 Liu Chao <liuchao173@huawei.com> - 4.2.1-1
|
||||
- Upgrade to 4.2.1
|
||||
- Bug fixes
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user