- Update to version 3.7.0

* No changelog upstream

- Update to version 3.7.0
  * See http://llvm.org/releases/3.7.0/docs/ReleaseNotes.html
- Merge aarch64-suse-support.patch into arm_suse_support.diff
- Refresh arm_suse_support.diff, llvm-fix-find-gcc5-install.patch
- Remove llvm-fix-parsearmarch.patch, upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=419
This commit is contained in:
Ismail Dönmez
2015-09-03 09:44:07 +00:00
committed by Git OBS Bridge
parent 46660e6161
commit 5ee9c90c79
32 changed files with 132 additions and 145 deletions

View File

@@ -16,8 +16,8 @@
#
%define _revision 238133
%define _release_version 3.6.1
%define _revision 246586
%define _release_version 3.7.0
%define build_libcxx 0
@@ -26,7 +26,7 @@
%endif
Name: llvm
Version: 3.6.1
Version: 3.7.0
Release: 0
Summary: Low Level Virtual Machine
License: NCSA
@@ -41,7 +41,7 @@ Source4: http://llvm.org/releases/%{version}/libcxxabi-%{version}.src.tar
# cd docs
# make -f Makefile.sphinx man html
# cd ..
# tar cvJf llvm-docs-3.6.1.src.tar.xz llvm-3.6.1.src/docs/_build/{man,html}
# tar cvJf llvm-docs-3.7.0.src.tar.xz llvm-3.7.0.src/docs/_build/{man,html}
Source5: llvm-docs-%{version}.src.tar.xz
Source6: cfe-docs-%{version}.src.tar.xz
Source100: %{name}-rpmlintrc
@@ -57,13 +57,10 @@ Patch4: default-to-i586.patch
# PATCH-FIX-OPENSUSE arm_suse_support.diff --Enable ARM suse toolchain support
Patch6: arm_suse_support.diff
Patch7: cmake-host-triple.patch
# PATCH-FIX-OPENSUSE aarch64-suse-support.patch -- Enable AArch64 suse toolchain support
Patch8: aarch64-suse-support.patch
Patch10: clang-resourcedirs.patch
Patch11: libcxxabi-exceptions.patch
Patch13: llvm-remove-clang-only-flags.patch
Patch15: llvm-fix-find-gcc5-install.patch
Patch16: llvm-fix-parsearmarch.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: binutils-devel >= 2.21.90
BuildRequires: bison
@@ -80,8 +77,8 @@ BuildRequires: ninja
BuildRequires: python-base
BuildRequires: python-xml
Requires: libLLVM = %{version}-%{release}
# llvm does not work on ppc, only ppc64
ExcludeArch: ppc
# llvm does not work on ppc or s390
ExcludeArch: ppc s390
%description
LLVM is a compiler infrastructure designed for compile-time,
@@ -162,12 +159,10 @@ This package contains the Python bindings to clang (C language) frontend for LLV
%patch4
%patch6
%patch7 -p1
%patch8
%patch10
%patch11
%patch13 -p1
%patch15
%patch16 -p1
# Move into right place
mv cfe-%{version}.src tools/clang
@@ -176,10 +171,14 @@ mv compiler-rt-%{version}.src projects/compiler-rt
%if %{build_libcxx}
mv libcxx-%{version}.src projects/libcxx
mv libcxxabi-%{version}.src projects/libcxxabi
rm projects/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_monthname.pass.cpp
rm projects/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_monthname_wide.pass.cpp
%endif
# We hardcode i586
rm tools/clang/test/Driver/x86_features.c
rm tools/clang/test/Driver/nacl-direct.c
sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp
sed -i s,LLVM_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp
@@ -264,7 +263,7 @@ cmake -G "Ninja" \
-DLLVM_ENABLE_PIC=ON \
-DLLVM_BINUTILS_INCDIR=/usr/include \
%ifarch %{ix86} x86_64
-DLLVM_TARGETS_TO_BUILD="host;R600" \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
%else
-DLLVM_TARGETS_TO_BUILD=host \
%endif
@@ -311,7 +310,7 @@ cmake -G "Ninja" \
-DLLVM_ENABLE_PIC=ON \
-DLLVM_BINUTILS_INCDIR=/usr/include \
%ifarch %{ix86} x86_64
-DLLVM_TARGETS_TO_BUILD="host;R600" \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
%else
-DLLVM_TARGETS_TO_BUILD=host \
%endif
@@ -324,8 +323,7 @@ ninja check
ninja clang-test
%if %{build_libcxx}
# Uncomment when llvm 3.6 hits
#ninja check-libcxx
ninja check-libcxx
ninja check-libcxxabi
%endif
@@ -410,8 +408,10 @@ sed -i 's,$RealBin/scanview.css,%{_datadir}/clang/scanview.css,' \
sed -i 's,RealBin/bin,RealBin,' \
%{buildroot}%{_bindir}/scan-build
install -m 755 -d %{buildroot}%{_datadir}/vim/site/syntax/
install -m 644 utils/vim/*.vim %{buildroot}%{_datadir}/vim/site/syntax/
install -m 755 -d %{buildroot}%{_datadir}/vim/site/
for i in ftdetect ftplugin indent syntax; do
cp -r utils/vim/$i %{buildroot}%{_datadir}/vim/site/
done
mv utils/vim/README utils/vim/README.vim
# Stuff we don't want to include
@@ -463,7 +463,7 @@ EOF
%files -n libLLVM
%defattr(-,root,root,-)
%{_libdir}/libLLVM*
%{_libdir}/libLLVM*.so.*
%files clang
%defattr(-,root,root)
@@ -496,13 +496,11 @@ EOF
%files -n libclang
%defattr(-,root,root,-)
%exclude %{_libdir}/libclang.so
%{_libdir}/libclang*.so
%{_libdir}/libclang.so.*
%{_libdir}/libclang*.so.*
%files clang-devel
%defattr(-,root,root)
%{_libdir}/libclang.so
%{_libdir}/libclang*.so
%{_includedir}/clang
%{_includedir}/clang-c
%doc %{_docdir}/llvm-clang
@@ -510,6 +508,7 @@ EOF
%files devel
%defattr(-,root,root,-)
%{_bindir}/%{name}-config
%{_libdir}/libLLVM*.so
%{_libdir}/BugpointPasses.*
%{_libdir}/LLVMHello.*
%doc %{_mandir}/man1/%{name}-config.1%{ext_man}