LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kde-dev-utils.spec of Package kde-dev-utils.openSUSE_Backports_SLE-12-SP3 (Project home:alarrosa:Backports:SLE-12-SP3:KDE)

#
# 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/
#

%bcond_without lang

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

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

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

%prep
%setup -q

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

%install
  %kf5_makeinstall -C build
  %if %{with lang}
    %find_lang kuiviewer
    %find_lang kpartloader
  %endif
  %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
%defattr(-,root,root)
%doc COPYING*
%{_bindir}/kuiviewer
%{_kf5_plugindir}/kuiviewerpart.so
%{_kf5_plugindir}/quithumbnail.so
%{_kf5_applicationsdir}/org.kde.kuiviewer.desktop
%{_kf5_iconsdir}/hicolor/*/apps/kuiviewer.png
%{_kf5_servicesdir}/designerthumbnail.desktop
%{_kf5_servicesdir}/kuiviewer_part.desktop
%{_kf5_kxmlguidir}/kuiviewerpart/
%{_kf5_kxmlguidir}/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
%defattr(-,root,root)
%doc COPYING*
%{_bindir}/kpartloader
%{_kf5_kxmlguidir}/kpartloader/

%if %{with lang}
%files -n kuiviewer-lang -f kuiviewer.lang
%files -n kpartloader-lang -f kpartloader.lang
%doc COPYING*
%endif

%changelog