Compare commits
10 Commits
15ed3a8404
...
73cd0f6eae
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73cd0f6eae | ||
|
|
3f6b3e0b83 | ||
|
|
7dcddea93d | ||
|
|
a4c445acd9 | ||
|
|
0757932d6d | ||
|
|
c95503b670 | ||
|
|
5a5e303b40 | ||
|
|
66f1675f55 | ||
|
|
c088b9e8a1 | ||
|
|
2bfbb87b98 |
Binary file not shown.
BIN
gmp-6.3.0.tar.xz
Normal file
BIN
gmp-6.3.0.tar.xz
Normal file
Binary file not shown.
62
gmp.spec
62
gmp.spec
@ -1,11 +1,11 @@
|
|||||||
Name: gmp
|
Name: gmp
|
||||||
Version: 6.2.1
|
Version: 6.3.0
|
||||||
Release: 1
|
Release: 3
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
URL: https://gmplib.org
|
URL: https://gmplib.org
|
||||||
Source0: https://gmplib.org/download/gmp/gmp-%{version}.tar.bz2
|
Source0: https://gmplib.org/download/gmp/gmp-%{version}.tar.xz
|
||||||
License: LGPLv3 and GPLv2
|
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: autoconf automake libtool gcc gcc-c++ git perl-Carp
|
BuildRequires: gcc gcc-c++ make m4
|
||||||
Summary: A GNU multiple precision arithmetic library
|
Summary: A GNU multiple precision arithmetic library
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -18,7 +18,8 @@ precision than is directly supported by the basic C types.
|
|||||||
Summary: Development library package for GMP.
|
Summary: Development library package for GMP.
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release}
|
Requires: %{name}-c++%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
|
Conflicts: %{name}%{?_isa} < 1:6.3.0-3
|
||||||
|
Conflicts: %{name}-c++%{?_isa} < 1:6.3.0-3
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Devel package include header files, documentation and libraries for GMP
|
Devel package include header files, documentation and libraries for GMP
|
||||||
@ -31,12 +32,11 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|||||||
GMP dependent library for C++ applications.
|
GMP dependent library for C++ applications.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -S git
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -ifv
|
|
||||||
if as --help | grep -q execstack; then
|
if as --help | grep -q execstack; then
|
||||||
export CCAS="gcc -c -Wa,--noexecstack"
|
export CCAS="%{__cc} -c -Wa,--noexecstack"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
@ -51,38 +51,23 @@ 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' \
|
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
||||||
-i libtool
|
-i libtool
|
||||||
export LD_LIBRARY_PATH=`pwd`/.libs
|
export LD_LIBRARY_PATH=`pwd`/.libs
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export LD_LIBRARY_PATH=`pwd`/.libs
|
%make_install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir}
|
install -m 644 gmp-mparam.h ${RPM_BUILD_ROOT}%{_includedir}
|
||||||
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}
|
%delete_la
|
||||||
%ifarch %{ix86}
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
basearch=i386
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LD_LIBRARY_PATH=`pwd`/.libs
|
export LD_LIBRARY_PATH=`pwd`/.libs
|
||||||
make %{?_smp_mflags} check
|
%make_build check
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post c++ -p /sbin/ldconfig
|
|
||||||
%postun c++ -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license COPYING COPYING.LESSERv3 COPYINGv2 COPYINGv3
|
%license COPYING COPYING.LESSERv3 COPYINGv2 COPYINGv3
|
||||||
%doc NEWS README
|
%doc NEWS README
|
||||||
%{_libdir}/libgmp.so.*
|
%{_libdir}/libgmp.so.*
|
||||||
%{_libdir}/pkgconfig/gmp.pc
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libgmpxx.so
|
%{_libdir}/libgmpxx.so
|
||||||
@ -91,12 +76,29 @@ make %{?_smp_mflags} check
|
|||||||
%{_infodir}/gmp.info*
|
%{_infodir}/gmp.info*
|
||||||
%{_libdir}/libgmpxx.a
|
%{_libdir}/libgmpxx.a
|
||||||
%{_libdir}/libgmp.a
|
%{_libdir}/libgmp.a
|
||||||
|
%{_libdir}/pkgconfig/gmp.pc
|
||||||
|
%{_libdir}/pkgconfig/gmpxx.pc
|
||||||
|
|
||||||
%files c++
|
%files c++
|
||||||
%{_libdir}/libgmpxx.so.*
|
%{_libdir}/libgmpxx.so.*
|
||||||
%{_libdir}/pkgconfig/gmpxx.pc
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Jan 30 2021 xinghe <xinghe1@huawei.com> - 1:6.2.1-1
|
||||||
- Upgrade to 6.2.1
|
- Upgrade to 6.2.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user