File kdevelop5-plugin-clang-tidy.spec of Package kdevelop5-plugin-clang-tidy
#
# spec file for package kdevelop5-plugin-clang-tidy
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# for compatibility with Leap 42.3 which doesn't have this macro yet
%{!?_kf5_debugdir: %global _kf5_debugdir %{_kf5_configdir}}
%define rname kdev-clang-tidy
Name: kdevelop5-plugin-clang-tidy
Version: 0.3.3
Release: 0
Summary: KDevelop plugin to support static analysis
License: GPL-2.0-or-later
Group: Development/Tools/IDE
URL: http://www.kdevelop.org
Source0: https://download.kde.org/stable/kdev-clang-tidy/%{version}/src/%{rname}-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: kdevplatform-devel >= 5.2.0
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5ItemModels)
BuildRequires: cmake(KF5ItemViews)
BuildRequires: cmake(KF5Parts)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Widgets)
Requires: %{_bindir}/clang-tidy
Requires: kdevelop5
Recommends: %{name}-lang
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
%description
A KDevelop plugin to support static analysis.
It uses the KDevelop5 Problem Checker Framework, parsing clang-tidy's output
and showing the issues on the Problems Viewer, allowing review of the code.
The plugin provides some very basic features for the start:
* running clang-tidy on a single file, subdirectories or the whole project,
with the result shown in the Problems tool view,
invokable from file context menus and main menu (Analyzer section)
* per-project config UI:
* free field for additional command line parameters to clang-tidy
* checkbox whether to include system headers in the check
* toggle between using .clang-tidy files or options in the config UI:
* header filter regular expression
* opt-in list of checks
%lang_package
%prep
%setup -q -n %{rname}-%{version}
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%fdupes -s %{buildroot}%{_datadir}/locale
%find_lang kdevclangtidy %{name}.lang
%files lang -f %{name}.lang
%files
%license COPYING
%doc README.md
%{_kf5_appstreamdir}/org.kde.kdev-clang-tidy.metainfo.xml
%{_kf5_debugdir}/kdevclangtidy.categories
%{_kf5_plugindir}/kdevplatform/
%changelog