File mingw32-kdebugsettings.spec of Package mingw32-kdebugsettings

#
# spec file for package kdebugsettings
#
# Copyright (c) 2018 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

%define _name   kdebugsettings
Name:           mingw32-%{_name}
Version:        18.04.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:        A KDebug settings module for KDE
License:        LGPL-2.0-or-later
Group:          System/GUI/KDE
Url:            https://github.com/rthomsen/kcmsystemd/
Source0:        %{_name}-%{version}.tar.xz
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-extra-cmake-modules
BuildRequires:  mingw32-libqt5-qtbase-devel
BuildRequires:  mingw32-kconfig-devel
BuildRequires:  mingw32-kconfigwidgets-devel
BuildRequires:  mingw32-kcoreaddons-devel
BuildRequires:  mingw32-kdbusaddons-devel
BuildRequires:  mingw32-kguiaddons-devel
BuildRequires:  mingw32-ki18n-devel
BuildRequires:  mingw32-kiconthemes-devel
BuildRequires:  mingw32-kio-devel
BuildRequires:  mingw32-kitemviews-devel
BuildRequires:  mingw32-kwidgetsaddons-devel
#BuildRequires:  mingw32-pkgconfig
BuildRequires:  update-desktop-files
#BuildRequires:  pkgconfig(Qt5Core)
#BuildRequires:  pkgconfig(Qt5Test)
#BuildRequires:  pkgconfig(Qt5Widgets)
Obsoletes:      mingw32-kdebugsettings5 < %{version}
Provides:       mingw32-kdebugsettings5 = %{version}
%if %{with lang}
Recommends:     %{name}-lang
%endif
%_mingw32_package_header_debug
BuildArch:      noarch

%description
KDebug control module for KDE. It provides a graphical frontend for the
kdebug daemon, which allow enabling or disabling particular debug areas/messages.

%if %{with lang}
%lang_package
%endif


%_mingw32_debug_package

%prep
%setup -q -n %{_name}-%{version}

%build
%_mingw32_cmake_kf5 -d build
%make_jobs

%install
%_mingw32_kf5_makeinstall -C build
%if %{with lang}
  %_mingw32_find_lang %{name} --all-name
%endif

%suse_update_desktop_file org.kde.kdebugsettings Utility DesktopUtility

%files
%defattr(-,root,root)
%doc COPYING*
%config %{_mingw32_kf5_configdir}/kde.categories
%config %{_mingw32_kf5_configdir}/kde.renamecategories
%{_mingw32_kf5_applicationsdir}/org.kde.kdebugsettings.desktop
%{_mingw32_kf5_bindir}/kdebugsettings.exe

%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif

%changelog
openSUSE Build Service is sponsored by