- Package Clang's static analyzer tools
This commit is contained in:
parent
d3f05fb311
commit
a02ba103e4
14
llvm.spec
14
llvm.spec
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: llvm
|
Name: llvm
|
||||||
Version: 2.6
|
Version: 2.6
|
||||||
Release: 0.2.pre1%{?dist}
|
Release: 0.3.pre1%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -140,6 +140,7 @@ popd
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# Disabling assertions now, rec. by pure and needed for OpenGTL
|
# Disabling assertions now, rec. by pure and needed for OpenGTL
|
||||||
|
# no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3239
|
||||||
mkdir obj && cd obj
|
mkdir obj && cd obj
|
||||||
../configure \
|
../configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
@ -159,6 +160,8 @@ make %{_smp_mflags} OPTIMIZE_OPTION='%{optflags}'
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# some tests fail on PPC
|
||||||
|
# http://www.nabble.com/LLVM-2.6-pre1%3A-test-failures-on-Fedora-11.91-%28Rawhide%29-ppc-td25334198.html
|
||||||
%ifnarch ppc
|
%ifnarch ppc
|
||||||
cd obj && make check
|
cd obj && make check
|
||||||
%endif
|
%endif
|
||||||
@ -176,6 +179,10 @@ sed -i 's|(PROJ_prefix)/lib/clang|(PROJ_prefix)/%{_lib}/clang|g' \
|
|||||||
make install DESTDIR=%{buildroot} \
|
make install DESTDIR=%{buildroot} \
|
||||||
PROJ_docsdir=/moredocs
|
PROJ_docsdir=/moredocs
|
||||||
|
|
||||||
|
# Static analyzer not installed by default:
|
||||||
|
# http://clang-analyzer.llvm.org/installation#OtherPlatforms
|
||||||
|
cp -p tools/clang/{util/scan-build,tools/scan-view} %{buildroot}%{_bindir}/
|
||||||
|
|
||||||
# Move documentation back to build directory
|
# Move documentation back to build directory
|
||||||
#
|
#
|
||||||
mv %{buildroot}/moredocs ../
|
mv %{buildroot}/moredocs ../
|
||||||
@ -246,6 +253,8 @@ rm -rf %{buildroot}
|
|||||||
%{_bindir}/clang*
|
%{_bindir}/clang*
|
||||||
%{_bindir}/FileCheck
|
%{_bindir}/FileCheck
|
||||||
%{_bindir}/FileUpdate
|
%{_bindir}/FileUpdate
|
||||||
|
%{_bindir}/scan-build
|
||||||
|
%{_bindir}/scan-view
|
||||||
%{_bindir}/tblgen
|
%{_bindir}/tblgen
|
||||||
%{_libdir}/clang
|
%{_libdir}/clang
|
||||||
%{_libexecdir}/clang-cc
|
%{_libexecdir}/clang-cc
|
||||||
@ -278,6 +287,9 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 7 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.3.pre1
|
||||||
|
- Package Clang's static analyzer tools
|
||||||
|
|
||||||
* Mon Sep 7 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.2.pre1
|
* Mon Sep 7 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.2.pre1
|
||||||
- PIC is now enabled by default; explicitly disable on %%{ix86}
|
- PIC is now enabled by default; explicitly disable on %%{ix86}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user