|
@@ -1,7 +1,7 @@
|
|
-#
|
|
+%bcond_without test
|
|
|
|
+
|
|
# Important for %{ix86}:
|
|
# Important for %{ix86}:
|
|
# This rpm has to be build on a CPU with sse2 support like Pentium 4 !
|
|
# This rpm has to be build on a CPU with sse2 support like Pentium 4 !
|
|
-#
|
|
|
|
%ifarch %{ix86}
|
|
%ifarch %{ix86}
|
|
%define SSE2 1
|
|
%define SSE2 1
|
|
%else
|
|
%else
|
|
@@ -12,14 +12,14 @@
|
|
%{?_without_sse2%define SSE2 0}
|
|
%{?_without_sse2%define SSE2 0}
|
|
|
|
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
-
|
|
+# to disable "Provides: pkgconfig(foo)" in compat32-*
|
|
%global __provides_exclude_from ^%{_libdir}/pkgconfig/.*$
|
|
%global __provides_exclude_from ^%{_libdir}/pkgconfig/.*$
|
|
|
|
|
|
Summary: A GNU arbitrary precision library.
|
|
Summary: A GNU arbitrary precision library.
|
|
Summary(ja): GNU 多倍長演算ライブラリ
|
|
Summary(ja): GNU 多倍長演算ライブラリ
|
|
Name: gmp
|
|
Name: gmp
|
|
Version: 6.2.1
|
|
Version: 6.2.1
|
|
-Release: 1%{?_dist_release}
|
|
+Release: 2%{?_dist_release}
|
|
Group: system
|
|
Group: system
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -31,6 +31,8 @@ Source: https://gmplib.org/download/gmp/gmp-%{version}.tar.xz
|
|
Source2: gmp.h
|
|
Source2: gmp.h
|
|
Source3: gmp-mparam.h
|
|
Source3: gmp-mparam.h
|
|
Patch2: gmp-6.0.0-debuginfo.patch
|
|
Patch2: gmp-6.0.0-debuginfo.patch
|
|
|
|
+Patch1000: CVE-2021-43618.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: autoconf libtool
|
|
BuildRequires: autoconf libtool
|
|
Obsoletes: gmp4
|
|
Obsoletes: gmp4
|
|
@@ -52,8 +54,6 @@ library.
|
|
Summary: Development tools for the GNU MP arbitrary precision library.
|
|
Summary: Development tools for the GNU MP arbitrary precision library.
|
|
Group: programming
|
|
Group: programming
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
-Requires(post): /sbin/install-info
|
|
|
|
-Requires(preun): /sbin/install-info
|
|
|
|
Provides: pkgconfig(gmp) = %{version}
|
|
Provides: pkgconfig(gmp) = %{version}
|
|
Provides: pkgconfig(gmpxx) = %{version}
|
|
Provides: pkgconfig(gmpxx) = %{version}
|
|
#Obsoletes: gmp4-devel
|
|
#Obsoletes: gmp4-devel
|
|
@@ -79,7 +79,7 @@ in applications.
|
|
|
|
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: A GNU arbitrary precision library.
|
|
Summary: A GNU arbitrary precision library.
|
|
-Group: system
|
|
+Group: system,legacy
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
%description -n compat32-%{name}
|
|
@@ -97,11 +97,9 @@ library.
|
|
|
|
|
|
%package -n compat32-%{name}-devel
|
|
%package -n compat32-%{name}-devel
|
|
Summary: Development tools for the GNU MP arbitrary precision library.
|
|
Summary: Development tools for the GNU MP arbitrary precision library.
|
|
-Group: programming
|
|
+Group: programming,legacy
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: compat32-%{name} = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
-Provides: pkgconfig(gmp) = %{version}
|
|
|
|
-Provides: pkgconfig(gmpxx) = %{version}
|
|
|
|
|
|
|
|
%description -n compat32-%{name}-devel
|
|
%description -n compat32-%{name}-devel
|
|
The libraries, header files and documentation for using the GNU MP
|
|
The libraries, header files and documentation for using the GNU MP
|
|
@@ -114,7 +112,7 @@ install the gmp package.
|
|
|
|
|
|
%package -n compat32-%{name}-static
|
|
%package -n compat32-%{name}-static
|
|
Summary: Development tools for the GNU MP arbitrary precision library
|
|
Summary: Development tools for the GNU MP arbitrary precision library
|
|
-Group: programming
|
|
+Group: programming,legacy
|
|
Requires: compat32-%{name}-devel = %{version}-%{release}
|
|
Requires: compat32-%{name}-devel = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}-static
|
|
%description -n compat32-%{name}-static
|
|
@@ -128,6 +126,7 @@ in applications.
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%patch2 -p1 -b .debuginfo
|
|
%patch2 -p1 -b .debuginfo
|
|
|
|
+%patch1000 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -209,6 +208,7 @@ mv %{buildroot}/%{_includedir}/gmp-mparam.h %{buildroot}/%{_includedir}/gmp-mpar
|
|
install -m644 %{SOURCE3} %{buildroot}/%{_includedir}/gmp-mparam.h
|
|
install -m644 %{SOURCE3} %{buildroot}/%{_includedir}/gmp-mparam.h
|
|
|
|
|
|
|
|
|
|
|
|
+%if %{with test}
|
|
%check
|
|
%check
|
|
%ifnarch ppc
|
|
%ifnarch ppc
|
|
cd base
|
|
cd base
|
|
@@ -223,30 +223,16 @@ export LD_LIBRARY_PATH=`pwd`/.libs
|
|
make %{?_smp_mflags} check
|
|
make %{?_smp_mflags} check
|
|
cd ..
|
|
cd ..
|
|
%endif
|
|
%endif
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
-
|
|
|
|
-%post devel
|
|
|
|
-/sbin/install-info %{_infodir}/gmp.info.gz %{_infodir}/dir
|
|
|
|
-
|
|
|
|
-%preun devel
|
|
|
|
-if [ "$1" = 0 ]; then
|
|
|
|
- /sbin/install-info --delete %{_infodir}/gmp.info.gz %{_infodir}/dir
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%license COPYING COPYING.LIB
|
|
+%license COPYING*
|
|
%doc NEWS README
|
|
%doc NEWS README
|
|
%{_libdir}/libgmp.so.*
|
|
%{_libdir}/libgmp.so.*
|
|
%{_libdir}/libgmpxx.so.*
|
|
%{_libdir}/libgmpxx.so.*
|
|
@@ -296,6 +282,10 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Nov 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.2.1-2
|
|
|
|
+- imported Patch1000 from upstream to fix CVE-2021-43618.
|
|
|
|
+- dropped scriptlets.
|
|
|
|
+
|
|
* Tue Feb 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.2.1-1
|
|
* Tue Feb 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.2.1-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|