Modernization
This commit is contained in:
parent
cf643916ed
commit
7a09bc4dbd
24
libmpc.spec
24
libmpc.spec
@ -7,10 +7,10 @@ Name: libmpc
|
|||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
License: LGPLv3+ and GFDL
|
License: LGPLv3+ and GFDL
|
||||||
Group: Development/Tools
|
|
||||||
URL: http://www.multiprecision.org/
|
URL: http://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: gmp-devel >= 5.0.0
|
BuildRequires: gmp-devel >= 5.0.0
|
||||||
BuildRequires: mpfr-devel >= 3.0.0
|
BuildRequires: mpfr-devel >= 3.0.0
|
||||||
BuildRequires: texinfo
|
BuildRequires: texinfo
|
||||||
@ -20,7 +20,6 @@ Source1: http://www.multiprecision.org/downloads/mpc-%{bootstrap_version}.tar.gz
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
MPC is a C library for the arithmetic of complex numbers with
|
MPC is a C library for the arithmetic of complex numbers with
|
||||||
arbitrarily high precision and correct rounding of the result. It is
|
arbitrarily high precision and correct rounding of the result. It is
|
||||||
built upon and follows the same principles as Mpfr.
|
built upon and follows the same principles as Mpfr.
|
||||||
@ -32,10 +31,10 @@ built upon and follows the same principles as Mpfr.
|
|||||||
%setup -q -n mpc-%{version}
|
%setup -q -n mpc-%{version}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%build
|
|
||||||
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
|
||||||
@ -43,7 +42,7 @@ export EGREP=egrep
|
|||||||
%if 0%{?bootstrap}
|
%if 0%{?bootstrap}
|
||||||
pushd mpc-%{bootstrap_version}
|
pushd mpc-%{bootstrap_version}
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -52,7 +51,7 @@ make check
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?bootstrap}
|
%if 0%{?bootstrap}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT -C mpc-%{bootstrap_version}
|
%make_install -C mpc-%{bootstrap_version}
|
||||||
|
|
||||||
## remove everything but shlib
|
## remove everything but shlib
|
||||||
rm -fv $RPM_BUILD_ROOT%{_libdir}/libmpc.so
|
rm -fv $RPM_BUILD_ROOT%{_libdir}/libmpc.so
|
||||||
@ -60,12 +59,11 @@ rm -fv $RPM_BUILD_ROOT%{_includedir}/*
|
|||||||
rm -fv $RPM_BUILD_ROOT%{_infodir}/*
|
rm -fv $RPM_BUILD_ROOT%{_infodir}/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.la
|
||||||
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%ldconfig_scriptlets
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING.LESSER
|
%license COPYING.LESSER
|
||||||
@ -105,15 +103,19 @@ Summary: compat/bootstrap mpc-%{bootstrap_version} library
|
|||||||
%description -n compat-libmpc
|
%description -n compat-libmpc
|
||||||
Contains the .so files for mpc version %{bootstrap-version}.
|
Contains the .so files for mpc version %{bootstrap-version}.
|
||||||
|
|
||||||
%post -n compat-libmpc -p /sbin/ldconfig
|
%ldconfig_scriptlets -n compat-libmpc
|
||||||
%postun -n compat-libmpc -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files -n compat-libmpc
|
%files -n compat-libmpc
|
||||||
%{_libdir}/libmpc.so.2*
|
%{_libdir}/libmpc.so.2*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Jan 21 2018 James Paul Turner <jamesturner246@fedoraproject.org> - 1.1.0-1
|
* Mon Feb 26 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.0-1
|
||||||
|
- Modernization of the spec file (remove Group, use new make and ldconfig macros,
|
||||||
|
add gcc to BuildRequires)
|
||||||
|
- Move build to %%build
|
||||||
|
|
||||||
|
* Mon Feb 26 2018 James Paul Turner <jamesturner246@fedoraproject.org> - 1.1.0-1
|
||||||
- Upgrade to libmpc version 1.1.0
|
- Upgrade to libmpc version 1.1.0
|
||||||
- Fix broken compat package build
|
- Fix broken compat package build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user