!100 enable check in spec
From: @robertxw Reviewed-by: @wangxp006 Signed-off-by: @wangxp006
This commit is contained in:
commit
618ccbcbe4
39
curl.spec
39
curl.spec
@ -6,7 +6,7 @@
|
||||
|
||||
Name: curl
|
||||
Version: 7.79.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Curl is used in command lines or scripts to transfer data
|
||||
License: MIT
|
||||
URL: https://curl.haxx.se/
|
||||
@ -22,8 +22,11 @@ BuildRequires: perl(Getopt::Long) perl(Pod::Usage) perl(strict) perl(warnings)
|
||||
BuildRequires: perl(Cwd) perl(Digest::MD5) perl(Exporter) perl(File::Basename)
|
||||
BuildRequires: perl(File::Copy) perl(File::Spec) perl(IPC::Open2) perl(MIME::Base64)
|
||||
BuildRequires: perl(Time::Local) perl(Time::HiRes) perl(vars)
|
||||
|
||||
%ifarch x86_64
|
||||
BuildRequires: valgrind
|
||||
# glibc-debuginfo is needed by valgrind in upstream test-suite
|
||||
BuildRequires: glibc-debuginfo
|
||||
%endif
|
||||
|
||||
Requires: libcurl = %{version}-%{release}
|
||||
@ -60,7 +63,7 @@ Header files for libcurl.
|
||||
# make tests/*.py use Python 3
|
||||
sed -e '1 s|^#!/.*python|#!%{__python3}|' -i tests/*.py
|
||||
|
||||
printf "1112\n1455\n1184\n1801\n1900\n" >> tests/data/DISABLED
|
||||
printf "1112\n1455\n1184\n1801\n1592\n" >> tests/data/DISABLED
|
||||
|
||||
# adapt test 323 for updated OpenSSL
|
||||
sed -e 's/^35$/35,52/' -i tests/data/test323
|
||||
@ -105,6 +108,32 @@ sed -e 's/^runpath_var=.*/runpath_var=/' \
|
||||
|
||||
%make_build V=1 -C build-full
|
||||
|
||||
%check
|
||||
# compile upstream test-cases
|
||||
%make_build V=1 -C build-full/tests
|
||||
|
||||
# relax crypto policy for the test-suite to make it pass again (#1610888)
|
||||
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX
|
||||
export OPENSSL_CONF=
|
||||
|
||||
# make runtests.pl work for out-of-tree builds
|
||||
export srcdir=../../tests
|
||||
|
||||
# prevent valgrind from being extremely slow (#1662656)
|
||||
unset DEBUGINFOD_URLS
|
||||
|
||||
# run the upstream test-suite for curl-full
|
||||
for size in full; do (
|
||||
cd build-${size}
|
||||
|
||||
# we have to override LD_LIBRARY_PATH because we eliminated rpath
|
||||
export LD_LIBRARY_PATH="${PWD}/lib/.libs"
|
||||
|
||||
cd tests
|
||||
perl -I../../tests ../../tests/runtests.pl -a -p -v '!flaky'
|
||||
)
|
||||
done
|
||||
|
||||
%install
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.{la,so}
|
||||
|
||||
@ -160,6 +189,12 @@ rm -rf ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Apr 25 2022 gaoxingwang <gaoxingwang1@huawei.com> - 7.79.1-2
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC:enable check in spec
|
||||
|
||||
* Thu Jan 20 2022 gaoxingwang <gaoxingwang@huawei.com> - 7.79.1-1
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user