|
|
b8f7dc4 |
# Build options:
|
|
|
b8f7dc4 |
#
|
|
|
b8f7dc4 |
# --with doxygen
|
|
|
b8f7dc4 |
# The doxygen docs are HUGE, so they are not built by default.
|
|
|
b8f7dc4 |
|
|
|
6668812 |
%ifarch s390 s390x sparc64
|
|
|
434321d |
# No ocaml on these arches
|
|
|
434321d |
%bcond_with ocaml
|
|
|
434321d |
%else
|
|
|
434321d |
%bcond_without ocaml
|
|
|
434321d |
%endif
|
|
|
434321d |
|
|
|
a5a420c |
#global prerel
|
|
|
383ea0f |
%global downloadurl http://llvm.org/%{?prerel:pre-}releases/%{version}
|
|
|
383ea0f |
|
|
|
fc7190b |
Name: llvm
|
|
|
383ea0f |
Version: 2.9
|
|
|
a5a420c |
Release: 1%{?dist}
|
|
|
fc7190b |
Summary: The Low Level Virtual Machine
|
|
|
fc7190b |
|
|
|
fc7190b |
Group: Development/Languages
|
|
|
fc7190b |
License: NCSA
|
|
|
fc7190b |
URL: http://llvm.org/
|
|
|
a5a420c |
Source0: %{downloadurl}/llvm-%{version}%{?prerel}.tgz
|
|
|
a5a420c |
Source1: %{downloadurl}/clang-%{version}%{?prerel}.tgz
|
|
|
a5a420c |
# multilib fixes
|
|
|
a5a420c |
Source2: llvm-Config-config.h
|
|
|
a5a420c |
Source3: llvm-Config-llvm-config.h
|
|
|
a5a420c |
|
|
|
c19d461 |
# Data files should be installed with timestamps preserved
|
|
|
216ddcf |
Patch0: llvm-2.6-timestamp.patch
|
|
|
a5a420c |
# clang link failure if system GCC version is unknown
|
|
|
a5a420c |
# http://llvm.org/bugs/show_bug.cgi?id=8897
|
|
|
a5a420c |
Patch1: clang-2.9-add_gcc_vers.patch
|
|
|
fc7190b |
|
|
|
fc7190b |
BuildRequires: bison
|
|
|
fc7190b |
BuildRequires: chrpath
|
|
|
fc7190b |
BuildRequires: flex
|
|
|
fc7190b |
BuildRequires: gcc-c++ >= 3.4
|
|
|
fc7190b |
BuildRequires: groff
|
|
|
a5a420c |
BuildRequires: libffi-devel
|
|
|
fc7190b |
BuildRequires: libtool-ltdl-devel
|
|
|
434321d |
%if %{with ocaml}
|
|
|
fc7190b |
BuildRequires: ocaml-ocamldoc
|
|
|
434321d |
%endif
|
|
|
565c64d |
# for DejaGNU test suite
|
|
|
48b530b |
BuildRequires: dejagnu tcl-devel python
|
|
|
c73f9c2 |
# for doxygen documentation
|
|
|
b8f7dc4 |
%if 0%{?_with_doxygen}
|
|
|
fc7190b |
BuildRequires: doxygen graphviz
|
|
|
b8f7dc4 |
%endif
|
|
|
a8c599f |
Requires: llvm-libs = %{version}-%{release}
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%description
|
|
Bryan O'Sullivan |
d291b49 |
LLVM is a compiler infrastructure designed for compile-time,
|
|
Bryan O'Sullivan |
d291b49 |
link-time, runtime, and idle-time optimization of programs from
|
|
Bryan O'Sullivan |
d291b49 |
arbitrary programming languages. The compiler infrastructure includes
|
|
Bryan O'Sullivan |
d291b49 |
mirror sets of programming tools as well as libraries with equivalent
|
|
Bryan O'Sullivan |
d291b49 |
functionality.
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%package devel
|
|
|
fc7190b |
Summary: Libraries and header files for LLVM
|
|
|
fc7190b |
Group: Development/Languages
|
|
|
fc7190b |
Requires: %{name} = %{version}-%{release}
|
|
|
fc7190b |
Requires: libstdc++-devel >= 3.4
|
|
|
1384796 |
Provides: llvm-static = %{version}-%{release}
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
a5a420c |
Requires(posttrans): /usr/sbin/alternatives
|
|
|
a5a420c |
Requires(postun): /usr/sbin/alternatives
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%description devel
|
|
Bryan O'Sullivan |
d291b49 |
This package contains library and header files needed to develop new
|
|
Bryan O'Sullivan |
d291b49 |
native programs that use the LLVM infrastructure.
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%package doc
|
|
|
fc7190b |
Summary: Documentation for LLVM
|
|
|
c19d461 |
Group: Documentation
|
|
|
27c0ebc |
BuildArch: noarch
|
|
|
719d6b0 |
Requires: %{name} = %{version}-%{release}
|
|
|
bda980e |
# might seem redundant, but needed to kill off the old arch-ed -doc
|
|
|
bda980e |
# subpackage
|
|
|
bda980e |
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%description doc
|
|
Bryan O'Sullivan |
d291b49 |
Documentation for the LLVM compiler infrastructure.
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
a8c599f |
%package libs
|
|
|
a8c599f |
Summary: LLVM shared libraries
|
|
|
a8c599f |
Group: System Environment/Libraries
|
|
|
a8c599f |
|
|
|
a8c599f |
%description libs
|
|
|
a8c599f |
Shared libraries for the LLVM compiler infrastructure.
|
|
|
a8c599f |
|
|
|
a8c599f |
|
|
|
c19d461 |
%package -n clang
|
|
|
64041e3 |
Summary: A C language family front-end for LLVM
|
|
|
c6833e1 |
License: NCSA
|
|
|
fc7190b |
Group: Development/Languages
|
|
|
a8c599f |
Requires: llvm = %{version}-%{release}
|
|
|
05504a3 |
# clang requires gcc; clang++ gcc-c++
|
|
|
383ea0f |
Requires: gcc-c++
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
c19d461 |
%description -n clang
|
|
|
c6833e1 |
clang: noun
|
|
|
c6833e1 |
1. A loud, resonant, metallic sound.
|
|
|
c6833e1 |
2. The strident call of a crane or goose.
|
|
|
c6833e1 |
3. C-language family front-end toolkit.
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
c6833e1 |
The goal of the Clang project is to create a new C, C++, Objective C
|
|
|
c19d461 |
and Objective C++ front-end for the LLVM compiler. Its tools are built
|
|
|
64041e3 |
as libraries and designed to be loosely-coupled and extensible.
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
216ddcf |
%package -n clang-devel
|
|
|
216ddcf |
Summary: Header files for clang
|
|
|
216ddcf |
Group: Development/Languages
|
|
|
216ddcf |
Requires: clang = %{version}-%{release}
|
|
|
216ddcf |
|
|
|
216ddcf |
%description -n clang-devel
|
|
|
216ddcf |
This package contains header files for the Clang compiler.
|
|
|
216ddcf |
|
|
|
216ddcf |
|
|
|
c19d461 |
%package -n clang-analyzer
|
|
|
8f6b35f |
Summary: A source code analysis framework
|
|
|
8f6b35f |
License: NCSA
|
|
|
8f6b35f |
Group: Development/Languages
|
|
|
c19d461 |
Requires: clang = %{version}-%{release}
|
|
|
8f6b35f |
# not picked up automatically since files are currently not instaled
|
|
|
8f6b35f |
# in standard Python hierarchies yet
|
|
|
8f6b35f |
Requires: python
|
|
|
8f6b35f |
|
|
|
c19d461 |
%description -n clang-analyzer
|
|
|
8f6b35f |
The Clang Static Analyzer consists of both a source code analysis
|
|
|
8f6b35f |
framework and a standalone tool that finds bugs in C and Objective-C
|
|
|
8f6b35f |
programs. The standalone tool is invoked from the command-line, and is
|
|
|
8f6b35f |
intended to run in tandem with a build of a project or code base.
|
|
|
8f6b35f |
|
|
|
8f6b35f |
|
|
|
c19d461 |
%package -n clang-doc
|
|
|
c19d461 |
Summary: Documentation for Clang
|
|
|
c19d461 |
Group: Documentation
|
|
|
27c0ebc |
BuildArch: noarch
|
|
|
c19d461 |
Requires: %{name} = %{version}-%{release}
|
|
|
c19d461 |
|
|
|
c19d461 |
%description -n clang-doc
|
|
|
c19d461 |
Documentation for the Clang compiler front-end.
|
|
|
c19d461 |
|
|
|
c19d461 |
|
|
|
b8f7dc4 |
%if 0%{?_with_doxygen}
|
|
Bryan O'Sullivan |
d291b49 |
%package apidoc
|
|
|
fc7190b |
Summary: API documentation for LLVM
|
|
|
fc7190b |
Group: Development/Languages
|
|
|
c73f9c2 |
BuildArch: noarch
|
|
|
c73f9c2 |
Requires: %{name}-doc = %{version}-%{release}
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%description apidoc
|
|
Bryan O'Sullivan |
d291b49 |
API documentation for the LLVM compiler infrastructure.
|
|
|
c73f9c2 |
|
|
|
c73f9c2 |
|
|
|
c73f9c2 |
%package -n clang-apidoc
|
|
|
c73f9c2 |
Summary: API documentation for Clang
|
|
|
c73f9c2 |
Group: Development/Languages
|
|
|
c73f9c2 |
BuildArch: noarch
|
|
|
c73f9c2 |
Requires: clang-doc = %{version}-%{release}
|
|
|
c73f9c2 |
|
|
|
c73f9c2 |
|
|
|
c7b1517 |
%description -n clang-apidoc
|
|
|
c73f9c2 |
API documentation for the Clang compiler.
|
|
|
b8f7dc4 |
%endif
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
434321d |
%if %{with ocaml}
|
|
|
fc7190b |
%package ocaml
|
|
|
fc7190b |
Summary: OCaml binding for LLVM
|
|
|
fc7190b |
Group: Development/Libraries
|
|
Bryan O'Sullivan |
03bad00 |
Requires: %{name} = %{version}-%{release}
|
|
|
fc7190b |
Requires: ocaml-runtime
|
|
Bryan O'Sullivan |
03bad00 |
|
|
|
fc7190b |
%description ocaml
|
|
Bryan O'Sullivan |
03bad00 |
OCaml binding for LLVM.
|
|
Bryan O'Sullivan |
03bad00 |
|
|
Bryan O'Sullivan |
03bad00 |
|
|
Bryan O'Sullivan |
03bad00 |
%package ocaml-devel
|
|
|
fc7190b |
Summary: Development files for %{name}-ocaml
|
|
|
fc7190b |
Group: Development/Libraries
|
|
Bryan O'Sullivan |
03bad00 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
fc7190b |
Requires: %{name}-ocaml = %{version}-%{release}
|
|
|
160b755 |
Requires: ocaml
|
|
Bryan O'Sullivan |
03bad00 |
|
|
|
fc7190b |
%description ocaml-devel
|
|
Bryan O'Sullivan |
03bad00 |
The %{name}-ocaml-devel package contains libraries and signature files
|
|
Bryan O'Sullivan |
03bad00 |
for developing applications that use %{name}-ocaml.
|
|
Bryan O'Sullivan |
03bad00 |
|
|
Bryan O'Sullivan |
03bad00 |
|
|
|
c6833e1 |
%package ocaml-doc
|
|
|
c6833e1 |
Summary: Documentation for LLVM's OCaml binding
|
|
|
c6833e1 |
Group: Documentation
|
|
|
c73f9c2 |
BuildArch: noarch
|
|
|
c6833e1 |
Requires: %{name}-ocaml = %{version}-%{release}
|
|
|
c6833e1 |
|
|
|
c6833e1 |
%description ocaml-doc
|
|
|
c6833e1 |
HTML documentation for LLVM's OCaml binding.
|
|
|
434321d |
%endif
|
|
|
c6833e1 |
|
|
|
c6833e1 |
|
|
Bryan O'Sullivan |
d291b49 |
%prep
|
|
|
383ea0f |
%setup -q -n llvm-%{version}%{?prerel} -a1 %{?_with_gcc:-a2}
|
|
|
383ea0f |
mv clang-%{version}%{?prerel} tools/clang
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
a5a420c |
# llvm patches
|
|
|
216ddcf |
%patch0 -p1 -b .timestamp
|
|
|
a5a420c |
|
|
|
a5a420c |
# clang patches
|
|
|
3fc5264 |
pushd tools/clang
|
|
|
a5a420c |
%patch1 -p1 -b .add_gcc_ver
|
|
|
3fc5264 |
popd
|
|
|
216ddcf |
|
|
|
216ddcf |
# Encoding fix
|
|
|
09e7c11 |
#(cd tools/clang/docs && \
|
|
|
09e7c11 |
# iconv -f ISO88591 -t UTF8 BlockImplementation.txt \
|
|
|
09e7c11 |
# -o BlockImplementation.txt)
|
|
|
09ee2ab |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%build
|
|
|
565c64d |
# Disabling assertions now, rec. by pure and needed for OpenGTL
|
|
|
64041e3 |
# TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
|
|
|
c73f9c2 |
%configure \
|
|
|
565c64d |
--prefix=%{_prefix} \
|
|
|
c6833e1 |
--libdir=%{_libdir}/%{name} \
|
|
|
c73f9c2 |
--datadir=%{_libdir}/%{name} \
|
|
|
b8f7dc4 |
%if 0%{?_with_doxygen}
|
|
|
c73f9c2 |
--enable-doxygen \
|
|
|
b8f7dc4 |
%endif
|
|
|
565c64d |
--disable-assertions \
|
|
Bryan O'Sullivan |
d291b49 |
--enable-debug-runtime \
|
|
Bryan O'Sullivan |
d291b49 |
--enable-jit \
|
|
|
a5a420c |
--enable-libffi \
|
|
|
b302e35 |
--enable-shared \
|
|
|
e60dbac |
--with-c-include-dirs=%{_includedir}:$(find %{_prefix}/lib/gcc/*/* \
|
|
|
e60dbac |
-maxdepth 0 -type d)/include \
|
|
|
e60dbac |
--with-cxx-include-root=$(find %{_includedir}/c++/* -maxdepth 0 -type d) \
|
|
|
68d1c11 |
--with-cxx-include-arch=%{_arch}-%{_vendor}-%{_os} \
|
|
|
0b4dbd5 |
--with-cxx-include-32bit-dir=32
|
|
|
565c64d |
|
|
|
c6833e1 |
# FIXME file this
|
|
|
565c64d |
# configure does not properly specify libdir
|
|
|
c6833e1 |
sed -i 's|(PROJ_prefix)/lib|(PROJ_prefix)/%{_lib}/%{name}|g' Makefile.config
|
|
Bryan O'Sullivan |
03bad00 |
|
|
|
a5a420c |
make %{_smp_mflags} REQUIRES_RTTI=1 \
|
|
|
71feaf9 |
%ifarch ppc
|
|
|
71feaf9 |
OPTIMIZE_OPTION="%{optflags} -fno-var-tracking-assignments"
|
|
|
71feaf9 |
%else
|
|
|
71feaf9 |
OPTIMIZE_OPTION="%{optflags}"
|
|
|
71feaf9 |
%endif
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%install
|
|
Bryan O'Sullivan |
d291b49 |
rm -rf %{buildroot}
|
|
Bryan O'Sullivan |
03bad00 |
make install DESTDIR=%{buildroot} \
|
|
|
c6833e1 |
PROJ_docsdir=/moredocs
|
|
|
c6833e1 |
|
|
|
a5a420c |
# multilib fixes
|
|
|
a5a420c |
mv %{buildroot}%{_bindir}/llvm-config{,-%{__isa_bits}}
|
|
|
a5a420c |
|
|
|
a5a420c |
pushd %{buildroot}%{_includedir}/llvm/Config
|
|
|
a5a420c |
mv config.h config-%{__isa_bits}.h
|
|
|
a5a420c |
cp -p %{SOURCE2} config.h
|
|
|
a5a420c |
mv llvm-config.h llvm-config-%{__isa_bits}.h
|
|
|
a5a420c |
cp -p %{SOURCE3} llvm-config.h
|
|
|
a5a420c |
popd
|
|
|
a5a420c |
|
|
|
216ddcf |
# Create ld.so.conf.d entry
|
|
|
216ddcf |
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
|
64041e3 |
cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/llvm-%{_arch}.conf << EOF
|
|
|
216ddcf |
%{_libdir}/llvm
|
|
|
216ddcf |
EOF
|
|
|
216ddcf |
|
|
|
a02ba10 |
# Static analyzer not installed by default:
|
|
|
a02ba10 |
# http://clang-analyzer.llvm.org/installation#OtherPlatforms
|
|
|
216ddcf |
mkdir -p %{buildroot}%{_libdir}/clang-analyzer
|
|
|
8f6b35f |
# create launchers
|
|
|
8f6b35f |
for f in scan-{build,view}; do
|
|
|
216ddcf |
ln -s %{_libdir}/clang-analyzer/$f/$f %{buildroot}%{_bindir}/$f
|
|
|
8f6b35f |
done
|
|
|
8f6b35f |
|
|
|
216ddcf |
(cd tools/clang/tools && cp -pr scan-{build,view} \
|
|
|
216ddcf |
%{buildroot}%{_libdir}/clang-analyzer/)
|
|
|
8f6b35f |
|
|
|
a02ba10 |
|
|
|
c6833e1 |
# Move documentation back to build directory
|
|
|
c6833e1 |
#
|
|
|
c19d461 |
mv %{buildroot}/moredocs .
|
|
|
434321d |
rm -f moredocs/*.tar.gz
|
|
|
434321d |
rm -f moredocs/ocamldoc/html/*.tar.gz
|
|
|
c19d461 |
|
|
|
c73f9c2 |
# and separate the apidoc
|
|
|
b8f7dc4 |
%if 0%{?_with_doxygen}
|
|
|
c73f9c2 |
mv moredocs/html/doxygen apidoc
|
|
|
c73f9c2 |
mv tools/clang/docs/doxygen/html clang-apidoc
|
|
|
b8f7dc4 |
%endif
|
|
|
c73f9c2 |
|
|
|
c19d461 |
# And prepare Clang documentation
|
|
|
c19d461 |
#
|
|
|
c19d461 |
mkdir clang-docs
|
|
|
c19d461 |
for f in LICENSE.TXT NOTES.txt README.txt TODO.txt; do
|
|
|
c19d461 |
ln tools/clang/$f clang-docs/
|
|
|
c19d461 |
done
|
|
|
c19d461 |
rm -rf tools/clang/docs/{doxygen*,Makefile*,*.graffle,tools}
|
|
|
c19d461 |
|
|
|
c6833e1 |
|
|
|
3fc5264 |
#find %%{buildroot} -name .dir -print0 | xargs -0r rm -f
|
|
Bryan O'Sullivan |
d291b49 |
file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
|
|
|
c6833e1 |
file %{buildroot}/%{_libdir}/llvm/*.so | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
|
|
|
3fc5264 |
#chrpath -d %%{buildroot}/%%{_libexecdir}/clang-cc
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
# Get rid of erroneously installed example files.
|
|
|
c6833e1 |
rm %{buildroot}%{_libdir}/%{name}/*LLVMHello.*
|
|
Bryan O'Sullivan |
03bad00 |
|
|
|
c6833e1 |
# FIXME file this bug
|
|
|
c6833e1 |
sed -i 's,ABS_RUN_DIR/lib",ABS_RUN_DIR/%{_lib}/%{name}",' \
|
|
|
a5a420c |
%{buildroot}%{_bindir}/llvm-config-%{__isa_bits}
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
2c55a75 |
chmod -x %{buildroot}%{_libdir}/%{name}/*.a
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
719d6b0 |
# remove documentation makefiles:
|
|
|
719d6b0 |
# they require the build directory to work
|
|
|
c6833e1 |
find examples -name 'Makefile' | xargs -0r rm -f
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
03bad00 |
|
|
|
a5a420c |
%check
|
|
|
a5a420c |
make check
|
|
|
a5a420c |
(cd tools/clang && make test)
|
|
|
a5a420c |
|
|
|
a5a420c |
|
|
|
999f905 |
%post libs -p /sbin/ldconfig
|
|
|
999f905 |
%post -n clang -p /sbin/ldconfig
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
999f905 |
%postun libs -p /sbin/ldconfig
|
|
|
999f905 |
%postun -n clang -p /sbin/ldconfig
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
a5a420c |
%posttrans devel
|
|
|
a5a420c |
# link llvm-config to the platform-specific file;
|
|
|
a5a420c |
# use ISA bits as priority so that 64-bit is preferred
|
|
|
a5a420c |
# over 32-bit if both are installed
|
|
|
a5a420c |
alternatives \
|
|
|
a5a420c |
--install \
|
|
|
a5a420c |
%{_bindir}/llvm-config \
|
|
|
a5a420c |
llvm-config \
|
|
|
a5a420c |
%{_bindir}/llvm-config-%{__isa_bits} \
|
|
|
a5a420c |
%{__isa_bits}
|
|
|
a5a420c |
|
|
|
a5a420c |
%postun devel
|
|
|
a5a420c |
if [ $1 -eq 0 ]; then
|
|
|
a5a420c |
alternatives --remove llvm-config \
|
|
|
a5a420c |
%{_bindir}/llvm-config-%{__isa_bits}
|
|
|
a5a420c |
fi
|
|
|
a5a420c |
exit 0
|
|
|
a5a420c |
|
|
|
a5a420c |
|
|
Bryan O'Sullivan |
d291b49 |
%files
|
|
Bryan O'Sullivan |
d291b49 |
%defattr(-,root,root,-)
|
|
|
8686d9a |
%doc CREDITS.TXT LICENSE.TXT README.txt
|
|
Bryan O'Sullivan |
d291b49 |
%{_bindir}/bugpoint
|
|
Bryan O'Sullivan |
d291b49 |
%{_bindir}/llc
|
|
Bryan O'Sullivan |
d291b49 |
%{_bindir}/lli
|
|
|
a5a420c |
%exclude %{_bindir}/llvm-config-%{__isa_bits}
|
|
Bryan O'Sullivan |
d291b49 |
%{_bindir}/llvm*
|
|
|
a914126 |
%{_bindir}/macho-dump
|
|
Bryan O'Sullivan |
d291b49 |
%{_bindir}/opt
|
|
|
8f6b35f |
%exclude %{_mandir}/man1/clang.1.*
|
|
|
c73f9c2 |
%exclude %{_mandir}/man1/llvmg??.1.*
|
|
|
216ddcf |
%doc %{_mandir}/man1/*.1.*
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%files devel
|
|
Bryan O'Sullivan |
d291b49 |
%defattr(-,root,root,-)
|
|
|
a5a420c |
%{_bindir}/llvm-config-%{__isa_bits}
|
|
Bryan O'Sullivan |
d291b49 |
%{_includedir}/%{name}
|
|
Bryan O'Sullivan |
d291b49 |
%{_includedir}/%{name}-c
|
|
|
216ddcf |
%{_libdir}/%{name}/*.a
|
|
|
c6833e1 |
|
|
|
a8c599f |
%files libs
|
|
|
a8c599f |
%defattr(-,root,root,-)
|
|
|
a8c599f |
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/llvm-%{_arch}.conf
|
|
|
a8c599f |
%dir %{_libdir}/%{name}
|
|
|
a8c599f |
%exclude %{_libdir}/%{name}/libclang.so
|
|
|
a8c599f |
%{_libdir}/%{name}/*.so
|
|
|
a8c599f |
|
|
|
c19d461 |
%files -n clang
|
|
|
c6833e1 |
%defattr(-,root,root,-)
|
|
|
8686d9a |
%doc clang-docs/*
|
|
|
c6833e1 |
%{_bindir}/clang*
|
|
|
383ea0f |
#%{_bindir}/c-index-test
|
|
|
c6833e1 |
%{_bindir}/tblgen
|
|
|
a8c599f |
%{_libdir}/%{name}/libclang.so
|
|
|
c19d461 |
%{_prefix}/lib/clang
|
|
|
8f6b35f |
%doc %{_mandir}/man1/clang.1.*
|
|
|
8f6b35f |
|
|
|
216ddcf |
%files -n clang-devel
|
|
|
216ddcf |
%defattr(-,root,root,-)
|
|
|
216ddcf |
%{_includedir}/clang
|
|
|
216ddcf |
%{_includedir}/clang-c
|
|
|
216ddcf |
|
|
|
c19d461 |
%files -n clang-analyzer
|
|
|
8f6b35f |
%defattr(-,root,root,-)
|
|
|
8f6b35f |
%{_bindir}/scan-build
|
|
|
8f6b35f |
%{_bindir}/scan-view
|
|
|
8f6b35f |
%{_libdir}/clang-analyzer
|
|
|
c6833e1 |
|
|
|
c19d461 |
%files -n clang-doc
|
|
|
c19d461 |
%defattr(-,root,root,-)
|
|
|
c19d461 |
%doc tools/clang/docs/*
|
|
|
c19d461 |
|
|
|
c6833e1 |
%files doc
|
|
|
c6833e1 |
%defattr(-,root,root,-)
|
|
|
c6833e1 |
%doc examples moredocs/html
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
434321d |
%if %{with ocaml}
|
|
Bryan O'Sullivan |
03bad00 |
%files ocaml
|
|
Bryan O'Sullivan |
03bad00 |
%defattr(-,root,root,-)
|
|
Bryan O'Sullivan |
03bad00 |
%{_libdir}/ocaml/*.cma
|
|
Bryan O'Sullivan |
03bad00 |
%{_libdir}/ocaml/*.cmi
|
|
Bryan O'Sullivan |
03bad00 |
|
|
Bryan O'Sullivan |
03bad00 |
%files ocaml-devel
|
|
Bryan O'Sullivan |
03bad00 |
%defattr(-,root,root,-)
|
|
Bryan O'Sullivan |
03bad00 |
%{_libdir}/ocaml/*.a
|
|
Bryan O'Sullivan |
03bad00 |
%{_libdir}/ocaml/*.cmx*
|
|
Bryan O'Sullivan |
03bad00 |
%{_libdir}/ocaml/*.mli
|
|
Bryan O'Sullivan |
03bad00 |
|
|
|
c6833e1 |
%files ocaml-doc
|
|
Bryan O'Sullivan |
d291b49 |
%defattr(-,root,root,-)
|
|
|
c6833e1 |
%doc moredocs/ocamldoc/html/*
|
|
|
434321d |
%endif
|
|
Bryan O'Sullivan |
d291b49 |
|
|
|
b8f7dc4 |
%if 0%{?_with_doxygen}
|
|
Bryan O'Sullivan |
d291b49 |
%files apidoc
|
|
Bryan O'Sullivan |
d291b49 |
%defattr(-,root,root,-)
|
|
|
c73f9c2 |
%doc apidoc/*
|
|
|
c73f9c2 |
|
|
|
c7b1517 |
%files -n clang-apidoc
|
|
|
c73f9c2 |
%defattr(-,root,root,-)
|
|
|
c73f9c2 |
%doc clang-apidoc/*
|
|
|
b8f7dc4 |
%endif
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
%changelog
|
|
|
a5a420c |
* Mon Aug 1 2011 Michel Salim <salimma@fedoraproject.org> - 2.9-1
|
|
|
a5a420c |
- Update to 2.9
|
|
|
a5a420c |
- Depend on libffi to allow the LLVM interpreter to call external functions
|
|
|
a5a420c |
- Build with RTTI enabled, needed by e.g. Rubinius (# 722714)
|
|
|
a5a420c |
- Fix multilib installation
|
|
|
a5a420c |
|
|
|
8b95ec6 |
* Tue May 31 2011 Karsten Hopp <karsten@redhat.com> 2.9-0.4.rc2
|
|
|
8b95ec6 |
- enable ppc64 build
|
|
|
8b95ec6 |
|
|
Michel Alexandre Salim |
a09d313 |
* Fri Mar 25 2011 Michel Salim <salimma@fedoraproject.org> - 2.9-0.3.rc2
|
|
Michel Alexandre Salim |
9bdfe6c |
- Update to 2.9rc2
|
|
Michel Alexandre Salim |
9bdfe6c |
|
|
|
68d1c11 |
* Thu Mar 18 2011 Michel Salim <salimma@fedoraproject.org> - 2.9-0.2.rc1
|
|
|
a8c599f |
- Split shared libraries into separate subpackage
|
|
|
8686d9a |
- Don't include test logs; breaks multilib (# 666195)
|
|
|
68d1c11 |
- clang++: also search for platform-specific include files (# 680644)
|
|
|
68d1c11 |
|
|
|
383ea0f |
* Thu Mar 10 2011 Michel Salim <salimma@fedoraproject.org> - 2.9-0.1.rc1
|
|
|
383ea0f |
- Update to 2.9rc1
|
|
|
383ea0f |
|
|
|
75d0f4e |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-7
|
|
|
75d0f4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
75d0f4e |
|
|
|
4bd5997 |
* Mon Jan 10 2011 Richard W.M. Jones <rjones@redhat.com> - 2.8-6
|
|
|
4bd5997 |
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
|
|
|
4bd5997 |
|
|
|
05504a3 |
* Sat Nov 27 2010 Michel Salim <salimma@fedoraproject.org> - 2.8-5
|
|
|
05504a3 |
- clang now requires gcc-c++ for linking and headers (bug #654560)
|
|
|
05504a3 |
|
|
|
3fc5264 |
* Fri Nov 12 2010 Michel Salim <salimma@fedoraproject.org> - 2.8-4
|
|
|
3fc5264 |
- Backport support for C++0x (# 648990)
|
|
|
3fc5264 |
|
|
|
3107968 |
* Fri Oct 15 2010 Michel Salim <salimma@fedoraproject.org> - 2.8-3
|
|
|
3107968 |
- Re-add omitted %%{_includedir}
|
|
|
3107968 |
|
|
|
7ea8ecf |
* Thu Oct 14 2010 Michel Salim <salimma@fedoraproject.org> - 2.8-2
|
|
|
7ea8ecf |
- Add correct C include directory at compile time (# 641500)
|
|
|
7ea8ecf |
|
|
|
09e7c11 |
* Tue Oct 12 2010 Michel Salim <salimma@fedoraproject.org> - 2.8-1
|
|
|
09e7c11 |
- Update to 2.8 release
|
|
|
09e7c11 |
|
|
Jesse Keating |
ff6b65b |
* Wed Sep 29 2010 jkeating - 2.7-10
|
|
Jesse Keating |
ff6b65b |
- Rebuilt for gcc bug 634757
|
|
Jesse Keating |
ff6b65b |
|
|
|
b302e35 |
* Mon Sep 20 2010 Michel Salim <salimma@fedoraproject.org> - 2.7-9
|
|
|
b302e35 |
- Dynamically determine C++ include path at compile time (# 630474)
|
|
|
b302e35 |
- Remove unneeded BuildRoot field and clean section
|
|
|
b302e35 |
|
|
|
6668812 |
* Wed Sep 15 2010 Dennis Gilmore <dennis@ausil.us> - 2.7-8
|
|
|
6668812 |
- disable ocaml support on sparc64
|
|
|
6668812 |
|
|
|
d3b17da |
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-7
|
|
|
d3b17da |
- recompiling .py files against Python 2.7 (rhbz#623332)
|
|
|
d3b17da |
|
|
|
434321d |
* Sat Jul 17 2010 Dan HorĂ¡k <dan[at]danny.cz> - 2.7-6
|
|
|
434321d |
- conditionalize ocaml support
|
|
|
434321d |
|
|
|
bda980e |
* Mon Jun 7 2010 Michel Salim <salimma@fedoraproject.org> - 2.7-5
|
|
|
bda980e |
- Make the new noarch -doc obsoletes older (arched) subpackages
|
|
|
bda980e |
|
|
|
c0c6405 |
* Sat Jun 5 2010 Michel Salim <salimma@fedoraproject.org> - 2.7-4
|
|
|
c0c6405 |
- Add F-12/x86_64 and F-13 C++ header paths
|
|
|
c0c6405 |
|
|
|
b8f7dc4 |
* Wed May 26 2010 Michel Salim <salimma@fedoraproject.org> - 2.7-3
|
|
|
b8f7dc4 |
- Revert to disabling apidoc by default
|
|
|
b8f7dc4 |
|
|
|
c73f9c2 |
* Mon May 24 2010 Michel Salim <salimma@fedoraproject.org> - 2.7-2
|
|
|
c73f9c2 |
- Exclude llm-gcc manpages
|
|
|
c73f9c2 |
- Turn on apidoc generation
|
|
|
c73f9c2 |
- Build with srcdir=objdir, otherwise clang doxygen build fails
|
|
|
c73f9c2 |
|
|
|
64041e3 |
* Sun May 2 2010 Michel Salim <salimma@fedoraproject.org> - 2.7-1
|
|
|
64041e3 |
- Update to final 2.7 release
|
|
|
64041e3 |
|
|
|
216ddcf |
* Sun Mar 28 2010 Michel Salim <salimma@fedoraproject.org> - 2.7-0.1.pre1
|
|
|
216ddcf |
- Update to first 2.7 pre-release
|
|
|
216ddcf |
|
|
|
1384796 |
* Fri Sep 18 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.6.pre2
|
|
|
1384796 |
- Update to 2.6 pre-release2
|
|
|
1384796 |
- -devel subpackage now virtually provides -static
|
|
|
1384796 |
|
|
|
4ff9eca |
* Wed Sep 9 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.5.pre1
|
|
|
4ff9eca |
- Disable var tracking assignments on PPC
|
|
|
4ff9eca |
|
|
|
09ee2ab |
* Wed Sep 9 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.4.pre1
|
|
|
c19d461 |
- Don't adjust clang include dir; files there are noarch (bz#521893)
|
|
|
09ee2ab |
- Enable clang unit tests
|
|
|
c19d461 |
- clang and clang-analyzer renamed; no longer depend on llvm at runtime
|
|
|
09ee2ab |
|
|
|
a02ba10 |
* Mon Sep 7 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.3.pre1
|
|
|
a02ba10 |
- Package Clang's static analyzer tools
|
|
|
a02ba10 |
|
|
|
d3f05fb |
* Mon Sep 7 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.2.pre1
|
|
|
d3f05fb |
- PIC is now enabled by default; explicitly disable on %%{ix86}
|
|
|
d3f05fb |
|
|
|
c6833e1 |
* Mon Sep 7 2009 Michel Salim <salimma@fedoraproject.org> - 2.6-0.1.pre1
|
|
|
c6833e1 |
- First 2.6 prerelease
|
|
|
c6833e1 |
- Enable Clang front-end
|
|
|
c6833e1 |
- Enable debuginfo generation
|
|
|
c6833e1 |
|
|
|
c6833e1 |
* Sat Sep 5 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-6
|
|
|
09ee2ab |
- Disable assertions (needed by OpenGTL, bz#521261)
|
|
|
565c64d |
- Align spec file with upstream build instructions
|
|
|
565c64d |
- Enable unit tests
|
|
|
565c64d |
|
|
|
6f2b484 |
* Sat Aug 22 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-5
|
|
|
6f2b484 |
- Only disable PIC on %%ix86; ppc actually needs it
|
|
|
6f2b484 |
|
|
|
09280fb |
* Sat Aug 22 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-4
|
|
|
09280fb |
- Disable use of position-independent code on 32-bit platforms
|
|
|
09280fb |
(buggy in LLVM <= 2.5)
|
|
|
09280fb |
|
|
|
b44f18c |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
|
|
|
b44f18c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
b44f18c |
|
|
|
719d6b0 |
* Wed Mar 4 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-2
|
|
|
719d6b0 |
- Remove build scripts; they require the build directory to work
|
|
|
719d6b0 |
|
|
|
fc7190b |
* Wed Mar 4 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-1
|
|
|
fc7190b |
- Update to 2.5
|
|
|
fc7190b |
- Package build scripts (bug #457881)
|
|
|
9644979 |
|
|
Bryan O'Sullivan |
03bad00 |
* Tue Dec 2 2008 Michel Salim <salimma@fedoraproject.org> - 2.4-2
|
|
Bryan O'Sullivan |
03bad00 |
- Patched build process for the OCaml binding
|
|
Bryan O'Sullivan |
03bad00 |
|
|
Bryan O'Sullivan |
03bad00 |
* Tue Dec 2 2008 Michel Salim <salimma@fedoraproject.org> - 2.4-1
|
|
Bryan O'Sullivan |
03bad00 |
- Update to 2.4
|
|
Bryan O'Sullivan |
03bad00 |
- Package Ocaml binding
|
|
Bryan O'Sullivan |
03bad00 |
|
|
Bryan O'Sullivan |
e2fa788 |
* Wed Jun 18 2008 Bryan O'Sullivan <bos@serpentine.com> - 2.3-2
|
|
Bryan O'Sullivan |
e2fa788 |
- Add dependency on groff
|
|
Bryan O'Sullivan |
e2fa788 |
|
|
Bryan O'Sullivan |
df8851e |
* Wed Jun 18 2008 Bryan O'Sullivan <bos@serpentine.com> - 2.3-1
|
|
Bryan O'Sullivan |
df8851e |
- LLVM 2.3
|
|
Bryan O'Sullivan |
df8851e |
|
|
|
2d471be |
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2-4
|
|
|
2d471be |
- fix license tags
|
|
|
2d471be |
|
|
Bryan O'Sullivan |
a2e4a2f |
* Wed Mar 5 2008 Bryan O'Sullivan <bos@serpentine.com> - 2.2-3
|
|
Bryan O'Sullivan |
a2e4a2f |
- Fix compilation problems with gcc 4.3
|
|
Bryan O'Sullivan |
a2e4a2f |
|
|
|
7889508 |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2-2
|
|
|
7889508 |
- Autorebuild for GCC 4.3
|
|
|
7889508 |
|
|
Bryan O'Sullivan |
d291b49 |
* Sun Jan 20 2008 Bryan O'Sullivan <bos@serpentine.com> - 2.1-2
|
|
Bryan O'Sullivan |
d291b49 |
- Fix review comments
|
|
Bryan O'Sullivan |
d291b49 |
|
|
Bryan O'Sullivan |
d291b49 |
* Sun Jan 20 2008 Bryan O'Sullivan <bos@serpentine.com> - 2.1-1
|
|
Bryan O'Sullivan |
d291b49 |
- Initial version
|