%global style k4oxygen
%global qt 5
%global dev 10110111

%global forgeurl https://github.com/%{dev}/%{style}
%global commit 723e2f0dcad7979beb1e75456c76bccbddcb9217
%global date 20241028
%forgemeta

Name:    %{style}-qt%{qt}
Version: 0
Release: 1%{?dist}
Summary: Variant of KDE4 Oxygen widget theme for Qt%{qt}
License: LGPL-2.1
URL:     %{forgeurl}
Source:  %{forgesource}
Patch0:  buttons_and_icons.patch

BuildRequires: cmake
BuildRequires: cmake(Qt%{qt}Core)
BuildRequires: cmake(Qt%{qt}Widgets)
BuildRequires: cmake(Qt%{qt}Gui)
BuildRequires: cmake(Qt%{qt}DBus)
BuildRequires: cmake(Qt%{qt}X11Extras)
BuildRequires: qt%{qt}-rpm-macros
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(x11)

%description
K4Oxygen is a variant of KDE4 Oxygen widget theme, released from KDE
dependencies and supported for Qt4, Qt5, and Qt6. It is based on
oxygen-transparent for KDE4, but currently has some **limitations**:

- no window decorations implementation
- no configuration utility
- translucency in Qt5 version is in experimental stage, and unchecked
  completely in Qt6 version

The theme does read Oxygen and global KDE settings similarly to how
oxygen-gtk does it.

This package contains the Qt%{qt} style.

%files
%license COPYING
%doc README.md
%{_qt5_plugindir}/styles/%{style}.so

%prep
%forgeautosetup -p1

%build
%cmake -DQT_VERSION=%{qt}
%cmake_build

%install
%cmake_install

%changelog
* Sat Oct 19 2024 Hazel Bunny <hazel_bunny@disroot.org> - 0-3
- Initial split package