File plasma-fixmousecursor.spec of Package plasma-fixmousecursor

# 
# Copyright © 2019 Markus S. <kamikazow@opensuse.org>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
# USE OR PERFORMANCE OF THIS SOFTWARE.
#

Name:             plasma-fixmousecursor
Summary:          Fix mouse cursor theme changing to DMZ randomly
Version:          1.0
Release:          0
Group:            System/X11/Utilities
License:          ISC
BuildArch:        noarch
BuildRequires:    dmz-icon-theme-cursors
Requires:         breeze5-cursors

%description
This is a workaround for a bug that causes the mouse cursor change to a
DMZ-themed one when hovering certain elements such as window title bars.

Only needed under Plasma X11. Plasma Wayland is fine without this.

%install
mkdir -p %{buildroot}%{_datadir}/icons/default

cat > %{buildroot}%{_datadir}/icons/default/index.theme << 'EOF'
[Icon Theme]
Inherits=breeze_cursors

EOF

%files
%defattr(-,root,root,-)
%{_datadir}/icons/default

%changelog