File breeze-gtk-gold.spec of Package breeze-gtk-gold
#
# spec file for package breeze-gtk-gold
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 1019-2024 LISA GmbH, Bingen, Germany
#
# 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/
#
%bcond_without lang
%define _name breeze-gold
Name: breeze-gtk-gold
Version: 5.27.11
Release: 0
Summary: GTK+ theme matching KDE's Breeze Gold
License: LGPL-2.1-only
Group: System/GUI/KDE
URL: https://projects.kde.org/breeze-gtk
Source: breeze-gtk-%{version}.tar.xz
%if %{with lang}
Source1: breeze-gtk-%{version}.tar.xz.sig
Source2: plasma.keyring
%endif
# PATCH-FIX-UPSTREAM
#Patch0: 0001-Revert-gtk3-gtk4-update-button-style.patch
Patch1000: breeze-gtk-gold.patch
BuildRequires: breeze-gold
BuildRequires: breeze5-style
BuildRequires: cmake >= 3.16
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: kf5-filesystem
BuildRequires: python3-cairo
BuildRequires: sassc
BuildRequires: pkgconfig(Qt5Core)
%description
A GTK+ theme created to match with the Plasma 5 Breeze Gold theme.
%package -n metatheme-%{_name}-common
Summary: GTK+ theme matching KDE's Breeze Gold -- Common Files
Group: System/GUI/KDE
Requires: breeze-gold
Requires: metatheme-breeze-common
# Default cursor theme
Recommends: breeze5-cursors
Suggests: gtk2-metatheme-%{_name}
Suggests: gtk3-metatheme-%{_name}
Provides: %{_name}-gtk = %{version}
Obsoletes: %{_name}-gtk < %{version}
%description -n metatheme-%{_name}-common
A GTK+ theme created to match with the Plasma 5 Breeze Gold theme.
%package -n gtk2-metatheme-%{_name}
Summary: GTK+ theme matching KDE's Breeze Gold -- GTK+ 2 Support
Group: System/GUI/KDE
Requires: metatheme-%{_name}-common = %{version}
Supplements: (breeze4-style and gtk2)
Supplements: (breeze5-style and gtk2)
BuildArch: noarch
%description -n gtk2-metatheme-%{_name}
A GTK+ theme created to match with the Plasma 5 Breeze Gold theme.
%package -n gtk3-metatheme-%{_name}
Summary: GTK+ theme matching KDE's Breeze Gold -- GTK+ 3 Support
Group: System/GUI/KDE
Requires: metatheme-%{_name}-common = %{version}
Supplements: (breeze4-style and gtk2)
Supplements: (breeze5-style and gtk2)
BuildArch: noarch
%description -n gtk3-metatheme-%{_name}
A GTK+ theme created to match with the Plasma 5 Breeze Gold theme.
%prep
%autosetup -n breeze-gtk-%{version} -p1
%build
%cmake_kf5
%cmake_build
%install
%kf5_makeinstall
rm -rf %{buildroot}%{_kf5_sharedir}/kconf_update/
rm -rf %{buildroot}%{_kf5_libdir}/kconf_update_bin/
%fdupes %{buildroot}%{_datadir}/
%files -n metatheme-%{_name}-common
%license LICENSES/*
%doc README.md
%{_datadir}/themes/Breeze*/
%exclude %{_datadir}/themes/Breeze*/gtk-*/
%dir %{_kf5_sharedir}/themes/Breeze*/assets/
%files -n gtk2-metatheme-%{_name}
%{_datadir}/themes/Breeze*/gtk-2.0/
%files -n gtk3-metatheme-%{_name}
%{_datadir}/themes/Breeze*/gtk-3.*/
%changelog