%global debug_package %{nil} %global toolchain clang %global forgeurl https://github.com/ubuntu/yaru %global tag %{version}-0ubuntu1 %global _license COPYING COPYING.LGPL-2.1 COPYING.LGPL-3.0 LICENSE_CCBYSA Name: yaru-theme Version: 24.10.1 %forgemeta Release: 1%{?dist} Summary: Ubuntu community theme "yaru" License: GPLv3 and CC-BY-SA URL: https://community.ubuntu.com/c/desktop/theme-refresh Source0: %{forgeurl}/archive/refs/tags/%{tag}.tar.gz BuildArch: noarch BuildRequires: clang BuildRequires: inkscape BuildRequires: meson >= 0.60 BuildRequires: pkgconfig(appstream-glib) BuildRequires: sassc BuildRequires: xorg-x11-server-Xvfb Requires: gnome-shell-theme-yaru = %{version}-%{release} Requires: yaru-gtk2-theme = %{version}-%{release} Requires: yaru-gtk3-theme = %{version}-%{release} Requires: yaru-gtk4-theme = %{version}-%{release} Requires: yaru-gtksourceview-theme = %{version}-%{release} Requires: yaru-icon-theme = %{version}-%{release} Requires: yaru-sound-theme = %{version}-%{release} %global _description %{expand: Yaru is the default theme for Ubuntu, backed by the community. It contains: * a GNOME Shell theme based on the upstream GNOME shell theme * a light and dark GTK theme (gtk2 and gtk3) based on the upstream Adwaita Gtk theme * an icon & cursor theme, derived from the Unity8 Suru icons and Suru icon theme * a sound theme, combining sounds from the WoodenBeaver and Touch-Remix sound themes.} %description %{_description} This is the main yaru-theme metapackage %package -n gnome-shell-theme-yaru Summary: Yaru GNOME Shell Theme Requires: gnome-shell-extension-user-theme Recommends: yaru-gtk3-theme Recommends: yaru-icon-theme Suggests: yaru-sound-theme Suggests: yaru-theme %description -n gnome-shell-theme-yaru %{_description} This package contains GNOME Shell Theme. %package -n yaru-gtk2-theme Summary: GTK+ 2 support for the Yaru GTK Theme Requires: adwaita-gtk2-theme Requires: gtk-murrine-engine Recommends: yaru-gtk3-theme %description -n yaru-gtk2-theme %{_description} This package contains GTK+ 2 theme. %package -n yaru-gtk3-theme Summary: GTK+ 3 support for the Yaru GTK Theme Requires: gtk3 Recommends: yaru-gtk2-theme Recommends: yaru-gtk4-theme %description -n yaru-gtk3-theme %{_description} This package contains GTK+ 3 theme. %package -n yaru-gtk4-theme Summary: GTK+ 3 support for the Yaru GTK Theme Requires: gtk4 Recommends: yaru-gtk2-theme Recommends: yaru-gtk3-theme %description -n yaru-gtk4-theme %{_description} This package contains GTK 4 theme. %package -n yaru-icon-theme Summary: Yaru icon theme License: CC-BY-SA Requires: hicolor-icon-theme Suggests: gnome-shell-theme-yaru Suggests: yaru-gtk3-theme Suggests: yaru-sound-theme %description -n yaru-icon-theme %{_description} This package contains the icon theme. %package -n yaru-sound-theme Summary: Yaru sound theme License: CC-BY-SA %description -n yaru-sound-theme %{_description} This package contains the sound theme following the XDG theming specification. %package -n yaru-gtksourceview-theme Summary: Yaru GtkSourceView theme License: CC-BY-SA %description -n yaru-gtksourceview-theme %{_description} This package contains the GtkSourceView theme. %prep %forgeautosetup -p1 %build %meson %meson_build %install %meson_install rm %{buildroot}%{_datadir}/glib-2.0/schemas/99_Yaru.gschema.override rm %{buildroot}%{_datadir}/xsessions/Yaru-xorg.desktop rm %{buildroot}%{_datadir}/wayland-sessions/Yaru.desktop rm %{buildroot}%{_datadir}/gnome-shell/extensions/ubuntu-dock@ubuntu.com/yaru.css touch %{buildroot}%{_datadir}/icons/Yaru/icon-theme.cache %transfiletriggerin -- %{_datadir}/icons/Yaru gtk-update-icon-cache --force %{_datadir}/icons/Yaru &>/dev/null || : # Workaround for replace directory with symlink which was added in Yaru # * https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/#_scriptlet_to_replace_a_directory %pretrans -p -n gnome-shell-theme-yaru path = "%{_datadir}/themes/Yaru-dark/gnome-shell" st = posix.stat(path) if st and st.type == "directory" then status = os.rename(path, path .. ".rpmmoved") if not status then suffix = 0 while not status do suffix = suffix + 1 status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix) end os.rename(path, path .. ".rpmmoved") end end %files %license %{_license} %doc AUTHORS CONTRIBUTING.md README.md %{_datadir}/themes/Yaru*/metacity-1/ %files -n gnome-shell-theme-yaru %license %{_license} %{_datadir}/gnome-shell/modes/yaru.json %{_datadir}/gnome-shell/theme/Yaru*/ %{_datadir}/themes/Yaru-*/index.theme %{_datadir}/themes/Yaru-blue-dark/gnome-shell %{_datadir}/themes/Yaru-blue/gnome-shell %{_datadir}/themes/Yaru-dark/gnome-shell %{_datadir}/themes/Yaru-magenta-dark/gnome-shell %{_datadir}/themes/Yaru-magenta/gnome-shell %{_datadir}/themes/Yaru-olive-dark/gnome-shell %{_datadir}/themes/Yaru-olive/gnome-shell %{_datadir}/themes/Yaru-prussiangreen-dark/gnome-shell %{_datadir}/themes/Yaru-prussiangreen/gnome-shell %{_datadir}/themes/Yaru-purple-dark/gnome-shell %{_datadir}/themes/Yaru-purple/gnome-shell %{_datadir}/themes/Yaru-red-dark/gnome-shell %{_datadir}/themes/Yaru-red/gnome-shell %{_datadir}/themes/Yaru-sage-dark/gnome-shell %{_datadir}/themes/Yaru-sage/gnome-shell %{_datadir}/themes/Yaru-wartybrown-dark/gnome-shell %{_datadir}/themes/Yaru-wartybrown/gnome-shell %{_datadir}/themes/Yaru-yellow-dark/gnome-shell %{_datadir}/themes/Yaru-yellow/gnome-shell %{_datadir}/themes/Yaru/gnome-shell %{_datadir}/themes/Yaru/index.theme %dir %{_datadir}/themes/Yaru %dir %{_datadir}/themes/Yaru-blue %dir %{_datadir}/themes/Yaru-blue-dark %dir %{_datadir}/themes/Yaru-dark %dir %{_datadir}/themes/Yaru-magenta %dir %{_datadir}/themes/Yaru-magenta-dark %dir %{_datadir}/themes/Yaru-olive %dir %{_datadir}/themes/Yaru-olive-dark %dir %{_datadir}/themes/Yaru-prussiangreen %dir %{_datadir}/themes/Yaru-prussiangreen-dark %dir %{_datadir}/themes/Yaru-purple %dir %{_datadir}/themes/Yaru-purple-dark %dir %{_datadir}/themes/Yaru-red %dir %{_datadir}/themes/Yaru-red-dark %dir %{_datadir}/themes/Yaru-sage %dir %{_datadir}/themes/Yaru-sage-dark %dir %{_datadir}/themes/Yaru-wartybrown %dir %{_datadir}/themes/Yaru-wartybrown-dark %dir %{_datadir}/themes/Yaru-yellow %dir %{_datadir}/themes/Yaru-yellow-dark %ghost %{_datadir}/themes/Yaru-dark/gnome-shell.rpmmoved/ %files -n yaru-gtk2-theme %license %{_license} %{_datadir}/themes/Yaru-*/gtk-2.0/ %{_datadir}/themes/Yaru/gtk-2.0/ %dir %{_datadir}/themes/Yaru %dir %{_datadir}/themes/Yaru-dark %files -n yaru-gtk3-theme %license %{_license} %{_datadir}/themes/Yaru-*/gtk-3.*/ %{_datadir}/themes/Yaru/gtk-3.*/ %dir %{_datadir}/themes/Yaru %dir %{_datadir}/themes/Yaru-dark %files -n yaru-gtk4-theme %license %{_license} %{_datadir}/themes/Yaru-*/gtk-4.*/ %{_datadir}/themes/Yaru/gtk-4.*/ %dir %{_datadir}/themes/Yaru %dir %{_datadir}/themes/Yaru-dark %files -n yaru-icon-theme %license %{_license} %{_datadir}/icons/Yaru*/ %ghost %{_datadir}/icons/Yaru/icon-theme.cache %files -n yaru-sound-theme %license %{_license} %{_datadir}/sounds/Yaru/ %files -n yaru-gtksourceview-theme %license %{_license} %{_datadir}/gtksourceview-*/styles/Yaru*.xml %{_datadir}/libgedit-gtksourceview-300/styles/Yaru*.xml %changelog * Thu Aug 22 2024 David Andres Ramirez Salomon - 24.10.1-1 - Update to 24.10.1 build: Use 0ubuntu1 tarball * Fri Aug 02 2024 David Andres Ramirez Salomon - 24.04.3-2 - Organized SPEC for future builds * Tue Jul 23 2024 David Andres Ramirez Salomon - 24.04.3-1 - Update to 24.04.3 build: Use 0ubuntu1 tarball * Sat Jul 20 2024 Fedora Release Engineering - 24.04.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Apr 24 2024 David Ramirez Salomon - 24.04.2-1 - Update to 24.04.2 build: Use 0ubuntu1 tarball * Fri Apr 19 2024 Artem Polishchuk - 24.04.2-1 - chore: Update to 24.04.2 (rh#2276089) * Thu Apr 18 2024 Artem Polishchuk - 24.04.1-1 - chore: Update to 24.04.1 (rh#2275907) * Fri Apr 12 2024 Artem Polishchuk - 24.04.0-2 - license: Convert to SPDX * Fri Apr 12 2024 Artem Polishchuk - 24.04.0-1 - chore: Update to 24.04.0 (rh#2271153) * Sat Jan 27 2024 Fedora Release Engineering - 23.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 09 2023 Artem Polishchuk - 23.10.0-4 - build: Use 0ubuntu2 tarball * Wed Oct 18 2023 Artem Polishchuk - 23.10.0-3 - build: Add Packit config * Wed Oct 18 2023 Artem Polishchuk - 23.10.0-2 - build: Use forge macros * Tue Aug 29 2023 Artem Polishchuk - 23.10.0-1 - chore: Update to 23.10.0 (rh#2235553) * Sat Jul 22 2023 Fedora Release Engineering - 23.04.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon May 15 2023 Artem Polishchuk - 23.04.4-1 - chore: Update to 23.04.4 * Wed Mar 29 2023 Artem Polishchuk - 23.04.2-2 - build: Drop humanity-icon-theme dep * Tue Mar 28 2023 Artem Polishchuk - 23.04.2-1 - chore: Update to 23.04.2 * Sat Mar 18 2023 Artem Polishchuk - 23.04.1-1 - chore: Update to 23.04.1 * Sat Jan 21 2023 Fedora Release Engineering - 22.10.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Sep 24 2022 Artem Polishchuk - 22.10.3-1 - chore(update): 22.10.3 * Sat Sep 17 2022 Artem Polishchuk - 22.10.2-2 - build: Update description * Sat Sep 17 2022 Artem Polishchuk - 22.10.2-1 - chore(update): 22.10.2 * Thu Aug 25 2022 Artem Polishchuk - 22.10.1-1 - chore(update): 22.10.1 * Sat Jul 23 2022 Fedora Release Engineering - 22.04.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Apr 25 2022 Artem Polishchuk - 22.04.4-2 - build: Add Requires gnome-shell-extension-user-theme * Mon Apr 25 2022 Artem Polishchuk - 22.04.4-1 - chore(update): 22.04.4 * Fri Feb 25 2022 Artem Polishchuk - 22.04.1-1 - chore(update): 22.04.1 * Sat Jan 22 2022 Fedora Release Engineering - 21.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Sep 27 2021 Frantisek Zatloukal - 21.10.2-1 - build(update): 21.10.2 * Fri Jul 23 2021 Fedora Release Engineering - 21.04.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Apr 08 2021 Artem Polishchuk - 21.04.1-2 - build: Fixes * Tue Apr 06 2021 Artem Polishchuk - 21.04.1-1 - build(update): 21.04.1 * Thu Jan 28 2021 Fedora Release Engineering - 20.10.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Oct 11 2020 Artem Polishchuk - 20.10.6.1-1 - build(update): 20.10.6.1 * Tue Oct 6 19:52:37 EEST 2020 Artem Polishchuk - 20.10.6-1 - build(update): 20.10.6 * Thu Sep 24 2020 Artem Polishchuk - 20.10.4-1 - Update to 20.10.4 * Fri Sep 11 2020 Artem Polishchuk - 20.10.3-1 - Update to 20.10.3 - Don't build yaru-unity-theme * Wed Jul 29 2020 Fedora Release Engineering - 20.04.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Apr 21 2020 Artem Polishchuk - 20.04.6-3 - Workaround for replace directory with symlink which was added in Yaru | Thanks for tip @zawertun * Sat Apr 18 2020 Artem Polishchuk - 20.04.6-2 - Add new 'yaru-unity-theme' subpackage * Fri Apr 17 2020 Artem Polishchuk - 20.04.6-1 - Update to 20.04.6 * Thu Apr 16 2020 Artem Polishchuk - 20.04.5-1 - Update to 20.04.5 * Tue Mar 24 2020 Artem Polishchuk - 20.04.4-1 - Update to 20.04.4 * Fri Feb 07 2020 Artem Polishchuk - 20.04.1-1 - Update to 20.04.1 * Fri Jan 31 2020 Fedora Release Engineering - 19.10.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 08 2020 Artem Polishchuk - 19.10.5-1 - Update to 19.10.5 * Thu Nov 21 2019 Artem Polishchuk - 19.10.4-1.20191118git1937b28 - Update to latest git snapshot which contain broken gnome-shell theme fix * Fri Sep 27 2019 Artem Polishchuk - 19.10.3-1 - Update to 19.10.3 - Add new light variant - Drop fdupes * Tue Sep 10 2019 Artem Polishchuk - 19.10.1-2 - Update to 19.10.1 * Sat Jul 27 2019 Fedora Release Engineering - 19.04.1-3.20190425git0ddb244 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Apr 26 2019 Artem Polishchuk - 19.04.1-2.20190425git0ddb244 - Adapt for Fedora * Fri Jan 18 10:30:30 UTC 2019 - dead_mozay@opensuse.org - Update to version 19.04+20190117.f36189f4 * Wed Jan 02 11:51:35 UTC 2019 - dead_mozay@opensuse.org - Update to version 18.10.7+20190101.1db0abb5