From 9eb64e881c947522632659f8202998132b657f44 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 17 Mar 2011 17:36:08 +0100 Subject: [PATCH 1/3] Don't include test logs; breaks multilib (# 666195) --- llvm.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/llvm.spec b/llvm.spec index cb65824..0e9dc2a 100644 --- a/llvm.spec +++ b/llvm.spec @@ -12,7 +12,7 @@ Name: llvm Version: 2.8 -Release: 9%{?dist} +Release: 10%{?dist} Summary: The Low Level Virtual Machine Group: Development/Languages @@ -317,7 +317,7 @@ find examples -name 'Makefile' | xargs -0r rm -f %files %defattr(-,root,root,-) -%doc CREDITS.TXT LICENSE.TXT README.txt llvm-testlog.txt +%doc CREDITS.TXT LICENSE.TXT README.txt %{_bindir}/bugpoint %{_bindir}/llc %{_bindir}/lli @@ -340,7 +340,7 @@ find examples -name 'Makefile' | xargs -0r rm -f %files -n clang %defattr(-,root,root,-) -%doc clang-docs/* clang-testlog.txt +%doc clang-docs/* %{_bindir}/clang* %{_bindir}/c-index-test %{_bindir}/tblgen @@ -395,6 +395,9 @@ find examples -name 'Makefile' | xargs -0r rm -f %changelog +* Thu Mar 17 2011 Michel Salim - 2.8-10 +- Don't include test logs; breaks multilib (# 666195) + * Thu Mar 17 2011 Michel Salim - 2.8-9 - clang++: fix platform-specific include dirs (# 680644) From c3dcc7c01f9c83c752cb6bb2491634bbc526b740 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 17 Mar 2011 18:24:51 +0100 Subject: [PATCH 2/3] Don't include test logs; breaks multilib (# 666195) Split shared libraries into separate subpackage --- llvm.spec | 22 +++++++++++++++++++--- 1 file 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 - 2.8-10 - Don't include test logs; breaks multilib (# 666195) +- Split shared libraries into separate subpackage * Thu Mar 17 2011 Michel Salim - 2.8-9 - clang++: fix platform-specific include dirs (# 680644) From 2fc8420d0f49fdd4234968aba41c1c0d3817e295 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 17 Mar 2011 19:03:50 +0100 Subject: [PATCH 3/3] Move ldconfig triggers to the subpackages containing .so files --- llvm.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index 5b09907..27e4df4 100644 --- a/llvm.spec +++ b/llvm.spec @@ -319,10 +319,12 @@ chmod -x %{buildroot}%{_libdir}/%{name}/*.a find examples -name 'Makefile' | xargs -0r rm -f -%post -p /sbin/ldconfig +%post libs -p /sbin/ldconfig +%post -n clang -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig +%postun -n clang -p /sbin/ldconfig %files