Fix duplicate Python2 + Python3 dependency for clang analyzer

This should fix https://bugzilla.redhat.com/show_bug.cgi?id=1634831
This commit is contained in:
sergesanspaille 2018-11-19 08:51:12 +00:00
parent 816ea521a1
commit b730992174

View File

@ -58,7 +58,7 @@
Name: %pkg_name Name: %pkg_name
Version: %{maj_ver}.%{min_ver}.%{patch_ver} Version: %{maj_ver}.%{min_ver}.%{patch_ver}
Release: 3%{?dist} Release: 4%{?dist}
Summary: A C language family front-end for LLVM Summary: A C language family front-end for LLVM
License: NCSA License: NCSA
@ -166,9 +166,6 @@ Summary: A source code analysis framework
License: NCSA and MIT License: NCSA and MIT
BuildArch: noarch BuildArch: noarch
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
# not picked up automatically since files are currently not installed in
# standard Python hierarchies yet
Requires: python2
%description analyzer %description analyzer
The Clang Static Analyzer consists of both a source code analysis The Clang Static Analyzer consists of both a source code analysis
@ -283,6 +280,7 @@ cd _build
%cmake .. \ %cmake .. \
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DPYTHON_EXECUTABLE=%{__python3} \
%if 0%{?compat_build} %if 0%{?compat_build}
-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver}.%{min_ver}-%{__isa_bits} \ -DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver}.%{min_ver}-%{__isa_bits} \
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \ -DCMAKE_INSTALL_PREFIX=%{install_prefix} \
@ -448,6 +446,9 @@ false
%endif %endif
%changelog %changelog
* Mon Nov 19 2018 sergesanspaille <sguelton@redhat.com> - 7.0.0-4
- Avoid Python2 + Python3 dependency for clang-analyzer
* Mon Nov 05 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-3 * Mon Nov 05 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-3
- User helper macro to fixup config.h for multilib - User helper macro to fixup config.h for multilib