File systemsettings5.spec of Package systemsettings5
#
# spec file for package systemsettings5
#
# 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: systemsettings5
Version: 5.8.2
Release: 0
Summary: KDE's control center
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://www.kde.org/
Source: http://download.kde.org/stable/plasma/%{version}/systemsettings-%{version}.tar.xz
# PATCH-FIX-OPENSUSE install_administration_category.diff -- install System Administration category, needed at least for YaST KCM
Patch0: install_administration_category.diff
# PATCH-FIX-OPENSUSE systemsettings-desktop.diff -- rename application name to Configure Desktop, in order to cause less confusion for KDE4 users
Patch1: systemsettings-desktop.diff
BuildRequires: extra-cmake-modules >= 1.2.0
BuildRequires: kf5-filesystem
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: cmake(KF5Config)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5ItemViews)
BuildRequires: cmake(KF5KCMUtils)
BuildRequires: cmake(KF5KHtml)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Service)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(Qt5Widgets) >= 5.4.0
%if %{with lang}
Recommends: %{name}-lang
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides KDE's control center modules.
%package devel
Summary: KDE's control center
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
Conflicts: kdebase4-workspace-devel
%description devel
Provides KDE's control center modules. Development files.
%lang_package
%prep
%setup -q -n systemsettings-%{version}
%patch0 -p1
%if 0%{?suse_version} > 1314 && "%{suse_version}" != "1320"
%patch1 -p1
%endif
%build
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%kf5_find_lang
%endif
%suse_update_desktop_file kdesystemsettings X-SuSE-core
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING*
%{_kf5_bindir}/systemsettings5
%{_kf5_libdir}/libsystemsettingsview.so.*
%{_kf5_plugindir}/
%{_kf5_applicationsdir}/*.desktop
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%doc %{_kf5_htmldir}/en/*/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%{_kf5_sharedir}/systemsettings/
%{_kf5_sharedir}/kxmlgui5/
%files devel
%defattr(-,root,root)
%doc COPYING*
%{_kf5_libdir}/libsystemsettingsview.so
%{_includedir}/*
%if %{with lang}
%files lang -f %{name}.lang
%doc %lang(ca) %{_kf5_htmldir}/ca/
%doc %lang(de) %{_kf5_htmldir}/de/
%doc %lang(it) %{_kf5_htmldir}/it/
%doc %lang(nl) %{_kf5_htmldir}/nl/
%doc %lang(sv) %{_kf5_htmldir}/sv/
%doc %lang(uk) %{_kf5_htmldir}/uk/
%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/
%endif
%changelog