File kdevelop5-plugin-krazy2.spec of Package kdevelop5-plugin-krazy2
#
# spec file for package kdevelop5-plugin-krazy2
#
# 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 http://bugs.opensuse.org/
#
Name: kdevelop5-plugin-krazy2
Version: X
Release: 0
Summary: KDevelop plugin to perform Krazy2 analysis
License: GPL-2.0-or-later
Group: Development/Tools/IDE
URL: http://www.kdevelop.org
Source0: %{name}-%{version}.tar.xz
Source1: %{name}-lang.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: kdevplatform-devel >= 5.0.0
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kitemmodels-devel
BuildRequires: ktexteditor-devel
BuildRequires: pkgconfig
BuildRequires: threadweaver-devel
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5Widgets)
Requires: %{_bindir}/krazy2
Requires: kdevelop5
Recommends: %{name}-lang = %{version}
%description
A KDevelop plugin to perform Krazy2 analysis
%lang_package
%prep
%setup -q -a 1
cat >> CMakeLists.txt << EOF
ki18n_install(po)
EOF
sed -i "/add_subdirectory(tests)/d" CMakeLists.txt
# fix default executable path
sed -i "s!/usr/local/Krazy2/bin/krazy2!/usr/bin/krazy2!" common.h
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%fdupes -s %{buildroot}%{_datadir}/locale
%find_lang kdevkrazy2 %{name}.lang
%files lang -f %{name}.lang
%dir %{_kf5_sharedir}/locale/*
%dir %{_kf5_sharedir}/locale/*/LC_MESSAGES
%files
%license COPYING
%doc HACKING
%{_kf5_kxmlguidir}/kdevkrazy2/
%{_kf5_plugindir}/kdevplatform/
%changelog