File kwin-effects-cube.spec of Package kwin-effects-cube
#
# spec file for package kwin-effects-cube
#
# Copyright (c) 2022 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: Desktop cube effect for kwin
License: GPL-2.0-only and GPL-3.0-only and BSD-3-Clause
Group: System/GUI/KDE
URL: https://github.com/zzag/kwin-effects-cube
Source0: https://github.com/zzag/kwin-effects-cube/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.16
BuildRequires: extra-cmake-modules
%if 0%{?suse_version} <= 1500
BuildRequires: gcc12
BuildRequires: gcc12-c++
%else
BuildRequires: gcc
BuildRequires: gcc-c++
%endif
BuildRequires: cmake(Qt5Core) >= 5.15.0
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5Quick3D)
BuildRequires: cmake(KWinEffects) >= 5.27.0
BuildRequires: cmake(KF5Config) >= 5.94.0
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5GlobalAccel)
BuildRequires: cmake(KF5XmlGui)
BuildRequires: pkgconfig(epoxy)
Provides: qt5qmlimport(org.kde.kwin.effect.cube.1)
%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."
%prep
%setup -q
# lower version of KF5 to build also for Leap 15.4
#sed -i -e 's|KF5_MIN_VERSION "5.94.0"|KF5_MIN_VERSION "5.90.0"|g' CMakeLists.txt
#sed -i -e 's|KWinEffects 5.25.0|KWinEffects 5.24.4|g' CMakeLists.txt
%build
%if 0%{?suse_version} <= 1500
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