Hello community,

here is the log from the commit of package llvm for openSUSE:Factory
checked in at Fri Jun 10 11:29:08 CEST 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/llvm/llvm.changes      2011-06-09 
10:54:51.000000000 +0200
@@ -0,0 +1,95 @@
+-------------------------------------------------------------------
+Sun Jun  5 14:39:53 UTC 2011 - idon...@novell.com
+
+- Update to r132667 
+
+-------------------------------------------------------------------
+Sun May 29 16:34:46 UTC 2011 - idon...@novell.com
+
+- Update to use cmake buildsystem
+- Remove unmaintained ocaml support 
+
+-------------------------------------------------------------------
+Thu May 26 11:01:57 UTC 2011 - idon...@novell.com
+
+- Drop ocaml support because its unmaintained
+- Update to latest svn revision 132050 
+  + Start of the upcoming 3.0 version
+  + Support for gcc 4.6 c++ headers
+  + Better support for C++0x
+
+-------------------------------------------------------------------
+Fri Apr 29 12:07:59 UTC 2011 - idoen...@novell.com
+
+- Fix ocaml dependency 
+
+-------------------------------------------------------------------
+Thu Apr  7 08:22:48 UTC 2011 - idoen...@novell.com
+
+- Update to 2.9
+  + Type Based Alias Analysis (TBAA) is now implemented in clang
+  + LLVM now generates better debug information
+  + Inline assembly now supports multiple alternative constraints
+
+-------------------------------------------------------------------
+Wed Apr  6 18:50:59 CEST 2011 - ste...@coresystems.de
+
+- drop revision from Requires: fields
+- update to 2.8.99 revision 129008.
+
+-------------------------------------------------------------------
+Mon Mar  7 20:09:51 CET 2011 - jsl...@suse.de
+
+- spec file cleanup
+
+-------------------------------------------------------------------
+Wed Dec 22 11:41:15 UTC 2010 - dmacvi...@suse.de
+
+- Do not require specific ffi version but gather the
+  appropiate one from the distro 
+
+-------------------------------------------------------------------
+Fri Dec 10 04:57:21 UTC 2010 - reddw...@opensuse.org
+
+- Fix compatibility with C++0x compilers (g++ 4.5)
+
+-------------------------------------------------------------------
+Mon Nov 29 10:31:49 UTC 2010 - ism...@namtrac.org
+
+- Fix C include paths 
+
+-------------------------------------------------------------------
+Fri Nov 26 12:48:54 UTC 2010 - ism...@namtrac.org
+
+- Fix header path for openSUSE 11.4
+- Enabled PIC for x86 for loadable module support
+- Enable package tests for llvm and clang
+- Disable package timestamps to silence an rpmlint warning 
+
+-------------------------------------------------------------------
+Wed Jun  2 00:00:00 UTC 2010 - anschnei...@exsuse.de
+
+- Fixed the build on x86 plattforms.
+- Package the clang c++-analyzer.
+
+-------------------------------------------------------------------
+Sat May  1 00:00:00 UTC 2010 - jsl...@suse.de
+
+- update to llvm 2.7
+
+-------------------------------------------------------------------
+Mon Mar 15 00:00:00 UTC 2010 - jsl...@suse.de
+
+- added vim plugins
+
+-------------------------------------------------------------------
+Sun Mar 14 00:00:00 UTC 2010 - jsl...@suse.de
+
+- added libffi-devel to llvm-devel requires so that build does not fail
+- fixed build of explicit constructors with gcc45
+
+-------------------------------------------------------------------
+Mon Nov  2 00:00:00 UTC 2009 - jsl...@suse.de
+
+- Initial 2.6 release
+

calling whatdependson for head-i586


New:
----
  clang-cmake-lib.patch
  llvm-2.9.99.git20110605.tar.xz
  llvm-rpmlintrc
  llvm.changes
  llvm.spec
  set-revision.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ llvm.spec ++++++
#
# spec file for package llvm
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define _sharedir        %{_prefix}/share
%define _revision        132667
%define _release_version 3.0

%if 0%{?suse_version} >= 1200
%define     _gcc_ver 4.6
%else
%define     _gcc_ver 4.5
%endif

