Revert "Skip CLang static analysis in RHEL"

This reverts changes from fc568a9a0f.
(I discovered these were not actually needed.)
This commit is contained in:
Ondrej Mosnacek 2018-05-10 10:46:52 +02:00
parent fc568a9a0f
commit e25f34d86d

View File

@ -13,12 +13,6 @@
%bcond_with replace_hmaccalc %bcond_with replace_hmaccalc
%endif %endif
%if 0%{?fedora}
%global use_clang 1
%else
%global use_clang 0
%endif
# This package needs at least Linux Kernel v4.10.0. # This package needs at least Linux Kernel v4.10.0.
%global min_kernel_ver 4.10.0 %global min_kernel_ver 4.10.0
@ -109,9 +103,7 @@ Patch0: %{giturl}/pull/52.patch#/%{name}-1.1.0-kcapi-hasher_Fix_buffer_o
Patch1: %{giturl}/pull/53.patch#/%{name}-1.1.0-kcapi-hasher_Fix_FIPS_self-check_always_failing.patch Patch1: %{giturl}/pull/53.patch#/%{name}-1.1.0-kcapi-hasher_Fix_FIPS_self-check_always_failing.patch
Patch2: %{giturl}/pull/54.patch#/%{name}-1.1.0-kcapi-hasher_Fix_FIPS_self-check_of_the_libkcapi_library.patch Patch2: %{giturl}/pull/54.patch#/%{name}-1.1.0-kcapi-hasher_Fix_FIPS_self-check_of_the_libkcapi_library.patch
%if %{use_clang}
BuildRequires: clang BuildRequires: clang
%endif
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: cppcheck BuildRequires: cppcheck
BuildRequires: docbook-utils-pdf BuildRequires: docbook-utils-pdf
@ -351,10 +343,9 @@ done
%check %check
# Some basic sanity checks. # Some basic sanity checks.
%make_build cppcheck for t in cppcheck scan; do
%if %{use_clang} %make_build $t
%make_build scan done
%endif
# On some arches `/proc/sys/net/core/optmem_max` is lower than 20480, # On some arches `/proc/sys/net/core/optmem_max` is lower than 20480,
# which is the lowest limit needed to run the testsuite. If that limit # which is the lowest limit needed to run the testsuite. If that limit
@ -433,6 +424,7 @@ popd
%changelog %changelog
* Wed May 09 2018 Ondrej Mosnáček <omosnace@redhat.com> - 1.1.0-5 * Wed May 09 2018 Ondrej Mosnáček <omosnace@redhat.com> - 1.1.0-5
- Skip CLang static analysis in RHEL - Skip CLang static analysis in RHEL
- Revert "Skip CLang static analysis in RHEL"
* Wed May 02 2018 Ondrej Mosnáček <omosnace@redhat.com> - 1.1.0-4 * Wed May 02 2018 Ondrej Mosnáček <omosnace@redhat.com> - 1.1.0-4
- Fix description lines being too long - Fix description lines being too long