File mingw32-kwinshutdown5.spec of Package mingw32-kwinshutdown5
#
# spec file for package mingw32-kwinshutdown5
#
# Copyright (c) 2021 Ralf Habacker
#
# 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: mingw32-kwinshutdown5
Version: 0.9.9
Release: 0
URL: https://github.com/rhabacker/kwinshutdown
Source0: kwinshutdown5-%{version}.tar.xz
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32(cmake:Qt5Core) >= 5.2.0
BuildRequires: mingw32(cmake:Qt5DBus) >= 5.2.0
BuildRequires: mingw32(cmake:Qt5Widgets) >= 5.2.0
BuildRequires: mingw32(cmake:KF5CoreAddons)
BuildRequires: mingw32(cmake:KF5I18n)
BuildRequires: mingw32(cmake:KF5WidgetsAddons)
%_mingw32_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
Summary: Application shutdown helper for KDE
License: GPL-2.0-or-later
Group: System/GUI/KDE
%description
A small helper tool for shutting down KDE background processes if main application has been closed
%_mingw32_debug_package
%prep
%autosetup -p1 -n kwinshutdown5-%{version}
%build
%_mingw32_cmake_kf5 -d build
%cmake_build
%install
%_mingw32_kf5_makeinstall -C build
%_mingw32_kf5_post_install
chmod 644 %{buildroot}%{_mingw32_kf5_applicationsdir}/kwinshutdown5.desktop
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_mingw32_kf5_bindir}/kwinshutdown5.exe
%{_mingw32_kf5_applicationsdir}/kwinshutdown5.desktop
%changelog