# These require customization for each new major version %bcond redhat 1 %bcond rocky 1 Name: epel-backgrounds Version: 100.0 Release: %autorelease Summary: EPEL default desktop background License: CC-BY-SA-4.0 URL: https://docs.fedoraproject.org/en-US/epel/ BuildArch: noarch %description This package contains symlinks to Enterprise Linux default desktop backgrounds for other desktops in EPEL. %package kde-almalinux Summary: AlmaLinux default wallpaper for KDE Provides: %{name}-kde = %{version}-%{release} Supplements: (plasma-workspace and (almalinux-release or almalinux-kitten-release)) Requires: almalinux-backgrounds Requires: kde-filesystem Conflicts: %{name}-kde RemovePathPostfixes: .almalinux %description kde-almalinux This package contains symlinks to the AlmaLinux default desktop backgrounds for the KDE Plasma desktop. %package kde-centos Summary: CentOS default wallpaper for KDE Provides: %{name}-kde = %{version}-%{release} Supplements: (plasma-workspace and centos-stream-release) Requires: centos-backgrounds Requires: kde-filesystem Conflicts: %{name}-kde RemovePathPostfixes: .centos %description kde-centos This package contains symlinks to the CentOS default desktop backgrounds for the KDE Plasma desktop. %if %{with redhat} %package kde-redhat Summary: RHEL default wallpaper for KDE Provides: %{name}-kde = %{version}-%{release} Supplements: (plasma-workspace and redhat-backgrounds) Requires: redhat-backgrounds Requires: kde-filesystem Conflicts: %{name}-kde RemovePathPostfixes: .redhat %description kde-redhat This package contains symlinks to the RHEL default desktop backgrounds for the KDE Plasma desktop. %endif %if %{with rocky} %package kde-rocky Summary: Rocky Linux default wallpaper for KDE Provides: %{name}-kde = %{version}-%{release} Supplements: (plasma-workspace and rocky-release) Requires: rocky-backgrounds Requires: kde-filesystem Conflicts: %{name}-kde RemovePathPostfixes: .rocky %description kde-rocky This package contains symlinks to the Rocky Linux default desktop backgrounds for the KDE Plasma desktop. %endif %prep %build %install # from fNN-backgrounds kde_bg() { name=$1 id=${name// /} author=$2 light=$3 dark=$4 RESOLUTIONS=( 1280x1024 640x480 800x600 1024x768 1152x864 1200x900 \ 1280x960 1440x1080 1600x1200 1600x1280 1920x1440 2048x1536 \ 800x480 1024x600 1152x720 1280x720 1280x768 1280x800 \ 1366x768 1440x900 1680x1050 1920x1080 1920x1200 1920x1280 \ 2160x1440 2304x1440 2560x1440 2560x1600 2960x1440 \ 3000x2000 3200x1800 3440x1440 3840x2160 ) KDE_BG_DIR=%{_datadir}/wallpapers/${id} mkdir -p %{buildroot}${KDE_BG_DIR}/contents/images mkdir -p %{buildroot}${KDE_BG_DIR}/contents/images_dark for res in ${RESOLUTIONS[*]}; do \ ln -s /usr/share/backgrounds/${light} \ %{buildroot}${KDE_BG_DIR}/contents/images/${res}.${light##*.} ln -s /usr/share/backgrounds/${dark} \ %{buildroot}${KDE_BG_DIR}/contents/images_dark/${res}.${dark##*.} done cat > %{buildroot}${KDE_BG_DIR}/metadata.json <<_EOF { "KPlugin": { "Authors": [ { "Email": "kde@lists.fedoraproject.org", "Name": "${author}" } ], "Id": "${id}", "Name": "${name}" } } _EOF } # AlmaLinux kde_bg "AlmaLinux Default" "AlmaLinux" almalinux-{day,night}.png ln -s AlmaLinuxDefault %{buildroot}%{_datadir}/wallpapers/EL.almalinux # CentOS kde_bg "CentOS Default" "CentOS Project" centos-{day,night}.png ln -s CentOSDefault %{buildroot}%{_datadir}/wallpapers/EL.centos %if %{with redhat} # RHEL kde_bg "RHEL10 3D" "Red Hat" rhel10-3D-{l,d}.png kde_bg "RHEL10 Blobs" "Red Hat" rhel10-blobs-{l,d}.jpg kde_bg "RHEL10 Blocks" "Red Hat" rhel10-blocks-{l,d}.jpg kde_bg "RHEL10 Branded Rectangles" "Red Hat" rhel10-brandrects-{l,d}.jpg kde_bg "RHEL10 Isometric" "Red Hat" rhel10-iso-{l,d}.png kde_bg "RHEL10 Lens Distort" "Red Hat" rhel10-lensdistort-{l,d}.jpg kde_bg "RHEL10 Pills" "Red Hat" rhel10-pills-{l,d}.jpg kde_bg "RHEL10 Shards" "Red Hat" rhel10-shards-{l,d}.jpg kde_bg "RHEL10 Swoosh" "Red Hat" rhel10-swoosh-{l,d}.jpg ln -s RHEL10Isometric %{buildroot}%{_datadir}/wallpapers/EL.redhat %endif %if %{with rocky} # Rocky kde_bg "Rocky 10 Abstract 1" "Rocky Linux" rocky-default-10-abstract-1-{day,night}.png kde_bg "Rocky 10 Abstract 2" "Rocky Linux" rocky-default-10-abstract-2{,}.png kde_bg "Rocky 10 Abstract 3" "Rocky Linux" rocky-default-10-abstract-3{,}.png kde_bg "Rocky 10 Abstract 4" "Rocky Linux" rocky-default-10-abstract-4{,}.png kde_bg "Rocky 10 Abstract 5" "Rocky Linux" rocky-default-10-abstract-5{,}.png kde_bg "Rocky 10 Arizona Sun" "Rocky Linux" rocky-default-10-arizona-{sunrise,sunset}.jpg kde_bg "Rocky 10 Gemstone Skies" "Rocky Linux" rocky-default-10-gemstone-skies-{day,night}.png kde_bg "Rocky 10 Quartz Forest" "Rocky Linux" rocky-default-10-quartz-forest-{day,night}.jpg kde_bg "Rocky 10 Sapphire" "Rocky Linux" rocky-default-10-sapphire{-light,}.png ln -s Rocky10GemstoneSkies %{buildroot}%{_datadir}/wallpapers/EL.rocky %endif %files kde-almalinux %{_datadir}/wallpapers/EL.almalinux %{_datadir}/wallpapers/AlmaLinux* %files kde-centos %{_datadir}/wallpapers/EL.centos %{_datadir}/wallpapers/CentOS* %if %{with redhat} %files kde-redhat %{_datadir}/wallpapers/EL.redhat %{_datadir}/wallpapers/RHEL* %endif %if %{with rocky} %files kde-rocky %{_datadir}/wallpapers/EL.rocky %{_datadir}/wallpapers/Rocky* %endif %changelog %autochangelog