Name:           llvm
Version:        2.9.99.git20110605
Release:        1
License:        NCSA
Summary:        Low Level Virtual Machine
Url:            http://www.llvm.org
Group:          Development/Languages/Other
Source0:        %{name}-%{version}.tar.xz
Source100:      %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE set-revision.patch idoen...@suse.de -- Allow us to set 
revision
Patch1:         set-revision.patch
# PATCH-FIX-OPENSUSE set-revision.patch idoen...@suse.de -- Use correct lib 
prefix
Patch2:         clang-cmake-lib.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  chrpath
BuildRequires:  cmake
BuildRequires:  dejagnu
BuildRequires:  fdupes
BuildRequires:  flex
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  groff
BuildRequires:  libtool
BuildRequires:  openSUSE-release
BuildRequires:  python-devel
BuildRequires:  tcl-devel
BuildRequires:  tk-devel
BuildRequires:  xz

# Code10 does not have libffi
%if 0%{?suse_version} > 1100
BuildRequires:  libffi-devel
%endif

# LLVM is not supported on PPC64
# http://llvm.org/bugs/show_bug.cgi?id=3729
ExcludeArch:    ppc64

%description
LLVM is a compiler infrastructure designed for compile-time,
link-time, runtime, and idle-time optimization of programs from
arbitrary programming languages.

The compiler infrastructure includes mirror sets of programming
tools as well as libraries with equivalent functionality.

%package devel

Summary:        Libraries and Header Files for LLVM
Group:          Development/Languages/Other
Requires:       %{name} = %{version}
Requires:       libffi-devel
Requires:       libstdc++-devel >= 3.4

%description devel
This package contains library and header files needed to develop
new native programs that use the LLVM infrastructure.

%package doc

Summary:        Documentation for LLVM
Group:          Documentation/HTML
Requires:       %{name} = %{version}

%description doc
Documentation for the LLVM compiler infrastructure.

%package clang

Summary:        CLANG frontend for LLVM
Group:          Development/Languages/Other
Requires:       %{name} = %{version}
%{py_requires}

%description clang
This package contains the clang (C language) frontend for LLVM.

%package clang-devel

Summary:        CLANG frontend for LLVM (devel package)
Group:          Development/Languages/Other
Requires:       %{name} = %{version}
%{py_requires}

%description clang-devel
This package contains the clang (C language) frontend for LLVM.
(development files)

%package        vim-plugins

Summary:        Vim plugins for LLVM
Group:          Productivity/Text/Editors
Requires:       vim

%description    vim-plugins
This package contains vim plugins for LLVM like syntax highlighting.

%prep
%setup -q
%patch1
%patch2
sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp

%build
TOPLEVEL=$PWD
mkdir stage1 stage2
cd stage1

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
      -DLLVM_ENABLE_ASSERTIONS=TRUE \
      -DLLVM_TARGETS_TO_BUILD=X86 \
      ..

make %{?_smp_mflags}

cd ../stage2
# Needed to make clang resource dir working inside build tree
ln -s lib lib64

export CC=$TOPLEVEL/stage1/bin/clang
export CXX=$TOPLEVEL/stage1/bin/clang++

cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DCMAKE_BUILD_TYPE=RelWithDebInfo \
      -DLLVM_ENABLE_ASSERTIONS=TRUE \
      -DLLVM_ENABLE_PIC=TRUE \
      -DLLVM_ENABLE_TIMESTAMPS=FALSE \
      -DLLVM_TARGETS_TO_BUILD=X86 \
      -DCLANG_VENDOR="SUSE Linux" \
%ifarch x86_64
      -DLLVM_LIBDIR_SUFFIX=64 \
%endif
      -DCLANG_RESOURCE_DIR="../%{_lib}/clang/%{_release_version}" \
      -DC_INCLUDE_DIRS="/usr/include:\
%{_libdir}/gcc/%{_target_cpu}-suse-linux/%{_gcc_ver}/include:\
%{_libdir}/gcc/%{_target_cpu}-suse-linux/%{_gcc_ver}/include-fixed" \
      ..
make %{?_smp_mflags}

