#2 Link against libclang-cpp.so
Merged 4 years ago by ngompa. Opened 4 years ago by tstellar.
rpms/ tstellar/castxml libclang-cpp  into  master

@@ -0,0 +1,36 @@ 

+ From e2c2f233d5af99d02bebe4a6b346db0f6a1c3055 Mon Sep 17 00:00:00 2001

+ From: Tom Stellard <tstellar@redhat.com>

+ Date: Thu, 12 Dec 2019 23:48:29 +0000

+ Subject: [PATCH] Link against libclang-cpp.so

+ 

+ ---

+  src/CMakeLists.txt | 13 +------------

+  1 file changed, 1 insertion(+), 12 deletions(-)

+ 

+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt

+ index 8c0f1e4..d660b3f 100644

+ --- a/src/CMakeLists.txt

+ +++ b/src/CMakeLists.txt

+ @@ -32,18 +32,7 @@ configure_file(

+  

+  include_directories(${CMAKE_CURRENT_BINARY_DIR})

+  

+ -set(clang_libs

+ -  clangFrontend

+ -  clangDriver

+ -  clangSerialization

+ -  clangParse

+ -  clangSema

+ -  clangAnalysis

+ -  clangEdit

+ -  clangAST

+ -  clangLex

+ -  clangBasic

+ -  )

+ +set(clang_libs clang-cpp)

+  

+  set(llvm_libs

+    native

+ -- 

+ 2.20.1

+ 

file modified
+8 -1
@@ -1,6 +1,6 @@ 

  Name:		castxml

  Version:	0.2.0

- Release:	4%{?dist}

+ Release:	5%{?dist}

  Summary:	C-family abstract syntax tree XML output tool

  

  License:	ASL 2.0
@@ -8,6 +8,8 @@ 

  Source0:	https://github.com/CastXML/CastXML/archive/v%{version}/%{name}-%{version}.tar.gz

  #		Backport clang 9 test fix:

  Patch0:		castxml-test-Update-expected-XML-output-for-LLVM-Clang-9.0.patch

+ # https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package

+ Patch1:		0001-Link-against-libclang-cpp.so.patch

  

  BuildRequires:	cmake

  BuildRequires:	llvm-devel >= 3.6.0
@@ -29,6 +31,7 @@ 

  %prep

  %setup -q -n CastXML-%{version}

  %patch0 -p1

+ %patch1 -p1

  

  %build

  %cmake -DCastXML_INSTALL_DOC_DIR:STRING=share/doc/%{name} \
@@ -59,6 +62,10 @@ 

  %license LICENSE NOTICE

  

  %changelog

+ * Wed Jan 29 2020 Tom Stellard <tstellar@redhat.com> - 0.2.0-5

+ - Link against libclang-cpp.so

+ - https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package

+ 

  * Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild