File yaru-colors-theme.spec of Package yaru-colors-theme
#
# spec file for package yaru-colors-theme
#
# Copyright (c) 2020-2021 heipa
#
# 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 http://bugs.opensuse.org/
#
%define git_name master
Name: yaru-colors-theme
Summary: A fork of Ubuntu's Yaru theme - in different colors
Version: 0
Release: 0
License: GPL-3.0
Group: System/GUI/Other
URL: https://github.com/Jannomag/Yaru-Colors
Source: %{git_name}.tar.gz
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildArch: noarch
%description
Yaru-Colors is a theme project to bring different colors to Ubuntu's great Yaru theme.
This package includes Blue, Green, Grey and Teal.
%package -n metatheme-yaru-colors-common
Summary: Common files for the Yaru-Colors Gtk Theme
Group: System/GUI/Other
Recommends: gnome-shell-theme-yaru-colors
Recommends: gtk2-metatheme-yaru-colors
Recommends: gtk3-metatheme-yaru-colors
Recommends: gtk4-metatheme-yaru-colors
Recommends: sound-theme-yaru
Recommends: yaru-colors-icon-theme
%description -n metatheme-yaru-colors-common
Yaru-Colors is a theme project to bring different colors to Ubuntu's great Yaru theme.
This package contains common files for all Yaru-Colors themes.
%package -n gtk2-metatheme-yaru-colors
Summary: GTK+ 2 support for the Yaru-Colors Gtk Theme
Group: System/GUI/Other
Requires: gtk2
Requires: gtk2-engine-murrine
Requires: gtk2-theming-engine-adwaita
Requires: metatheme-yaru-colors-common = %{version}
Supplements: packageand(metatheme-yaru-colors-common:gtk2)
%description -n gtk2-metatheme-yaru-colors
Yaru-Colors is a theme project to bring different colors to Ubuntu's great Yaru theme.
This package contains the GTK2+ themes.
%package -n gtk3-metatheme-yaru-colors
Summary: GTK+ 3 support for the Yaru-Colors Gtk Theme
Group: System/GUI/Other
Requires: gtk3
Requires: metatheme-yaru-colors-common = %{version}
Supplements: packageand(metatheme-yaru-colors-common:gtk3)
%description -n gtk3-metatheme-yaru-colors
Yaru-Colors is a theme project to bring different colors to Ubuntu's great Yaru theme.
This package contains the GTK3+ themes.
%package -n gtk4-metatheme-yaru-colors
Summary: GTK+ 4 support for the Yaru-Colors Gtk Theme
Group: System/GUI/Other
Requires: gtk4
Requires: metatheme-yaru-colors-common = %{version}
Supplements: packageand(metatheme-yaru-colors-common:gtk4)
%description -n gtk4-metatheme-yaru-colors
Yaru-Colors is a theme project to bring different colors to Ubuntu's great Yaru theme.
This package contains the GTK4+ themes.
%package -n gnome-shell-theme-yaru-colors
Summary: Yaru-Colors GNOME Shell themes
Group: System/GUI/Other
Requires: metatheme-yaru-colors-common = %{version}
Requires: gnome-shell-extension-user-theme
Requires: ubuntu-fonts
Supplements: packageand(metatheme-yaru-colors-common:gnome-shell)
%description -n gnome-shell-theme-yaru-colors
Yaru-Colors is a theme project to bring different colors to Ubuntu's great Yaru theme.
This package contains the GNOME Shell themes.
%package -n yaru-colors-icon-theme
Summary: Yaru-Colors icon theme
Group: System/X11/Icons
Requires: hicolor-icon-theme
Requires: humanity-icon-theme
Requires: yaru-icon-theme
%description -n yaru-colors-icon-theme
Yaru-Colors is a theme project to bring different colors to Ubuntu's great Yaru theme.
This package contains the icon themes.
%prep
%setup -q -n Yaru-Colors-master
%build
%install
mkdir -p %{buildroot}%{_datadir}/{icons,themes}
cp -R Themes/{Yaru-Blue,Yaru-Blue-dark,Yaru-Blue-light}/ %{buildroot}%{_datadir}/themes/
cp -R Icons/Yaru-Blue %{buildroot}%{_datadir}/icons/
cp -R Themes/{Yaru-Green,Yaru-Green-dark,Yaru-Green-light}/ %{buildroot}%{_datadir}/themes/
cp -R Icons/Yaru-Green %{buildroot}%{_datadir}/icons/
cp -R Themes/{Yaru-Grey,Yaru-Grey-dark,Yaru-Grey-light}/ %{buildroot}%{_datadir}/themes/
cp -R Icons/Yaru-Grey %{buildroot}%{_datadir}/icons/
cp -R Themes/{Yaru-Teal,Yaru-Teal-dark,Yaru-Teal-light}/ %{buildroot}%{_datadir}/themes/
cp -R Icons/Yaru-Teal %{buildroot}%{_datadir}/icons/
%fdupes %{buildroot}/%{_prefix}
%files -n metatheme-yaru-colors-common
%dir %{_datadir}/themes/{Yaru-Blue,Yaru-Blue-dark,Yaru-Blue-light}
%{_datadir}/themes/Yaru-Blue/index.theme
%{_datadir}/themes/Yaru-Blue-dark/index_dark.theme
%{_datadir}/themes/Yaru-Blue-light/index_light.theme
%exclude %{_datadir}/themes/Yaru-Blue/unity/
%dir %{_datadir}/themes/{Yaru-Green,Yaru-Green-dark,Yaru-Green-light}
%{_datadir}/themes/Yaru-Green/index.theme
%{_datadir}/themes/Yaru-Green-dark/index_dark.theme
%{_datadir}/themes/Yaru-Green-light/index_light.theme
%exclude %{_datadir}/themes/Yaru-Green/unity/
%dir %{_datadir}/themes/{Yaru-Grey,Yaru-Grey-dark,Yaru-Grey-light}
%{_datadir}/themes/Yaru-Grey/index.theme
%{_datadir}/themes/Yaru-Grey-dark/index_dark.theme
%{_datadir}/themes/Yaru-Grey-light/index_light.theme
%exclude %{_datadir}/themes/Yaru-Grey/unity/
%dir %{_datadir}/themes/{Yaru-Teal,Yaru-Teal-dark,Yaru-Teal-light}
%{_datadir}/themes/Yaru-Teal/index.theme
%{_datadir}/themes/Yaru-Teal-dark/index_dark.theme
%{_datadir}/themes/Yaru-Teal-light/index_light.theme
%exclude %{_datadir}/themes/Yaru-Teal/unity/
%files -n gtk2-metatheme-yaru-colors
%{_datadir}/themes/{Yaru-Blue,Yaru-Blue-dark,Yaru-Blue-light}/gtk-2.0
%{_datadir}/themes/{Yaru-Green,Yaru-Green-dark,Yaru-Green-light}/gtk-2.0
%{_datadir}/themes/{Yaru-Grey,Yaru-Grey-dark,Yaru-Grey-light}/gtk-2.0
%{_datadir}/themes/{Yaru-Teal,Yaru-Teal-dark,Yaru-Teal-light}/gtk-2.0
%files -n gtk3-metatheme-yaru-colors
%{_datadir}/themes/{Yaru-Blue,Yaru-Blue-dark,Yaru-Blue-light}/gtk-3.0
%{_datadir}/themes/{Yaru-Blue,Yaru-Blue-dark,Yaru-Blue-light}/gtk-3.20
%{_datadir}/themes/{Yaru-Green,Yaru-Green-dark,Yaru-Green-light}/gtk-3.0
%{_datadir}/themes/{Yaru-Green,Yaru-Green-dark,Yaru-Green-light}/gtk-3.20
%{_datadir}/themes/{Yaru-Grey,Yaru-Grey-dark,Yaru-Grey-light}/gtk-3.0
%{_datadir}/themes/{Yaru-Grey,Yaru-Grey-dark,Yaru-Grey-light}/gtk-3.20
%{_datadir}/themes/{Yaru-Teal,Yaru-Teal-dark,Yaru-Teal-light}/gtk-3.0
%{_datadir}/themes/{Yaru-Teal,Yaru-Teal-dark,Yaru-Teal-light}/gtk-3.20
%files -n gtk4-metatheme-yaru-colors
%{_datadir}/themes/{Yaru-Blue,Yaru-Blue-dark,Yaru-Blue-light}/gtk-4.0
%{_datadir}/themes/{Yaru-Green,Yaru-Green-dark,Yaru-Green-light}/gtk-4.0
%{_datadir}/themes/{Yaru-Grey,Yaru-Grey-dark,Yaru-Grey-light}/gtk-4.0
%{_datadir}/themes/{Yaru-Teal,Yaru-Teal-dark,Yaru-Teal-light}/gtk-4.0
%files -n gnome-shell-theme-yaru-colors
%{_datadir}/themes/{Yaru-Blue,Yaru-Blue-dark,Yaru-Blue-light}/gnome-shell
%{_datadir}/themes/{Yaru-Green,Yaru-Green-dark,Yaru-Green-light}/gnome-shell
%{_datadir}/themes/{Yaru-Grey,Yaru-Grey-dark,Yaru-Grey-light}/gnome-shell
%{_datadir}/themes/{Yaru-Teal,Yaru-Teal-dark,Yaru-Teal-light}/gnome-shell
%files -n yaru-colors-icon-theme
%{_datadir}/icons/Yaru-Blue
%{_datadir}/icons/Yaru-Green
%{_datadir}/icons/Yaru-Grey
%{_datadir}/icons/Yaru-Teal
%changelog