%check
cd stage2
make check
make clang-test

%install
cd stage2
%makeinstall
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

find %{buildroot}%{_includedir}/clang -name '*.tmp' -exec rm {} +

for file in `find examples -type f`; do
        install -d %{buildroot}%{_docdir}/%{name}-doc/`dirname $file`
        install -m 644 $file %{buildroot}%{_docdir}/%{name}-doc/$file
done

find %{buildroot}%{_docdir}/%{name}-doc/ -name '*.tar.gz' -exec rm {} \;

# install scan-build et al
install -d %{buildroot}%{_sharedir}/clang
install -d %{buildroot}%{py_sitedir}

pushd tools/clang/tools
for file in scan-build/ccc-analyzer scan-build/scan-build \
                scan-view/scan-view; do
        install $file %{buildroot}%{_bindir}
done
for file in scan-build/scanview.css scan-build/sorttable.js; do
        install -m 644 $file %{buildroot}%{_sharedir}/clang/
done
for file in scan-view/Reporter.py scan-view/ScanView.py \
                scan-view/startfile.py; do
        install -m 644 $file %{buildroot}%{py_sitedir}
done
install -d %{buildroot}%{py_sitedir}/Resources/
for file in scan-view/Resources/*; do
        install -m 644 $file %{buildroot}%{py_sitedir}/Resources/
done
popd
pushd %{buildroot}%{_bindir}
ln -s ccc-analyzer c++-analyzer
popd

sed -i 's,RealBin/bin/clang,RealBin/clang,' \
  %{buildroot}%{_bindir}/scan-build

sed -i 's,RealBin/bin/ccc-analyzer,RealBin/ccc-analyzer,' \
  %{buildroot}%{_bindir}/scan-build

sed -i 's,RealBin/bin/ccc-analyzer,RealBin/ccc-analyzer,' \
  %{buildroot}%{_bindir}/scan-build

sed -i 's,$RealBin/sorttable.js,%{_sharedir}/clang/sorttable.js,' \
  %{buildroot}%{_bindir}/scan-build

sed -i 's,$RealBin/scanview.css,%{_sharedir}/clang/scanview.css,' \
  %{buildroot}%{_bindir}/scan-build

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/
mv utils/vim/README utils/vim/README.vim

# Create man pages because cmake buildsystem doesn't do for us
install -m 755 -d %{buildroot}%{_mandir}/man1
for i in docs/CommandGuide/*.pod tools/clang/docs/tools/*.pod; do
    page=`echo $i|awk -F"/" '{print $(NF)}'|sed s,.pod,,` &&
    groff -Tps -man $i > %{buildroot}%{_mandir}/man1/$page.1;
done

# Remove gtest library
rm -f %{buildroot}%{_libdir}/*gtest*

# Wrong lib name + static
rm -f %{buildroot}%{_libdir}/liblibclang.a

# Stuff we don't want to include
rm -f %{buildroot}%{_libdir}/BugpointPasses.*
rm -f %{buildroot}%{_libdir}/LLVMHello.*
rm -f %{buildroot}%{_libdir}/libCompilerDriver.*
rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.*

%fdupes -s %{buildroot}%{_docdir}/%{name}
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc *.TXT *.txt
%{_bindir}/bugpoint
%{_bindir}/llc
%{_bindir}/lli
%{_bindir}/macho-dump
%exclude %{_bindir}/%{name}-config
%{_bindir}/%{name}*
%{_bindir}/opt
%{_mandir}/man1/bugpoint.1%{ext_man}
%exclude %{_mandir}/man1/lit.1%{ext_man}
%{_mandir}/man1/llc.1%{ext_man}
%{_mandir}/man1/lli.1%{ext_man}
%exclude %{_mandir}/man1/%{name}-config.1%{ext_man}
%{_mandir}/man1/llvm*.1%{ext_man}
%{_mandir}/man1/opt.1%{ext_man}
%{_mandir}/man1/FileCheck.1%{ext_man}

%files clang
%defattr(-,root,root)
%{_bindir}/clang
%{_bindir}/clang-*
%{_bindir}/clang++
%{_bindir}/tblgen
%{_bindir}/ccc-analyzer
%{_bindir}/c++-analyzer
%{_bindir}/scan-build
%{_bindir}/scan-view
%{py_sitedir}/ScanView.py
%{py_sitedir}/Reporter.py
%{py_sitedir}/startfile.py
%{py_sitedir}/Resources
%{_sharedir}/clang
%{_mandir}/man1/clang.1.gz
%{_mandir}/man1/tblgen.1.gz
%dir %{_libdir}/clang
%dir %{_libdir}/clang/*
%dir %{_libdir}/clang/*/include
%{_libdir}/clang/*/include/altivec.h
%{_libdir}/clang/*/include/arm_neon.h
%{_libdir}/clang/*/include/avxintrin.h
%{_libdir}/clang/*/include/emmintrin.h
%{_libdir}/clang/*/include/float.h
%{_libdir}/clang/*/include/immintrin.h
%{_libdir}/clang/*/include/iso646.h
%{_libdir}/clang/*/include/limits.h
%{_libdir}/clang/*/include/mm_malloc.h
%{_libdir}/clang/*/include/mmintrin.h
%{_libdir}/clang/*/include/nmmintrin.h
%{_libdir}/clang/*/include/pmmintrin.h
%{_libdir}/clang/*/include/smmintrin.h
%{_libdir}/clang/*/include/stdarg.h
%{_libdir}/clang/*/include/stdbool.h
%{_libdir}/clang/*/include/stddef.h
%{_libdir}/clang/*/include/stdint.h
%{_libdir}/clang/*/include/tgmath.h
%{_libdir}/clang/*/include/tmmintrin.h
%{_libdir}/clang/*/include/varargs.h
%{_libdir}/clang/*/include/wmmintrin.h
%{_libdir}/clang/*/include/x86intrin.h
%{_libdir}/clang/*/include/xmmintrin.h
%{_libdir}/clang/*/include/mm3dnow.h

