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 http://bugs.opensuse.org/
#


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
Url:            http://www.kde.org/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  libkde4-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{kde4_runtime_requires}

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

%prep
%setup -q

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

%install
  %kde4_makeinstall -C build
  %suse_update_desktop_file    kuiviewer      Development GUIDesigner
  %kde_post_install

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

%description -n kuiviewer
Displays Qt Designer UI files

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

%files -n kuiviewer
%defattr(-,root,root)
%doc COPYING COPYING.DOC COPYING.LIB
%{_bindir}/kuiviewer
%{_kde4_modulesdir}/kuiviewerpart.so
%{_kde4_modulesdir}/quithumbnail.so
%{_kde4_applicationsdir}/kuiviewer.desktop
%{_kde4_iconsdir}/hicolor/*/apps/kuiviewer.png
%{_kde4_appsdir}/kuiviewer/
%{_kde4_appsdir}/kuiviewerpart/
%{_kde4_servicesdir}/designerthumbnail.desktop
%{_kde4_servicesdir}/kuiviewer_part.desktop

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

%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
%defattr(-,root,root)
%doc COPYING COPYING.DOC COPYING.LIB

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

%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
%defattr(-,root,root)
%doc COPYING COPYING.DOC COPYING.LIB
%{_bindir}/kpartloader
%{_kde4_appsdir}/kpartloader/

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

%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
%defattr(-,root,root)
%doc COPYING COPYING.DOC COPYING.LIB

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

%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
%defattr(-,root,root)
%doc COPYING COPYING.DOC COPYING.LIB
%{_kde4_includedir}/kprofilemethod.h

%changelog