cleanup spec
(cherry picked from commit 4059ec4643dc2c86ec5ba43913f4d3980c9ae7a8)
This commit is contained in:
parent
dcf4a81785
commit
b3c4c468f9
35
libmpc.spec
35
libmpc.spec
@ -1,15 +1,15 @@
|
|||||||
Name: libmpc
|
Name: libmpc
|
||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: C library for multiple precision complex arithmetic
|
Summary: C library for multiple precision complex arithmetic
|
||||||
License: LGPLv3+ and GFDL-1.3-only
|
License: LGPLv3+ and GFDL-1.3-only
|
||||||
URL: http://www.multiprecision.org/
|
URL: https://www.multiprecision.org/
|
||||||
Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
|
Source0: https://ftp.gnu.org/gnu/mpc/mpc-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gmp-devel >= 5.0.0
|
BuildRequires: gmp-devel >= 5.0.0
|
||||||
BuildRequires: mpfr-devel >= 4.1.0
|
BuildRequires: mpfr-devel >= 4.1.0
|
||||||
BuildRequires: texinfo
|
BuildRequires: /usr/bin/makeinfo
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MPC is a C library for the arithmetic of complex numbers with arbitrarily high
|
MPC is a C library for the arithmetic of complex numbers with arbitrarily high
|
||||||
@ -29,35 +29,21 @@ Header files and shared object symlinks for MPC is a C library.
|
|||||||
%setup -q -n mpc-%{version}
|
%setup -q -n mpc-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
export CPPFLAGS="%{optflags} -std=gnu99"
|
export CPPFLAGS="%{optflags} -std=gnu99"
|
||||||
export CFLAGS="%{optflags} -std=gnu99"
|
export CFLAGS="%{optflags} -std=gnu99"
|
||||||
export EGREP=egrep
|
export EGREP=egrep
|
||||||
|
|
||||||
|
%configure --disable-static
|
||||||
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
%make_build check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.la
|
%delete_la
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
|
||||||
|
|
||||||
%preun devel
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
|
|
||||||
/sbin/install-info --delete %{_infodir}/mpc.info.gz %{_infodir}/dir || :
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post devel
|
|
||||||
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
|
|
||||||
/sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README NEWS
|
%doc README NEWS
|
||||||
%license COPYING.LESSER
|
%license COPYING.LESSER
|
||||||
@ -69,13 +55,16 @@ fi
|
|||||||
%{_libdir}/libmpc.so
|
%{_libdir}/libmpc.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 02 2024 Funda Wang <fundawang@yeah.net> - 1.3.1-2
|
||||||
|
- cleanup spec
|
||||||
|
|
||||||
* Sat Jan 28 2023 Wenyu Liu<liuwenyu7@huawei.com> - 1.3.1-1
|
* Sat Jan 28 2023 Wenyu Liu<liuwenyu7@huawei.com> - 1.3.1-1
|
||||||
- Upgrade to 1.3.1
|
- Upgrade to 1.3.1
|
||||||
|
|
||||||
* Thu Jan 5 2023 Wenyu Liu<liuwenyu7@huawei.com> - 1.2.0-4
|
* Thu Jan 5 2023 Wenyu Liu<liuwenyu7@huawei.com> - 1.2.0-4
|
||||||
- Rectify the content that does not comply with specifications in the spec file
|
- Rectify the content that does not comply with specifications in the spec file
|
||||||
|
|
||||||
* Mon June 6 2022 Xinyi Gou<rv7dzzhhs4c@163.com> - 1.2.0-3
|
* Mon Jun 6 2022 Xinyi Gou<rv7dzzhhs4c@163.com> - 1.2.0-3
|
||||||
- Specify license version
|
- Specify license version
|
||||||
|
|
||||||
* Thu Sep 24 2020 EulerOSWander<314264452@qq.com> - 1.2.0-2
|
* Thu Sep 24 2020 EulerOSWander<314264452@qq.com> - 1.2.0-2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user