File bismuth.spec of Package bismuth

#
# spec file for package bismuth
#
# Copyright (c) 2022 Philipp Reichmuth <philipp.reichmuth@gmail.com>
#
# 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.

Name:           bismuth
Version:        3.1.4
Release:        0
Summary:        Window tiling for KDE Plasma
License:        MIT
Group:          System/GUI/KDE
URL:            https://github.com/Bismuth-Forge/bismuth
Source:         https://github.com/Bismuth-Forge/bismuth/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE
Patch0:         update_shebang_line.patch
BuildRequires:  extra-cmake-modules >= 5.80.0
BuildRequires:  cmake(KF5Plasma)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KCMUtils)
BuildRequires:  cmake(KF5Declarative)
BuildRequires:  cmake(Qt5DBus) >= 5.15
BuildRequires:  cmake(Qt5Gui)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  fdupes
BuildRequires:  esbuild
BuildRequires:  update-desktop-files
BuildRequires:  zip
BuildRequires:  kglobalaccel-devel
BuildRequires:  libkdecoration2-devel
Requires:       kwin5 >= 5.23
Conflicts:      bismuth-git
Conflicts:      kwin-tiling-script-bismuth
Provides:       kwin-tiling-script-bismuth = %{version}-%{release}
Obsoletes:      kwin-tiling-script-bismuth < %{version}-%{release}

%description
KWin script (release version) to make KWin a tiling window manager: arrange your windows automatically and switch between them using keyboard shortcuts. All of that with different layouts and without a complicated setup of classic tiling window managers (i3, dwm or XMonad).

Bismuth features full KDE Plasma integration with multiple screens, Activities and virtual desktops; built-in KWin features (minimize, full-screen and rules); floating Dialog windows; multiple Layouts such as Classic Tiling, Monocle, Three-Column and Floating. It also works on the Wayland Plasma session.

%prep
%autosetup -p1 

%build
%cmake_kf5 -d build -- -DUSE_NPM=OFF -DUSE_TSC=OFF
%cmake_build

%install
%kf5_makeinstall -C build
%fdupes %{buildroot}

%files
%doc README.md
%license LICENSE
%dir %{_kf5_plugindir}/kcms
%{_kf5_plugindir}/kcms/kcm_bismuth.so
%dir %{_kf5_sharedir}/kpackage
%dir %{_kf5_sharedir}/kpackage/kcms
%{_kf5_sharedir}/kpackage/kcms/kcm_bismuth/
%dir %{_kf5_plugindir}/org.kde.kdecoration2
%{_kf5_plugindir}/org.kde.kdecoration2/bismuth_kdecoration.so
%dir %{_kf5_qmldir}/org/kde/bismuth
%{_kf5_qmldir}/org/kde/bismuth/core
%{_kf5_sharedir}/kservices5/
%{_kf5_sharedir}/kwin/
%{_kf5_configkcfgdir}/bismuth_config.kcfg
%{_kf5_iconsdir}/hicolor/*/*/bismuth*.svg
%{_kf5_sharedir}/kconf_update/bismuth_*
%{_kf5_debugdir}/bismuth.categories

%changelog

openSUSE Build Service is sponsored by