Compare commits

..

No commits in common. "73cd0f6eaea3689326771aa590b2f94a39617e75" and "15ed3a840447948a56a85447397ff818b3effd6b" have entirely different histories.

3 changed files with 30 additions and 32 deletions

BIN
gmp-6.2.1.tar.bz2 Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +1,11 @@
Name: gmp
Version: 6.3.0
Release: 3
Version: 6.2.1
Release: 1
Epoch: 1
URL: https://gmplib.org
Source0: https://gmplib.org/download/gmp/gmp-%{version}.tar.xz
License: (LGPL-3.0-or-later OR GPL-2.0-or-later OR (LGPL-3.0-or-later AND GPL-2.0-or-later)) AND GFDL-1.3-invariants-or-later
BuildRequires: gcc gcc-c++ make m4
Source0: https://gmplib.org/download/gmp/gmp-%{version}.tar.bz2
License: LGPLv3 and GPLv2
BuildRequires: autoconf automake libtool gcc gcc-c++ git perl-Carp
Summary: A GNU multiple precision arithmetic library
%description
@ -18,8 +18,7 @@ precision than is directly supported by the basic C types.
Summary: Development library package for GMP.
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release}
Conflicts: %{name}%{?_isa} < 1:6.3.0-3
Conflicts: %{name}-c++%{?_isa} < 1:6.3.0-3
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description devel
Devel package include header files, documentation and libraries for GMP
@ -32,11 +31,12 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
GMP dependent library for C++ applications.
%prep
%autosetup -p1
%autosetup -S git
%build
autoreconf -ifv
if as --help | grep -q execstack; then
export CCAS="%{__cc} -c -Wa,--noexecstack"
export CCAS="gcc -c -Wa,--noexecstack"
fi
%ifarch %{ix86}
@ -51,23 +51,38 @@ sed -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-i libtool
export LD_LIBRARY_PATH=`pwd`/.libs
%make_build
make %{?_smp_mflags}
%install
%make_install
export LD_LIBRARY_PATH=`pwd`/.libs
make install DESTDIR=$RPM_BUILD_ROOT
install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir}
%delete_la
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
rm -f $RPM_BUILD_ROOT%{_libdir}/lib{gmp,mp,gmpxx}.la
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
ln -sf libgmpxx.so.4 $RPM_BUILD_ROOT%{_libdir}/libgmpxx.so
basearch=%{_arch}
%ifarch %{ix86}
basearch=i386
%endif
%check
export LD_LIBRARY_PATH=`pwd`/.libs
%make_build check
make %{?_smp_mflags} check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post c++ -p /sbin/ldconfig
%postun c++ -p /sbin/ldconfig
%files
%{!?_licensedir:%global license %%doc}
%license COPYING COPYING.LESSERv3 COPYINGv2 COPYINGv3
%doc NEWS README
%{_libdir}/libgmp.so.*
%{_libdir}/pkgconfig/gmp.pc
%files devel
%{_libdir}/libgmpxx.so
@ -76,29 +91,12 @@ export LD_LIBRARY_PATH=`pwd`/.libs
%{_infodir}/gmp.info*
%{_libdir}/libgmpxx.a
%{_libdir}/libgmp.a
%{_libdir}/pkgconfig/gmp.pc
%{_libdir}/pkgconfig/gmpxx.pc
%files c++
%{_libdir}/libgmpxx.so.*
%{_libdir}/pkgconfig/gmpxx.pc
%changelog
* Tue Jul 30 2024 Funda Wang <fundawang@yeah.net> - 1:6.3.0-3
- move pkgconfig files into devel pacakage
- merge clang and gcc declaration
* Sat Aug 05 2023 cf-zhao <zhaochuanfeng@huawei.com> 1:6.3.0-2
- Support build with clang
* Mon Jul 31 2023 Funda Wang <fundawang@yeah.net> - 1:6.3.0-1
- New version 6.3.0
* Tue Dec 7 2021 zhouwenpei <zhouwenpei1@huawei.com> - 1:6.2.1-3
- fix CVE-2021-43618
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1:6.2.1-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Sat Jan 30 2021 xinghe <xinghe1@huawei.com> - 1:6.2.1-1
- Upgrade to 6.2.1