File kwin-effects-cube.spec of Package kwin-effects-cube
#
# spec file for package kwin-effects-cube
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: kwin-effects-cube
Version: 2.0.0
Release: 0
Summary: Cube Effect for KDE Plasma
License: GPL-3.0-only
Group: System/GUI/KDE
URL: https://github.com/zzag/kwin-effects-cube
Source: https://github.com/zzag/kwin-effects-cube/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.16
BuildRequires: extra-cmake-modules
BuildRequires: pkgconfig
BuildRequires: cmake(KF5Config) >= 5.94.0
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5GlobalAccel)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: cmake(KWinEffects) >= 5.27.0
BuildRequires: cmake(Qt5Core) >= 5.15.0
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5Quick3D)
BuildRequires: pkgconfig(epoxy)
Provides: qt5qmlimport(org.kde.kwin.effect.cube.1)
%if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
BuildRequires: gcc12
BuildRequires: gcc12-c++
%else
BuildRequires: gcc
BuildRequires: gcc-c++
%endif
%description
This is a basic desktop cube effect for KWin. It's primarily intended to help you impress your friends with what one can do on Linux.
How to use it
Go to desktop effect settings, and enable the Cube effect. Once you've done that, the Cube effect can be activated by pressing Meta+C shortcut.
Note that you will need at least 3 virtual desktops in order to activate the effect.
%prep
%autosetup -p1
%build
%if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 160000 && 0%{?is_opensuse}
export CC="gcc-12"
export CXX="g++-12"
%endif
%cmake_kf5 -d build -- -DCMAKE_BUILD_TYPE=Release
%cmake_build
%install
%kf5_makeinstall -C build
%files
%license LICENSES/*
%doc README.md
%dir %{_kf5_plugindir}/kwin/effects
%dir %{_kf5_plugindir}/kwin/effects/plugins
%dir %{_kf5_sharedir}/kwin/effects/cube
%dir %{_kf5_sharedir}/kwin/effects/cube/qml
%{_kf5_plugindir}/kwin/effects/*/*.so
%{_kf5_sharedir}/kwin/effects/cube/qml/*.qml
%changelog