mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 17:34:47 +00:00
parent
ccf33f4a84
commit
713098981a
1 changed files with 11 additions and 7 deletions
18
llvm.spec
18
llvm.spec
|
@ -161,7 +161,8 @@ This package contains header files for the Clang compiler.
|
||||||
Summary: A source code analysis framework
|
Summary: A source code analysis framework
|
||||||
License: NCSA
|
License: NCSA
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
Requires: clang%{?_isa} = %{version}-%{release}
|
BuildArch: noarch
|
||||||
|
Requires: clang = %{version}-%{release}
|
||||||
# not picked up automatically since files are currently not instaled
|
# not picked up automatically since files are currently not instaled
|
||||||
# in standard Python hierarchies yet
|
# in standard Python hierarchies yet
|
||||||
Requires: python
|
Requires: python
|
||||||
|
@ -367,13 +368,14 @@ EOF
|
||||||
%if %{with clang}
|
%if %{with clang}
|
||||||
# Static analyzer not installed by default:
|
# Static analyzer not installed by default:
|
||||||
# http://clang-analyzer.llvm.org/installation#OtherPlatforms
|
# http://clang-analyzer.llvm.org/installation#OtherPlatforms
|
||||||
mkdir -p %{buildroot}%{_libdir}/clang-analyzer
|
mkdir -p %{buildroot}%{_libexecdir}/clang-analyzer
|
||||||
# create launchers
|
(cd tools/clang/tools && cp -pr scan-{build,view} %{buildroot}%{_libexecdir}/clang-analyzer/)
|
||||||
|
# add clang into scan-build search path
|
||||||
|
ln -s ../../../bin/clang %{buildroot}%{_libexecdir}/clang-analyzer/scan-build/clang
|
||||||
|
# launchers in /bin
|
||||||
for f in scan-{build,view}; do
|
for f in scan-{build,view}; do
|
||||||
ln -s %{_libdir}/clang-analyzer/$f/$f %{buildroot}%{_bindir}/$f
|
ln -s %{_libexecdir}/clang-analyzer/$f/$f %{buildroot}%{_bindir}/$f
|
||||||
done
|
done
|
||||||
|
|
||||||
(cd tools/clang/tools && cp -pr scan-{build,view} %{buildroot}%{_libdir}/clang-analyzer/)
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Get rid of erroneously installed example files.
|
# Get rid of erroneously installed example files.
|
||||||
|
@ -552,7 +554,7 @@ exit 0
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/scan-build
|
%{_bindir}/scan-build
|
||||||
%{_bindir}/scan-view
|
%{_bindir}/scan-view
|
||||||
%{_libdir}/clang-analyzer
|
%{_libexecdir}/clang-analyzer
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with lldb}
|
%if %{with lldb}
|
||||||
|
@ -602,6 +604,8 @@ exit 0
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Nov 30 2013 Jan Vcelak <jvcelak@fedoraproject.org> 3.3-3
|
* Sat Nov 30 2013 Jan Vcelak <jvcelak@fedoraproject.org> 3.3-3
|
||||||
- properly obsolete clang-doc subpackage (#1035268)
|
- properly obsolete clang-doc subpackage (#1035268)
|
||||||
|
- clang-analyzer: fix scan-build search for compiler (#982645)
|
||||||
|
- clang-analyzer: switch package architecture to noarch
|
||||||
|
|
||||||
* Thu Nov 21 2013 Jan Vcelak <jvcelak@fedoraproject.org> 3.3-2
|
* Thu Nov 21 2013 Jan Vcelak <jvcelak@fedoraproject.org> 3.3-2
|
||||||
- fix build failure, missing __clear_cache() declaration
|
- fix build failure, missing __clear_cache() declaration
|
||||||
|
|
Loading…
Reference in a new issue