File kdevplatform.spec of Package kdevplatform

# spec file for package kdevplatform
# Copyright (c) 2016 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 rversion 5.0
%define libkdev_major 10
Name:           kdevplatform
Version:        5.0.1
Release:        0
Summary:        Base Package for Integrated Development Environments
License:        GPL-2.0+
Group:          Development/Tools/IDE
BuildRequires:  boost-devel
BuildRequires:  extra-cmake-modules >= 0.0.9
BuildRequires:  grantlee5-devel
BuildRequires:  karchive-devel >= 5.16.0
BuildRequires:  kcmutils-devel >= 5.16.0
BuildRequires:  kconfig-devel >= 5.16.0
BuildRequires:  kdeclarative-devel >= 5.16.0
BuildRequires:  kf5-filesystem
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:  kservice-devel >= 5.16.0
BuildRequires:  ktexteditor-devel >= 5.16.0
BuildRequires:  kwidgetsaddons-devel >= 5.16.0
BuildRequires:  kwindowsystem-devel >= 5.16.0
BuildRequires:  kxmlgui-devel >= 5.16.0
BuildRequires:  libkomparediff2-kf5-devel
BuildRequires:  sonnet-devel >= 5.16.0
BuildRequires:  subversion-devel
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(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
Conflicts:      kdevplatform4
Requires:       libkdevplatform%{libkdev_major} = %{version}
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains the common plugins for integrated developments
environment based on the KDevelop framework.

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

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

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

  %cmake_kf5 -d build

  %kf5_makeinstall -C build
  %find_lang kdevappwizard %{name}.lang
  %find_lang kdevclassbrowser %{name}.lang
  %find_lang kdevcodeutils %{name}.lang
  %find_lang kdevcontextbrowser %{name}.lang
  %find_lang kdevcvs %{name}.lang
  %find_lang kdevdocumentswitcher %{name}.lang
  %find_lang kdevdocumentview %{name}.lang
  %find_lang kdevexecute %{name}.lang
  %find_lang kdevexecutescript %{name}.lang
  %find_lang kdevexternalscript %{name}.lang
  %find_lang kdevfilemanager %{name}.lang
  %find_lang kdevfiletemplates %{name}.lang
  %find_lang kdevgenericprojectmanager %{name}.lang
  %find_lang kdevgit %{name}.lang
  %find_lang kdevgrepview %{name}.lang
  %find_lang kdevkonsole %{name}.lang
  %find_lang kdevopenwith %{name}.lang
  %find_lang kdevpatchreview %{name}.lang
  %find_lang kdevplatform %{name}.lang
  %find_lang kdevproblemreporter %{name}.lang
  %find_lang kdevprojectfilter %{name}.lang
  %find_lang kdevprojectmanagerview %{name}.lang
  %find_lang kdevquickopen %{name}.lang
  %find_lang kdevstandardoutputview %{name}.lang
  %find_lang kdevsubversion %{name}.lang
  %find_lang kdevswitchtobuddy %{name}.lang
  %find_lang kdevtestview %{name}.lang
  %find_lang kdevvcsprojectintegration %{name}.lang
  %find_lang kdevwelcomepage %{name}.lang

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files lang -f %{name}.lang

%package devel
Summary:        Base Package for Integrated Development Environments: Build Environment
Group:          Development/Tools/IDE
Conflicts:      libkdevplatform4-devel
Requires:       %{name} = %{version}
Requires:       libkdevplatform%{libkdev_major} = %{version}

%description devel
This package contains the development files for building integrated
developments environments based on the KDevelop framework.

%files devel

%package -n libkdevplatform%{libkdev_major}
Summary:        Libraries for Integrated Development Environments
Group:          Development/Tools/IDE
Requires:       %{name} = %{version}

%description -n libkdevplatform%{libkdev_major}
This package contains the libraries for integrated development
environments based on the KDevelop framework.

%post -n libkdevplatform%{libkdev_major} -p /sbin/ldconfig

%postun -n libkdevplatform%{libkdev_major} -p /sbin/ldconfig

%files -n libkdevplatform%{libkdev_major}