File kde-dev-utils.spec of Package kde-dev-utils4

# spec file for package kde-dev-utils
# 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

Name:           kde-dev-utils
Version:        16.12.3
Release:        0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.12.3 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary:        KDE SDK Package
License:        GPL-2.0 and GFDL-1.2 and LGPL-2.0
Group:          System/GUI/KDE
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  libkde4-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package suggests the packages, built from the kde-dev-utils module.

%setup -q

%ifarch ppc64
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
export CXXFLAGS="%{optflags} -fPIC"
export CFLAGS="%{optflags} -fPIC"
  %cmake_kde4 -d build -- -DCMAKE_CXXFLAGS="%{optflags}" -DCMAKE_CFLAGS="%{optflags}"

  %kde4_makeinstall -C build
  %suse_update_desktop_file    kuiviewer      Development GUIDesigner

%package -n kuiviewer
Summary:        UI Files Viewer
Group:          Development/Tools/Other
Provides:       kde4-kuiviewer = 4.3.0
Obsoletes:      kde4-kuiviewer < 4.3.0

%description -n kuiviewer
Displays Qt Designer UI files

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

%files -n kuiviewer

%package -n kmtrace
Summary:        Memory Allocation Debugging Tool
Group:          Development/Tools/Other
Provides:       kde4-kmtrace = 4.3.0
Obsoletes:      kde4-kmtrace < 4.3.0

%description -n kmtrace
This is a KDE tool to assist with malloc debugging using glibc's
"mtrace" functionality.

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

%files -n kmtrace

%package -n kpartloader
Summary:        KDE SDK Package
Group:          System/GUI/KDE
Provides:       kde4-kpartloader = 4.3.0
Obsoletes:      kde4-kpartloader < 4.3.0

%description -n kpartloader
This package suggests the packages, built from the kdesdk module.

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

%files -n kpartloader

%package -n kstartperf
Summary:        Startup time measurement tool for KDE applications
Group:          System/GUI/KDE

%description -n kstartperf
kstartperf measures startup time for KDE applications.

The startup time is taken as the amount of time from starting the application to the first window
created by that application appearing on screen.

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

%files -n kstartperf

%package -n kprofilemethod
Summary:        Macros to help profiling using QTime
Group:          System/GUI/KDE

%description -n kprofilemethod
These macros help profiling using QTime. They allow to sum up the time taken by a given bit of code
in a method called several times. This way one can find out which low-level method used by a high-level
method is taking most of its time. Please do not commit code that uses kprofilemethod.h

%files -n kprofilemethod