From 45c7d7b41356764bbc64321cd052923ec1915e74 Mon Sep 17 00:00:00 2001 From: herengui Date: Mon, 7 Feb 2022 09:22:32 +0800 Subject: [PATCH] add check section to spec file Signed-off-by: herengui --- curl.spec | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/curl.spec b/curl.spec index 354ef22..19383d9 100644 --- a/curl.spec +++ b/curl.spec @@ -6,7 +6,7 @@ Name: curl Version: 7.71.1 -Release: 12 +Release: 13 Summary: Curl is used in command lines or scripts to transfer data License: MIT URL: https://curl.haxx.se/ @@ -119,6 +119,19 @@ sed -e 's/^runpath_var=.*/runpath_var=/' \ %make_build V=1 -C build-full +%check +# we have to override LD_LIBRARY_PATH because we eliminated rpath +LD_LIBRARY_PATH="$RPM_BUILD_ROOT%{_libdir}:$LD_LIBRARY_PATH" +export LD_LIBRARY_PATH +# compile upstream test-cases +cd build-full/tests +%make_build V=1 +# relax crypto policy for the test-suite to make it pass again (#1611712) +export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX +export OPENSSL_CONF= +# run the upstream test-suite +srcdir=../../tests perl -I../../tests ../../tests/runtests.pl -a -p -v '!flaky' + %install rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.{la,so} @@ -174,6 +187,12 @@ rm -rf ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la %{_mandir}/man3/* %changelog +* Mon Feb 07 2022 herengui - 7.71.1-13 +- Type:enhance +- ID:NA +- SUG:NA +- DESC:add check section + * Thu Jan 20 2021 gaoxingwang - 7.71.1-12 - Type:CVE - CVE:CVE-2021-22922 CVE-2021-22923 -- Gitee