%define _disable_lto 1 %define _disable_ld_no_undefined 1 Name: clazy Summary: Qt oriented code checker Version: 1.11 Release: 7 Group: Graphical desktop/KDE License: GPLv2 Url: http://www.aelog.org/ Source0: http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz Patch0: clazy-clang-isnt-buggy-anymore.patch Patch1: clazy-1.11-clang-15.patch Patch2: clazy-1.11-llvm-16.patch BuildRequires: cmake(ECM) BuildRequires: cmake(Polly) BuildRequires: llvm-devel BuildRequires: clang-devel %description Qt oriented code checker based on clang framework. Krazy's little brother. %prep %autosetup -p1 %cmake_kde5 %build %ninja -C build %install %ninja_install -C build %check cd build export PATH=`pwd`/bin:$PATH ctest || : %files %doc %{_docdir}/clazy/* %{_bindir}/%{name} %{_bindir}/%{name}-standalone %{_libdir}/ClazyPlugin.so %doc %{_mandir}/man1/%{name}.1* %{_datadir}/metainfo/org.kde.clazy.metainfo.xml