%files clang-devel
%defattr(-,root,root)
%{_includedir}/clang
%{_includedir}/clang-c
%{_libdir}/libclang*
%{_libdir}/libLTO.*
%{_libdir}/*profile_rt*

%files devel
%defattr(-,root,root,-)
%{_bindir}/%{name}-config
%dir %{_datadir}/llvm/
%{_datadir}/llvm/*
%doc %{_mandir}/man1/%{name}-config.1%{ext_man}
%{_includedir}/%{name}/
%{_includedir}/%{name}-c/
%{_libdir}/libLLVM*

%files doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-doc

%files vim-plugins
%defattr(-,root,root,-)
%doc utils/vim/README.vim
%{_datadir}/vim/

%changelog
++++++ clang-cmake-lib.patch ++++++
--- tools/clang/tools/libclang/CMakeLists.txt   (revision 132071)
+++ tools/clang/tools/libclang/CMakeLists.txt   (working copy)
@@ -33,7 +33,7 @@
 
   set_target_properties(libclang
     PROPERTIES
-    OUTPUT_NAME "libclang"
+    OUTPUT_NAME "clang"
     VERSION ${LIBCLANG_LIBRARY_VERSION}
     DEFINE_SYMBOL _CINDEX_LIB_)
 
++++++ llvm-rpmlintrc ++++++
# This line is mandatory to access the configuration functions
from Config import *

# it is a compiler and the package provides llvm-gcc-devel, llvm-gcc-c++-devel
addFilter("devel-file-in-non-devel-package .*/clang/.*/include/.*")

addFilter("zero-length .*/llvm-apidoc/.*")
addFilter("arch-dependent-file-in-usr-share .*/llvm-apidoc/.*")
addFilter("binaryinfo-readelf-failed .*/llvm-apidoc/.*")
++++++ set-revision.patch ++++++
--- tools/clang/lib/Basic/Version.cpp   (revision 131788)
+++ tools/clang/lib/Basic/Version.cpp   (working copy)
@@ -50,11 +50,7 @@
 }
 
 std::string getClangRevision() {
-#ifdef SVN_REVISION
   return SVN_REVISION;
-#else
-  return "";
-#endif
 }
 
 std::string getClangFullRepositoryVersion() {

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to