# Package must be arch specific because there are deps on arm that are missing %global codename brainhertz %global debug_package %{nil} %global with_xfce 0 %global with_kde 1 %global with_extras 1 Name: trilliumos-logos Version: 100.4 Release: 99%{?dist} Summary: Rocky Linux related icons and pictures Group: System Environment/Base URL: https://github.com/rocky-linux/rocky-logos #Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz # Extras are part of the main tarball at the moment #if %{with_extras} #Source1: %{name}-extras.tar.xz #endif License: Licensed only for approved usage, see COPYING for details. Obsoletes: %{name} < 90.4-1 Obsoletes: redhat-logos < 90.1-1 Provides: system-logos = %{version}-%{release} Provides: redhat-logos = %{version}-%{release} Conflicts: anaconda-images <= 10 Conflicts: redhat-artwork <= 5.0.5 # No mixing logos Conflicts: centos-logos Conflicts: almalinux-logos Conflicts: oracle-logos # All build requires BuildRequires: hardlink BuildRequires: make # All requires Requires(post): coreutils %description Licensed only for approved usage, see COPYING for details. %package httpd Summary: Rocky Linux related icons and pictures used by httpd Provides: system-logos-httpd = %{version}-%{release} Provides: redhat-logos-httpd = %{version}-%{release} Provides: system-logos(httpd-logo-ng) BuildArch: noarch %description httpd Licensed only for approved usage, see COPYING for details. %package ipa Summary: Rocky Linux related icons and pictures used by FreeIPA Provides: system-logos-ipa = %{version}-%{release} Provides: redhat-logos-ipa = %{version}-%{release} BuildArch: noarch %description ipa Licensed only for approved usage, see COPYING for details. %package -n rocky-backgrounds Summary: Rocky Linux related desktop backgrounds BuildArch: noarch Obsoletes: redhat-logos < 80.1-2 Provides: system-backgrounds = %{version}-%{release} Requires: redhat-logos = %{version}-%{release} %description -n rocky-backgrounds Licensed only for approved usage, see COPYING for details. %if %{with_xfce} %package -n rocky-backgrounds-xfce Summary: Rocky Linux related desktop backgrounds for XFCE BuildArch: noarch Requires: system-backgrounds = %{version}-%{release} Recommends: xfdesktop %description -n rocky-backgrounds-xfce Backgrounds for XFCE support. Licensed only for approved usage, see COPYING for details. %endif %if %{with_kde} %package -n rocky-backgrounds-kde Summary: Rocky Linux related desktop backgrounds for KDE BuildArch: noarch Requires: system-backgrounds = %{version}-%{release} Recommends: kde-filesystem %description -n rocky-backgrounds-kde Backgrounds for KDE support. Licensed only for approved usage, see COPYING for details. %endif %if %{with_extras} %package -n rocky-backgrounds-extras Summary: Rocky Linux related extra desktop backgrounds BuildArch: noarch Requires: system-backgrounds = %{version}-%{release} %description -n rocky-backgrounds-extras Extra backgrounds for Rocky Linux. May contain backgrounds that were not selected to be included at release or they may come from a previous Rocky Linux release. Extra backgrounds can be submitted for potential addition to this package at the appropriate git source. %endif %prep %setup -q %build %install ################################################################################ # Backgrounds mkdir -p $RPM_BUILD_ROOT%{_datadir}/backgrounds/ for x in backgrounds/*.png backgrounds/*.jpg backgrounds/rocky-*.xml ; do install -p -m 644 $x $RPM_BUILD_ROOT%{_datadir}/backgrounds/ done %if %{with_xfce} # XFCE Backgrounds mkdir -p $RPM_BUILD_ROOT%{_datadir}/backgrounds/images # Link a few defaults ln -s /usr/share/backgrounds/rocky-default-9-abstract-1-day.png \ $RPM_BUILD_ROOT%{_datadir}/backgrounds/images/rocky-default-9-abstract-1-day.png ln -s /usr/share/backgrounds/rocky-default-9-bigsquare-teal-day.png \ $RPM_BUILD_ROOT%{_datadir}/backgrounds/images/rocky-default-9-bigsquare-teal-day.png %endif # There will not be special handling for KDE installations. %if %{with_extras} for x in extras/*.png extras/*.jpg extras/rocky-extras-*.xml ; do install -p -m 644 $x $RPM_BUILD_ROOT%{_datadir}/backgrounds/ done %endif %if %{with_kde} # KDE Backgrounds declare -a bgthemepng=("abstract-1") declare -a bgthemejpg=("arizona" "quartz-forest") declare -a bgsizepng=("1024x600.png" "1024x768.png" "1152x720.png" "1152x864.png" "1200x900.png" "1280x1024.png" "1280x720.png" "1280x768.png" "1280x800.png" "1280x960.png" "1366x768.png" "1440x1080.png" "1440x900.png" "1600x1200.png" "1600x1280.png" "1680x1050.png" "1920x1080.png" "1920x1200.png" "1920x1280.png" "1920x1440.png" "2048x1536.png" "2160x1440.png" "2304x1440.png" "2560x1440.png" "2560x1600.png" "2960x1440.png" "3000x2000.png" "3200x1800.png" "3440x1440.png" "3840x2160.png" "640x480.png" "800x480.png" "800x600.png") declare -a bgsizejpg=("1024x600.jpg" "1024x768.jpg" "1152x720.jpg" "1152x864.jpg" "1200x900.jpg" "1280x1024.jpg" "1280x720.jpg" "1280x768.jpg" "1280x800.jpg" "1280x960.jpg" "1366x768.jpg" "1440x1080.jpg" "1440x900.jpg" "1600x1200.jpg" "1600x1280.jpg" "1680x1050.jpg" "1920x1080.jpg" "1920x1200.jpg" "1920x1280.jpg" "1920x1440.jpg" "2048x1536.jpg" "2160x1440.jpg" "2304x1440.jpg" "2560x1440.jpg" "2560x1600.jpg" "2960x1440.jpg" "3000x2000.jpg" "3200x1800.jpg" "3440x1440.jpg" "3840x2160.jpg" "640x480.jpg" "800x480.jpg" "800x600.jpg") mkdir -p $RPM_BUILD_ROOT%{_datadir}/wallpapers for x in "${bgthemepng[@]}"; do capiname="${x^}" longname="${capiname//-/ }" mkdir -p $RPM_BUILD_ROOT%{_datadir}/wallpapers/rocky-${x}/contents/images{,_dark} for size in "${bgsizepng[@]}"; do ln -sf %{_datadir}/backgrounds/rocky-default-10-${x}-day.png $RPM_BUILD_ROOT%{_datadir}/wallpapers/rocky-${x}/contents/images/$size ln -sf %{_datadir}/backgrounds/rocky-default-10-${x}-night.png $RPM_BUILD_ROOT%{_datadir}/wallpapers/rocky-${x}/contents/images_dark/$size done cat > $RPM_BUILD_ROOT%{_datadir}/wallpapers/rocky-${x}/metadata.json < $RPM_BUILD_ROOT%{_datadir}/wallpapers/rocky-${x}/metadata.json </dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %license COPYING %config(noreplace) %{_sysconfdir}/favicon.png %{_datadir}/glib-2.0/schemas/*.override %{_datadir}/firstboot/themes/fedora-%{codename}/ %{_datadir}/plymouth/themes/charge/ %{_datadir}/plymouth/themes/spinner/ %{_datadir}/pixmaps/* %exclude %{_datadir}/pixmaps/poweredby.png %{_datadir}/anaconda/pixmaps/* %ifarch x86_64 i686 %{_datadir}/anaconda/boot/splash.lss %endif %{_datadir}/anaconda/boot/syslinux-splash.png %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/places/* %{_datadir}/%{name}/ %{_datadir}/redhat-logos %{_datadir}/fedora-logos # The below directories are multi-owned, that way we don't pull in # excess dependencies. %dir %{_datadir}/backgrounds %dir %{_datadir}/icons/hicolor/ %dir %{_datadir}/icons/hicolor/16x16/ %dir %{_datadir}/icons/hicolor/16x16/apps/ %dir %{_datadir}/icons/hicolor/22x22/ %dir %{_datadir}/icons/hicolor/22x22/apps/ %dir %{_datadir}/icons/hicolor/24x24/ %dir %{_datadir}/icons/hicolor/24x24/apps/ %dir %{_datadir}/icons/hicolor/32x32/ %dir %{_datadir}/icons/hicolor/32x32/apps/ %dir %{_datadir}/icons/hicolor/36x36/ %dir %{_datadir}/icons/hicolor/36x36/apps/ %dir %{_datadir}/icons/hicolor/48x48/ %dir %{_datadir}/icons/hicolor/48x48/apps/ %dir %{_datadir}/icons/hicolor/96x96/ %dir %{_datadir}/icons/hicolor/96x96/apps/ %dir %{_datadir}/icons/hicolor/256x256/ %dir %{_datadir}/icons/hicolor/256x256/apps/ %dir %{_datadir}/icons/hicolor/scalable/ %dir %{_datadir}/icons/hicolor/scalable/apps/ %dir %{_datadir}/icons/hicolor/scalable/places/ %dir %{_datadir}/icons/hicolor/symbolic/ %dir %{_datadir}/icons/hicolor/symbolic/apps/ %dir %{_datadir}/anaconda %dir %{_datadir}/anaconda/boot/ %dir %{_datadir}/anaconda/pixmaps %dir %{_datadir}/firstboot/ %dir %{_datadir}/firstboot/themes/ %dir %{_datadir}/plymouth/ %dir %{_datadir}/plymouth/themes/ %files httpd %license COPYING %{_datadir}/pixmaps/poweredby.png %{_datadir}/testpage %{_datadir}/testpage/index.html %files ipa %license COPYING %{_datadir}/ipa/ui/images/* # The below directories are multi-owned, that way we don't pull in # excess dependencies. %dir %{_datadir}/ipa %dir %{_datadir}/ipa/ui %dir %{_datadir}/ipa/ui/images %files -n rocky-backgrounds %license COPYING Attribution %{_datadir}/backgrounds/* %exclude %{_datadir}/backgrounds/rocky-extras-* %{_datadir}/gnome-background-properties/desktop-backgrounds-default.xml %if %{with_xfce} %exclude %{_datadir}/backgrounds/images/* %exclude %{_datadir}/backgrounds/images %files -n rocky-backgrounds-xfce %license COPYING #%{_datadir}/backgrounds/default.png %{_datadir}/backgrounds/images/* %endif %if %{with_kde} %license COPYING %files -n rocky-backgrounds-kde %{_datadir}/wallpapers/rocky-* %endif %if %{with_extras} %license COPYING %files -n rocky-backgrounds-extras %{_datadir}/backgrounds/rocky-extras-* %{_datadir}/gnome-background-properties/desktop-backgrounds-extras.xml %endif %changelog * Tue Aug 26 2025 Louis Abel - 100.4-7 - Enable extras * Wed May 28 2025 Louis Abel - 100.3-6 - Enable KDE backgrounds - Use metadata.json instead * Mon May 26 2025 Louis Abel - 100.3-3 - Add a symlink for fedora-logos * Wed May 14 2025 Louis Abel - 100.3-2 - Add make as a BR * Fri May 09 2025 Louis Abel - 100.3-1 - Bump logos version * Fri Apr 18 2025 Louis Abel - 100.2-4 - Add watermark for spinner - Add fedora-logo.ico * Tue Nov 12 2024 Louis Abel - 100.2-2 - Rebuild to address build system issue * Sun Sep 29 2024 Louis Abel - 100.2-1 - Install bootloader logos for m1n1 * Sat Jun 17 2023 Louis Abel - 100.1-1 - Init for Rocky Linux 10 (Red Quartz)