File kdevelop5.spec of Package kdevelop5

# spec file for package kdevelop5
# Copyright (c) 2017 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

%define rname   kdevelop
%define rversion 5.1
Name:           kdevelop5
Version:        5.1.2
Release:        0
Summary:        Plugin-extensible IDE for C/C++ and other programming languages
License:        GPL-2.0+
Group:          Development/Tools/IDE
Source0:        %{rname}-%{version}.tar.xz
BuildRequires:  grantlee5-devel
BuildRequires:  karchive-devel >= 5.16.0
BuildRequires:  kcmutils-devel >= 5.16.0
BuildRequires:  kconfig-devel >= 5.16.0
BuildRequires:  kcrash-devel >= 5.16.0
BuildRequires:  kdeclarative-devel >= 5.16.0
BuildRequires:  kdevelop5-pg-qt >= 2.0.0
BuildRequires:  kdevplatform-devel >= 5.0.0
BuildRequires:  kdoctools-devel >= 5.16.0
BuildRequires:  kf5-filesystem >= 5.16.0
BuildRequires:  kguiaddons-devel >= 5.16.0
BuildRequires:  ki18n-devel >= 5.16.0
BuildRequires:  kiconthemes-devel >= 5.16.0
BuildRequires:  kio-devel >= 5.16.0
BuildRequires:  kitemmodels-devel >= 5.16.0
BuildRequires:  kitemviews-devel >= 5.16.0
BuildRequires:  kjobwidgets-devel >= 5.16.0
BuildRequires:  knewstuff-devel >= 5.16.0
BuildRequires:  knotifications-devel >= 5.16.0
BuildRequires:  knotifyconfig-devel >= 5.16.0
BuildRequires:  kparts-devel >= 5.16.0
BuildRequires:  krunner-devel
BuildRequires:  kservice-devel >= 5.16.0
BuildRequires:  ktexteditor-devel >= 5.16.0
BuildRequires:  kwindowsystem-devel >= 5.16.0
BuildRequires:  kxmlgui-devel >= 5.16.0
BuildRequires:  libksysguard5-devel
BuildRequires:  llvm-clang-devel
BuildRequires:  okteta-devel
BuildRequires:  pkgconfig
BuildRequires:  plasma-framework-devel
BuildRequires:  shared-mime-info
BuildRequires:  threadweaver-devel >= 5.16.0
BuildRequires:  pkgconfig(Qt5Concurrent) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:  pkgconfig(Qt5DBus) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Help) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Quick) >= 5.4.0
BuildRequires:  pkgconfig(Qt5QuickWidgets) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Script) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Test) >= 5.4.0
BuildRequires:  pkgconfig(Qt5WebKitWidgets) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4.0
Recommends:     %{name}-lang
Conflicts:      kdevelop4
Conflicts:      kdevelop4-plugin-clang
# The following plugins were provided by the KDE repos providing unstable packages
Provides:       kdevelop5-cpp-parser
Provides:       kdevelop5-plugin-qmljs = %{version}
Obsoletes:      kdevelop5-plugin-qmljs < %{version}
Provides:       kdevelop5-plugin-clang = %{version}
Obsoletes:      kdevelop5-plugin-clang < %{version}
Provides:       kdevelop5-plugin-qmake = %{version}
Obsoletes:      kdevelop5-plugin-qmake < %{version}
Provides:       kdevelop5-plugin-cppsupport = %{version}
Obsoletes:      kdevelop5-plugin-cppsupport < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

KDevelop is an integrated development environment (IDE).
It provides editing, navigation and debugging features for several programming languages,
as well as integration with multiple build systems and version-control systems
using a plugin-based architecture.
KDevelop has parser backends for C, C++ and Javascript/QML,
with further external plugins supporting e.g. PHP or Python.

%package lang
Summary:        Languages for package %{name}
Group:          System/Localization
Requires:       %{name} = %{version}
Provides:       %{name}-lang-all = %{version}
Supplements:    packageand(bundle-lang-other:%{name})
BuildArch:      noarch
Conflicts:      kdevelop4-lang

%description lang
Provides translations to the package %{name}

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

  %cmake_kf5 -d build

  %kf5_makeinstall -C build
  %find_lang kdevclang %{name}.lang
  %find_lang kdevcmake %{name}.lang
  %find_lang kdevcmakebuilder %{name}.lang
  %find_lang kdevcppcheck %{name}.lang
  %find_lang kdevcustombuildsystem %{name}.lang
  %find_lang kdevcustomdefinesandincludes %{name}.lang
  %find_lang kdevcustommake %{name}.lang
  %find_lang kdevdebuggercommon %{name}.lang
  %find_lang kdevelop %{name}.lang
  %find_lang kdevexecuteplasmoid %{name}.lang
  %find_lang kdevformatters %{name}.lang
  %find_lang kdevgdb %{name}.lang
  %find_lang kdevghprovider %{name}.lang
  %find_lang kdevkdeprovider %{name}.lang
  %find_lang kdevlldb %{name}.lang
  %find_lang kdevmakebuilder %{name}.lang
  %find_lang kdevmanpage %{name}.lang
  %find_lang kdevninja %{name}.lang
  %find_lang kdevokteta %{name}.lang
  %find_lang kdevqmakebuilder %{name}.lang
  %find_lang kdevqmakemanager %{name}.lang
  %find_lang kdevqmljs %{name}.lang
  %find_lang kdevqthelp %{name}.lang
  %find_lang plasma_applet_kdevelopsessions %{name}.lang
  %find_lang plasma_runner_kdevelopsessions %{name}.lang

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%dir %{_kf5_iconsdir}/hicolor/256x256
%dir %{_kf5_iconsdir}/hicolor/256x256/apps

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by