Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add k4oxygen #1083

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions anda/themes/k4oxygen/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project "pkg" {
arches = ["x86_64", "aarch64"]
rpm {
spec = "klassy.spec"
hazel-bunny marked this conversation as resolved.
Show resolved Hide resolved
}
}
162 changes: 162 additions & 0 deletions anda/themes/k4oxygen/k4oxygen.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
%global style k4oxygen
%global dev 10110111

%global forgeurl https://github.com/%{dev}/%{style}
%global commit b0291eff019d4ccd498970d0c8323e49e74a2fec
%global date 20240329
%forgemeta

Name: %{style}
Version: 0
madonuko marked this conversation as resolved.
Show resolved Hide resolved
Release: %autorelease
Summary: Variant of KDE4 Oxygen widget theme
License: LGPL-2.1
URL: %{forgeurl}
Source: %{forgesource}
Patch: qt6x11_wayland.patch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Patch: qt6x11_wayland.patch
Patch0: qt6x11_wayland.patch


BuildRequires: cmake
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(x11)

#Qt6
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6DBus)
BuildRequires: qt6-qtbase-private-devel
BuildRequires: qt6-rpm-macros

# Qt5
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5X11Extras)
BuildRequires: qt5-rpm-macros

# Qt4
BuildRequires: pkgconfig(Qt)

Requires: %{style}-common
Requires: (%{style}-qt4 if qt)
Requires: (%{style}-qt5 if qt5-qtbase)
Requires: (%{style}-qt6 if qt6-qtbase)

%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.

%files
#nothing

#-------------------------------------------------------------------------------

%package common
Summary: Common files for k4oxygen widget style
Enhances: %{style}

%description common
%{summary}

%files common
%license COPYING
%doc README.md

#-----------------------------------------------------------------------------

%package qt4
Summary: Variant of KDE4 Oxygen widget theme for Qt4
Requires: %{style}-common
Enhances: %{style}

%description qt4
K4Oxygen is a variant of KDE4 Oxygen widget theme, released from KDE
dependencies and supported for Qt4, Qt5, and Qt6.

This package contains the Qt4 style.

%files qt4
%{_qt4_plugindir}/styles/%{style}.so

#-----------------------------------------------------------------------------

%package qt5
Summary: Variant of KDE4 Oxygen widget theme for Qt5
Requires: %{style}-common
Enhances: %{style}

%description qt5
K4Oxygen is a variant of KDE4 Oxygen widget theme, released from KDE
dependencies and supported for Qt4, Qt5, and Qt6.

This package contains the Qt5 style.

%files qt5
%{_qt5_plugindir}/styles/%{style}.so

#-----------------------------------------------------------------------------

%package qt6
Summary: Variant of KDE4 Oxygen widget theme for Qt6
Requires: %{style}-common
Enhances: %{style}

%description qt6
K4Oxygen is a variant of KDE4 Oxygen widget theme, released from KDE
dependencies and supported for Qt4, Qt5, and Qt6.

This package contains the Qt6 style.

%files qt6
%{_qt6_plugindir}/styles/%{style}.so

#-----------------------------------------------------------------------------

%prep
%forgesetup

%build
# Build for Qt 4
%global _vpath_builddir %{_target_platform}-qt4
%cmake -DQT_VERSION=4 -B %{_vpath_builddir}
%cmake_build
%undefine _vpath_builddir

# Build for Qt 5
%global _vpath_builddir %{_target_platform}-qt5
%cmake -DQT_VERSION=5 -B %{_vpath_builddir}
%cmake_build
%undefine _vpath_builddir

# Build for Qt 6
/usr/bin/patch -p1 -s < %{_sourcedir}/qt6x11_wayland.patch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/usr/bin/patch -p1 -s < %{_sourcedir}/qt6x11_wayland.patch
/usr/bin/patch -p1 -s < %PATCH0

%global _vpath_builddir %{_target_platform}-qt6
%cmake -DQT_VERSION=6 -B %{_vpath_builddir}
%cmake_build
%undefine _vpath_builddir

%install
%global _vpath_builddir %{_target_platform}-qt4
%cmake_install
%undefine _vpath_builddir

%global _vpath_builddir %{_target_platform}-qt5
%cmake_install
%undefine _vpath_builddir

%global _vpath_builddir %{_target_platform}-qt6
%cmake_install
%undefine _vpath_builddir
hazel-bunny marked this conversation as resolved.
Show resolved Hide resolved

%changelog
%autochangelog
Loading