Hello community,
here is the log from the commit of package clazy for openSUSE:Factory checked in at 2019-10-04 16:06:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/clazy (Old)
and /work/SRC/openSUSE:Factory/.clazy.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "clazy"
Fri Oct 4 16:06:54 2019 rev:5 rq:734944 version:1.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/clazy/clazy.changes 2019-07-17 14:26:54.259411262 +0200
+++ /work/SRC/openSUSE:Factory/.clazy.new.2352/clazy.changes 2019-10-04 16:06:57.456667525 +0200
@@ -1,0 +2,6 @@
+Sat Sep 28 18:38:25 UTC 2019 - Aaron Puchert
+
+- Add cmake-clang-cpp.patch: fix build with LLVM 9.
+- Replace outdated llvm-clang-devel dependency by clang-devel.
+
+-------------------------------------------------------------------
New:
----
cmake-clang-cpp.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ clazy.spec ++++++
--- /var/tmp/diff_new_pack.8yxCfd/_old 2019-10-04 16:06:59.976661551 +0200
+++ /var/tmp/diff_new_pack.8yxCfd/_new 2019-10-04 16:06:59.988661523 +0200
@@ -24,10 +24,11 @@
Group: Development/Tools/Other
URL: https://www.kdab.com/clazy-video/
Source0: https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
+Patch0: cmake-clang-cpp.patch
BuildRequires: clang
+BuildRequires: clang-devel >= 3.9
BuildRequires: cmake >= 3.0
BuildRequires: libstdc++-devel
-BuildRequires: llvm-clang-devel >= 3.9
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(zlib)
@@ -38,6 +39,7 @@
%prep
%setup -q
+%patch0 -p1
%build
%define _lto_cflags %{nil}
++++++ cmake-clang-cpp.patch ++++++
diff --git a/cmake/FindClang.cmake.orig b/cmake/FindClang.cmake
index 542172e..50e0829 100644
--- a/cmake/FindClang.cmake.orig
+++ b/cmake/FindClang.cmake
@@ -62,6 +62,7 @@ if (LLVM_FOUND AND LLVM_LIBRARY_DIRS)
# note: On Windows there's 'libclang.dll' instead of 'clang.dll' -> search for 'libclang', too
find_library(CLANG_LIBCLANG_LIB NAMES clang libclang HINTS ${LLVM_LIBRARY_DIRS}) # LibClang: high-level C interface
+ FIND_AND_ADD_CLANG_LIB(clang-cpp)
FIND_AND_ADD_CLANG_LIB(clangFrontend)
FIND_AND_ADD_CLANG_LIB(clangDriver)
FIND_AND_ADD_CLANG_LIB(clangCodeGen)