#TARBALL: https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz #MD5SUM: 4125404e41e482ec68282a2e687f6c73;SOURCES/mpc-1.1.0.tar.gz #----------------------------------------------------------------------------- Summary: The MPC package contains a library for the arithmetic of complex numbers Name: mpc Version: 1.1.0 Release: 2 License: LGPLv3 URL: Any Group: LFS/Base Source0: http://www.multiprecision.org/%{name}/download/%{name}-%{version}.tar.gz Requires: filesystem %description The MPC package contains a library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. #----------------------------------------------------------------------------- %prep %setup -q -n %{NAME}-%{VERSION} %build ./configure \ --prefix=%{_prefix} \ --disable-static \ --docdir=%{_docdir}/%{NAME}-%{VERSION} make %{?_smp_mflags} make %{?_smp_mflags} html %install make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install-html #----------------------------------------------------------------------------- # Copy license/copying file install -D -m644 COPYING.LESSER %{buildroot}/usr/share/licenses/%{name}/LICENSE #----------------------------------------------------------------------------- # Create file list rm %{buildroot}%{_infodir}/dir find %{buildroot} -name '*.la' -delete find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list sed -i '/man\/man/d' filelist.list sed -i '/\/usr\/share\/info/d' filelist.list #----------------------------------------------------------------------------- %files -f filelist.list %defattr(-,root,root) %{_infodir}/* #----------------------------------------------------------------------------- %changelog * Sun May 31 2020 Chris Cromer 1.1.0-2 * Tue Jan 09 2018 baho-utot 1.1.0-1 - Initial build. First version