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

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

%bcond_without lang

Name:           kde-dev-utils
Version:        17.12.3
Release:        0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 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:  extra-cmake-modules
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5JobWidgets)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Parts)
BuildRequires:  cmake(KF5WidgetsAddons)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Designer)
BuildRequires:  pkgconfig(Qt5UiTools)
%if %{with lang}
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%if %{with lang}
%lang_package -n kpartloader
%lang_package -n kuiviewer

%setup -q

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

  %kf5_makeinstall -C build
  %if %{with lang}
    %find_lang kuiviewer
    %find_lang kpartloader
  %suse_update_desktop_file    org.kde.kuiviewer      Development GUIDesigner

%package -n kuiviewer
Summary:        UI Files Viewer
Group:          Development/Tools/Other
Recommends:     kuiviewer-lang

%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 kpartloader
Summary:        KDE SDK Package
Group:          System/GUI/KDE
Recommends:     kpartloader-lang

%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

%if %{with lang}
%files -n kuiviewer-lang -f kuiviewer.lang
%files -n kpartloader-lang -f kpartloader.lang

openSUSE Build Service is sponsored by