|
|
|
@ -82,7 +82,7 @@ cd _build
@@ -82,7 +82,7 @@ cd _build
|
|
|
|
|
|
|
|
|
|
export PATH=$BUILD_DIR/bin:$PATH |
|
|
|
|
%cmake3 .. \ |
|
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/llvm \ |
|
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/ \ |
|
|
|
|
-DLLVM_VERSION_SUFFIX="-%{llvm_lib_suffix}" \ |
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \ |
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
|
|
|
@ -172,8 +172,8 @@ make install DESTDIR=%{buildroot}
@@ -172,8 +172,8 @@ make install DESTDIR=%{buildroot}
|
|
|
|
|
# fix multi-lib |
|
|
|
|
mv -v %{buildroot}%{_bindir}/llvm-config %{buildroot}%{_bindir}/%{name}-config-%{__isa_bits} |
|
|
|
|
ln -s %{_bindir}/%{name}-config-%{__isa_bits} %{buildroot}%{_bindir}/%{name}-config |
|
|
|
|
mv -v %{buildroot}%{_includedir}/llvm/llvm/Config/llvm-config{,-%{__isa_bits}}.h |
|
|
|
|
install -m 0644 %{SOURCE100} %{buildroot}%{_includedir}/llvm/llvm/Config/llvm-config.h |
|
|
|
|
mv -v %{buildroot}%{_includedir}/llvm/Config/llvm-config{,-%{__isa_bits}}.h |
|
|
|
|
install -m 0644 %{SOURCE100} %{buildroot}%{_includedir}/llvm/Config/llvm-config.h |
|
|
|
|
mv -v %{buildroot}%{_includedir}/clang/Config/config{,-%{__isa_bits}}.h |
|
|
|
|
install -m 0644 %{SOURCE101} %{buildroot}%{_includedir}/clang/Config/config.h |
|
|
|
|
|
|
|
|
@ -191,8 +191,8 @@ ls %{buildroot}%{_libdir}/* | grep -v libLLVM | grep -v libclang | xargs rm -f
@@ -191,8 +191,8 @@ ls %{buildroot}%{_libdir}/* | grep -v libLLVM | grep -v libclang | xargs rm -f
|
|
|
|
|
rm -rf %{buildroot}%{_mandir}/man1 |
|
|
|
|
|
|
|
|
|
# RHEL: Strip out some headers Mesa doesn't need |
|
|
|
|
rm -rf %{buildroot}%{_includedir}/llvm/llvm/{Assembly} |
|
|
|
|
rm -rf %{buildroot}%{_includedir}/llvm/llvm/TableGen |
|
|
|
|
rm -rf %{buildroot}%{_includedir}/llvm/{Assembly} |
|
|
|
|
rm -rf %{buildroot}%{_includedir}/llvm/TableGen |
|
|
|
|
rm -rf %{buildroot}%{_includedir}/llvm-c/lto.h |
|
|
|
|
|
|
|
|
|
# RHEL: Strip out cmake build foo |
|
|
|
@ -229,8 +229,8 @@ make %{?_smp_mflags} check-all
@@ -229,8 +229,8 @@ make %{?_smp_mflags} check-all
|
|
|
|
|
|
|
|
|
|
%files devel |
|
|
|
|
%{_bindir}/llvm* |
|
|
|
|
%{_includedir}/llvm/llvm |
|
|
|
|
%{_includedir}/llvm/llvm-c |
|
|
|
|
%{_includedir}/llvm |
|
|
|
|
%{_includedir}/llvm-c |
|
|
|
|
%{_libdir}/cmake/llvm/ |
|
|
|
|
%{_includedir}/clang |
|
|
|
|
%{_includedir}/clang-c |
|
|
|
|