- Update to latest svn revision 132050
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=25
This commit is contained in:
parent
3df78398af
commit
5cbde32f5d
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:99ac7c30df6c409a4de56e12b9093919ea53e4d3bd8dacf3c7826f2232f4b974
|
||||
size 5175042
|
3
llvm-2.9.99.git20110525.tar.xz
Normal file
3
llvm-2.9.99.git20110525.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d9132d8dffe504eeebc6115d368566e3daccb16c74785a2d32c089b319157449
|
||||
size 11798768
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cc63c8a278cd04292e67760162d14cc43cceee173aeae3b12a279c29ae302c90
|
||||
size 7565087
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 26 11:01:57 UTC 2011 - idonmez@novell.com
|
||||
|
||||
- Update to latest svn revision 132050
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 29 12:07:59 UTC 2011 - idoenmez@novell.com
|
||||
|
||||
|
62
llvm.spec
62
llvm.spec
@ -26,18 +26,23 @@
|
||||
%bcond_without ocaml
|
||||
%endif
|
||||
|
||||
%define _prefix /usr
|
||||
%define _sharedir %{_prefix}/share
|
||||
%define _sharedir %{_prefix}/share
|
||||
%define _revision 132050
|
||||
|
||||
%if 0%{?suse_version} >= 1200
|
||||
%define _gcc_ver 4.6
|
||||
%else
|
||||
%define _gcc_ver 4.5
|
||||
%endif
|
||||
|
||||
Name: llvm
|
||||
Summary: Low Level Virtual Machine
|
||||
Version: 2.9
|
||||
Version: 2.9.99.git20110525
|
||||
Release: 0
|
||||
License: NCSA
|
||||
Group: Development/Languages/Other
|
||||
Url: http://www.llvm.org
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: clang-%{version}.tar.bz2
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source100: %{name}-rpmlintrc
|
||||
Patch0: llvm-2.4-fix-ocaml.patch
|
||||
# http://llvm.org/bugs/show_bug.cgi?id=8214
|
||||
@ -48,6 +53,7 @@ BuildRequires: autoconf automake bison cmake flex gcc gcc-c++
|
||||
BuildRequires: chrpath groff libtool python-devel
|
||||
BuildRequires: dejagnu tcl-devel tk-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: xz
|
||||
%if %{with doxygen}
|
||||
BuildRequires: cairo doxygen freefont gd graphviz graphviz-gd zip
|
||||
%endif
|
||||
@ -155,8 +161,8 @@ AutoReqProv: on
|
||||
This package contains vim plugins for LLVM like syntax highlighting.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version} -b 1
|
||||
mv ../clang-%{version}/ tools/clang
|
||||
%setup -q
|
||||
sed -i s,'$(SVN_REVISION)',%{_revision}, tools/clang/lib/Basic/Makefile
|
||||
%patch0 -p1
|
||||
pushd docs
|
||||
%patch1 -p0
|
||||
@ -166,33 +172,46 @@ popd
|
||||
# Enable rtti
|
||||
# http://llvm.org/docs/Packaging.html
|
||||
export REQUIRES_RTTI=1
|
||||
TOPLEVEL=$PWD
|
||||
mkdir stage1 stage2
|
||||
|
||||
%configure --prefix=%{_prefix} \
|
||||
--libdir=%{_libdir}/%{name} \
|
||||
--datadir=%{_datadir}/%{name} \
|
||||
--enable-assertions \
|
||||
--enable-jit \
|
||||
--enable-optimized \
|
||||
--enable-pic \
|
||||
--enable-timestamps=no \
|
||||
--with-c-include-dirs=/usr/include:\
|
||||
%{_libdir}/gcc/%{_target_cpu}-suse-linux/4.5/include:\
|
||||
%{_libdir}/gcc/%{_target_cpu}-suse-linux/4.5/include-fixed
|
||||
cd stage1
|
||||
../configure --enable-assertions \
|
||||
--enable-optimized
|
||||
|
||||
make %{_smp_mflags} clang-only
|
||||
|
||||
|
||||
cd ../stage2
|
||||
export CC=$TOPLEVEL/stage1/Release+Asserts/bin/clang
|
||||
export CXX=$TOPLEVEL/stage1/Release+Asserts/bin/clang++
|
||||
|
||||
../configure --prefix=%{_prefix} \
|
||||
--libdir=%{_libdir}/%{name} \
|
||||
--datadir=%{_datadir}/%{name} \
|
||||
--enable-assertions \
|
||||
--enable-jit \
|
||||
--enable-optimized \
|
||||
--enable-pic \
|
||||
--enable-timestamps=no \
|
||||
--with-c-include-dirs=/usr/include:\
|
||||
%{_libdir}/gcc/%{_target_cpu}-suse-linux/%{_gcc_ver}/include:\
|
||||
%{_libdir}/gcc/%{_target_cpu}-suse-linux/%{_gcc_ver}/include-fixed
|
||||
|
||||
%if %{with doxygen}
|
||||
--enable-doxygen \
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} KEEP_SYMBOLS=1
|
||||
cd tools/clang
|
||||
make %{?_smp_mflags} KEEP_SYMBOLS=1
|
||||
|
||||
%check
|
||||
cd stage2
|
||||
make check
|
||||
cd tools/clang
|
||||
make test
|
||||
|
||||
%install
|
||||
cd stage2
|
||||
%makeinstall DESTDIR=%{buildroot} \
|
||||
PROJ_etcdir=%{_sysconfdir}/%{name} \
|
||||
PROJ_libdir=%{_libdir}/%{name} \
|
||||
@ -200,6 +219,8 @@ make test
|
||||
OVERRIDE_libdir=%{_libdir}/%{name} \
|
||||
KEEP_SYMBOLS=1
|
||||
|
||||
cd ..
|
||||
|
||||
# cleanup
|
||||
file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
|
||||
file %{buildroot}/%{_libdir}/%{name}/*.so | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
|
||||
@ -354,6 +375,7 @@ mv utils/vim/README utils/vim/README.vim
|
||||
%{_prefix}/lib/clang/*/include/wmmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/x86intrin.h
|
||||
%{_prefix}/lib/clang/*/include/xmmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/mm3dnow.h
|
||||
|
||||
%files clang-devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user