fix: scan-build manual page is installed into wrong location

Resolves: #1038829
This commit is contained in:
Jan Vcelak 2013-12-19 20:55:05 +01:00
parent f6033f2696
commit 9dd4cd3a17

View file

@ -363,10 +363,24 @@ 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}%{_libexecdir}/clang-analyzer
(cd tools/clang/tools && cp -pr scan-{build,view} %{buildroot}%{_libexecdir}/clang-analyzer/) # scan-view
# add clang into scan-build search path mkdir -p %{buildroot}%{_libexecdir}/clang-analyzer/
cp -pr tools/clang/tools/scan-view %{buildroot}%{_libexecdir}/clang-analyzer/
# scan-build
mkdir -p %{buildroot}%{_libexecdir}/clang-analyzer/scan-build
for file in c++-analyzer ccc-analyzer scan-build scanview.css sorttable.js; do
cp -p tools/clang/tools/scan-build/$file %{buildroot}%{_libexecdir}/clang-analyzer/scan-build/
done
# scan-build manual page
mkdir -p %{buildroot}%{_mandir}/man1
cp -p tools/clang/tools/scan-build/scan-build.1 %{buildroot}%{_mandir}/man1/
# scan-build requires clang in search path
ln -s ../../../bin/clang %{buildroot}%{_libexecdir}/clang-analyzer/scan-build/clang ln -s ../../../bin/clang %{buildroot}%{_libexecdir}/clang-analyzer/scan-build/clang
# launchers in /bin # launchers in /bin
for f in scan-{build,view}; do for f in scan-{build,view}; do
ln -s %{_libexecdir}/clang-analyzer/$f/$f %{buildroot}%{_bindir}/$f ln -s %{_libexecdir}/clang-analyzer/$f/$f %{buildroot}%{_bindir}/$f
@ -508,6 +522,7 @@ exit 0
%{_bindir}/opt %{_bindir}/opt
%if %{with clang} %if %{with clang}
%exclude %{_mandir}/man1/clang.1.* %exclude %{_mandir}/man1/clang.1.*
%exclude %{_mandir}/man1/scan-build.1.*
%endif %endif
%if %{with lldb} %if %{with lldb}
%exclude %{_mandir}/man1/lldb.1.* %exclude %{_mandir}/man1/lldb.1.*
@ -555,6 +570,7 @@ exit 0
%files -n clang-analyzer %files -n clang-analyzer
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_mandir}/man1/scan-build.1.*
%{_bindir}/scan-build %{_bindir}/scan-build
%{_bindir}/scan-view %{_bindir}/scan-view
%{_libexecdir}/clang-analyzer %{_libexecdir}/clang-analyzer
@ -608,6 +624,7 @@ exit 0
* Fri Dec 20 2013 Jan Vcelak <jvcelak@fedoraproject.org> 3.3-4 * Fri Dec 20 2013 Jan Vcelak <jvcelak@fedoraproject.org> 3.3-4
- remove RPATHs - remove RPATHs
- run ldconfig when installing lldb (#1044431) - run ldconfig when installing lldb (#1044431)
- fix: scan-build manual page is installed into wrong location (#1038829)
* 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)