[llvm/f15/master] Don't include test logs; breaks multilib (# 666195) Split shared libraries into separate subpackage
Michel Alexandre Salim
salimma at fedoraproject.org
Thu Mar 17 17:26:05 UTC 2011
commit c3dcc7c01f9c83c752cb6bb2491634bbc526b740
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Thu Mar 17 18:24:51 2011 +0100
Don't include test logs; breaks multilib (# 666195)
Split shared libraries into separate subpackage
llvm.spec | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index 0e9dc2a..5b09907 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -42,6 +42,7 @@ BuildRequires: dejagnu tcl-devel python
%if 0%{?_with_doxygen}
BuildRequires: doxygen graphviz
%endif
+Requires: llvm-libs = %{version}-%{release}
# LLVM is not supported on PPC64
# http://llvm.org/bugs/show_bug.cgi?id=3729
@@ -81,10 +82,19 @@ Obsoletes: %{name}-doc < %{version}-%{release}
Documentation for the LLVM compiler infrastructure.
+%package libs
+Summary: LLVM shared libraries
+Group: System Environment/Libraries
+
+%description libs
+Shared libraries for the LLVM compiler infrastructure.
+
+
%package -n clang
Summary: A C language family front-end for LLVM
License: NCSA
Group: Development/Languages
+Requires: llvm = %{version}-%{release}
# clang requires gcc; clang++ gcc-c++
Requires: gcc-c++
@@ -324,9 +334,6 @@ find examples -name 'Makefile' | xargs -0r rm -f
%exclude %{_bindir}/llvm-config
%{_bindir}/llvm*
%{_bindir}/opt
-%config(noreplace) %{_sysconfdir}/ld.so.conf.d/llvm-%{_arch}.conf
-%dir %{_libdir}/llvm
-%{_libdir}/llvm/*.so
%exclude %{_mandir}/man1/clang.1.*
%exclude %{_mandir}/man1/llvmg??.1.*
%doc %{_mandir}/man1/*.1.*
@@ -338,12 +345,20 @@ find examples -name 'Makefile' | xargs -0r rm -f
%{_includedir}/%{name}-c
%{_libdir}/%{name}/*.a
+%files libs
+%defattr(-,root,root,-)
+%config(noreplace) %{_sysconfdir}/ld.so.conf.d/llvm-%{_arch}.conf
+%dir %{_libdir}/%{name}
+%exclude %{_libdir}/%{name}/libclang.so
+%{_libdir}/%{name}/*.so
+
%files -n clang
%defattr(-,root,root,-)
%doc clang-docs/*
%{_bindir}/clang*
%{_bindir}/c-index-test
%{_bindir}/tblgen
+%{_libdir}/%{name}/libclang.so
%{_prefix}/lib/clang
%doc %{_mandir}/man1/clang.1.*
@@ -397,6 +412,7 @@ find examples -name 'Makefile' | xargs -0r rm -f
%changelog
* Thu Mar 17 2011 Michel Salim <salimma at fedoraproject.org> - 2.8-10
- Don't include test logs; breaks multilib (# 666195)
+- Split shared libraries into separate subpackage
* Thu Mar 17 2011 Michel Salim <salimma at fedoraproject.org> - 2.8-9
- clang++: fix platform-specific include dirs (# 680644)
More information about the scm-commits
mailing list